[2025-02-15 00:00:05] Production.INFO: next invoice date [2025-02-15 00:00:05] Production.INFO: 2025-03-15 [2025-02-15 00:00:05] Production.INFO: getdaysdiff [2025-02-15 00:00:05] Production.INFO: +28 [2025-02-15 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (146,21,2,28,28,'RMScheduler',2025-02-15 00:00:05,1,0,,,0) [2025-02-15 00:00:05] Production.INFO: next invoice date [2025-02-15 00:00:05] Production.INFO: 2025-03-15 [2025-02-15 00:00:05] Production.INFO: getdaysdiff [2025-02-15 00:00:05] Production.INFO: +28 [2025-02-15 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (230,16,1,28,28,'RMScheduler',2025-02-15 00:00:05,1,0,,,0) [2025-02-15 00:00:05] Production.INFO: next invoice date [2025-02-15 00:00:05] Production.INFO: 2025-03-15 [2025-02-15 00:00:05] Production.INFO: getdaysdiff [2025-02-15 00:00:05] Production.INFO: +28 [2025-02-15 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (230,13,2,28,28,'RMScheduler',2025-02-15 00:00:05,1,0,,,0) [2025-02-15 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:00:07 [end_date_ymd] => 2025-02-15 00:00:07 [RateCDR] => 1 ) [2025-02-15 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-14 21:00:07' and `end` < '2025-02-15 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-15 00:00:21] Production.INFO: count ==1197 [2025-02-15 00:00:22] Production.ERROR: pbx CDR StartTime 2025-02-14 21:00:07 - End Time 2025-02-15 00:00:07 [2025-02-15 00:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477263', 'tblTempUsageDetail_20' ) start [2025-02-15 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477263', 'tblTempUsageDetail_20' ) end [2025-02-15 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477263', 'tblTempVendorCDR_20' ) start [2025-02-15 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477263', 'tblTempVendorCDR_20' ) end [2025-02-15 00:00:22] Production.INFO: ProcessCDR(1,14477263,1,1,2) [2025-02-15 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477263', 'tblTempUsageDetail_20' ) start [2025-02-15 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477263', 'tblTempUsageDetail_20' ) end [2025-02-15 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:00:27] Production.INFO: ==14103== Releasing lock... [2025-02-15 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:00:27] Production.INFO: 38.5 MB #Memory Used# [2025-02-15 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:01:05 [end_date_ymd] => 2025-02-15 00:01:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:01:05' and `end` < '2025-02-15 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-15 00:01:23] Production.INFO: count ==1177 [2025-02-15 00:01:23] Production.ERROR: pbx CDR StartTime 2025-02-14 21:01:05 - End Time 2025-02-15 00:01:05 [2025-02-15 00:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477268', 'tblTempUsageDetail_20' ) start [2025-02-15 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477268', 'tblTempUsageDetail_20' ) end [2025-02-15 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477268', 'tblTempVendorCDR_20' ) start [2025-02-15 00:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477268', 'tblTempVendorCDR_20' ) end [2025-02-15 00:01:23] Production.INFO: ProcessCDR(1,14477268,1,1,2) [2025-02-15 00:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477268', 'tblTempUsageDetail_20' ) start [2025-02-15 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477268', 'tblTempUsageDetail_20' ) end [2025-02-15 00:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:01:26] Production.INFO: ==14204== Releasing lock... [2025-02-15 00:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:01:26] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:02:05 [end_date_ymd] => 2025-02-15 00:02:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:02:05' and `end` < '2025-02-15 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-15 00:02:39] Production.INFO: count ==450 [2025-02-15 00:02:39] Production.ERROR: pbx CDR StartTime 2025-02-14 21:02:05 - End Time 2025-02-15 00:02:05 [2025-02-15 00:02:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477273', 'tblTempUsageDetail_20' ) start [2025-02-15 00:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477273', 'tblTempUsageDetail_20' ) end [2025-02-15 00:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477273', 'tblTempVendorCDR_20' ) start [2025-02-15 00:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477273', 'tblTempVendorCDR_20' ) end [2025-02-15 00:02:39] Production.INFO: ProcessCDR(1,14477273,1,1,2) [2025-02-15 00:02:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:02:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:02:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:02:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:02:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477273', 'tblTempUsageDetail_20' ) start [2025-02-15 00:02:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477273', 'tblTempUsageDetail_20' ) end [2025-02-15 00:02:43] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:02:43] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:02:43] Production.INFO: ==14289== Releasing lock... [2025-02-15 00:02:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:02:43] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:03:06 [end_date_ymd] => 2025-02-15 00:03:06 [RateCDR] => 1 ) [2025-02-15 00: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-14 21:03:06' and `end` < '2025-02-15 00: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-15 00:03:39] Production.INFO: count ==450 [2025-02-15 00:03:39] Production.ERROR: pbx CDR StartTime 2025-02-14 21:03:06 - End Time 2025-02-15 00:03:06 [2025-02-15 00:03:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:03:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477278', 'tblTempUsageDetail_20' ) start [2025-02-15 00:03:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477278', 'tblTempUsageDetail_20' ) end [2025-02-15 00:03:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477278', 'tblTempVendorCDR_20' ) start [2025-02-15 00:03:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477278', 'tblTempVendorCDR_20' ) end [2025-02-15 00:03:39] Production.INFO: ProcessCDR(1,14477278,1,1,2) [2025-02-15 00:03:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:03:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:03:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:03:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:03:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477278', 'tblTempUsageDetail_20' ) start [2025-02-15 00:03:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477278', 'tblTempUsageDetail_20' ) end [2025-02-15 00:03:42] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:03:42] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:03:42] Production.INFO: ==14370== Releasing lock... [2025-02-15 00:03:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:03:42] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:04:05 [end_date_ymd] => 2025-02-15 00:04:05 [RateCDR] => 1 ) [2025-02-15 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:04:05' and `end` < '2025-02-15 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:04:29] Production.INFO: count ==443 [2025-02-15 00:04:29] Production.ERROR: pbx CDR StartTime 2025-02-14 21:04:05 - End Time 2025-02-15 00:04:05 [2025-02-15 00:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477283', 'tblTempUsageDetail_20' ) start [2025-02-15 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477283', 'tblTempUsageDetail_20' ) end [2025-02-15 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477283', 'tblTempVendorCDR_20' ) start [2025-02-15 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477283', 'tblTempVendorCDR_20' ) end [2025-02-15 00:04:29] Production.INFO: ProcessCDR(1,14477283,1,1,2) [2025-02-15 00:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477283', 'tblTempUsageDetail_20' ) start [2025-02-15 00:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477283', 'tblTempUsageDetail_20' ) end [2025-02-15 00:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:04:32] Production.INFO: ==14451== Releasing lock... [2025-02-15 00:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:04:32] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:05:05 [end_date_ymd] => 2025-02-15 00:05:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:05:05' and `end` < '2025-02-15 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-15 00:05:29] Production.INFO: count ==444 [2025-02-15 00:05:29] Production.ERROR: pbx CDR StartTime 2025-02-14 21:05:05 - End Time 2025-02-15 00:05:05 [2025-02-15 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477288', 'tblTempUsageDetail_20' ) start [2025-02-15 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477288', 'tblTempUsageDetail_20' ) end [2025-02-15 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477288', 'tblTempVendorCDR_20' ) start [2025-02-15 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477288', 'tblTempVendorCDR_20' ) end [2025-02-15 00:05:29] Production.INFO: ProcessCDR(1,14477288,1,1,2) [2025-02-15 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477288', 'tblTempUsageDetail_20' ) start [2025-02-15 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477288', 'tblTempUsageDetail_20' ) end [2025-02-15 00:05:32] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:05:32] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:05:32] Production.INFO: ==14536== Releasing lock... [2025-02-15 00:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:05:32] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:06:05 [end_date_ymd] => 2025-02-15 00:06:05 [RateCDR] => 1 ) [2025-02-15 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:06:05' and `end` < '2025-02-15 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:06:25] Production.INFO: count ==437 [2025-02-15 00:06:25] Production.ERROR: pbx CDR StartTime 2025-02-14 21:06:05 - End Time 2025-02-15 00:06:05 [2025-02-15 00:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477293', 'tblTempUsageDetail_20' ) start [2025-02-15 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477293', 'tblTempUsageDetail_20' ) end [2025-02-15 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477293', 'tblTempVendorCDR_20' ) start [2025-02-15 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477293', 'tblTempVendorCDR_20' ) end [2025-02-15 00:06:25] Production.INFO: ProcessCDR(1,14477293,1,1,2) [2025-02-15 00:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477293', 'tblTempUsageDetail_20' ) start [2025-02-15 00:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477293', 'tblTempUsageDetail_20' ) end [2025-02-15 00:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:06:28] Production.INFO: ==14619== Releasing lock... [2025-02-15 00:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:06:28] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:07:05 [end_date_ymd] => 2025-02-15 00:07:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:07:05' and `end` < '2025-02-15 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-15 00:07:18] Production.INFO: count ==437 [2025-02-15 00:07:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:07:05 - End Time 2025-02-15 00:07:05 [2025-02-15 00:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477298', 'tblTempUsageDetail_20' ) start [2025-02-15 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477298', 'tblTempUsageDetail_20' ) end [2025-02-15 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477298', 'tblTempVendorCDR_20' ) start [2025-02-15 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477298', 'tblTempVendorCDR_20' ) end [2025-02-15 00:07:19] Production.INFO: ProcessCDR(1,14477298,1,1,2) [2025-02-15 00:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477298', 'tblTempUsageDetail_20' ) start [2025-02-15 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477298', 'tblTempUsageDetail_20' ) end [2025-02-15 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:07:22] Production.INFO: ==14694== Releasing lock... [2025-02-15 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:07:22] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:08:05 [end_date_ymd] => 2025-02-15 00:08:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:08:05' and `end` < '2025-02-15 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-15 00:08:18] Production.INFO: count ==436 [2025-02-15 00:08:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:08:05 - End Time 2025-02-15 00:08:05 [2025-02-15 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477303', 'tblTempUsageDetail_20' ) start [2025-02-15 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477303', 'tblTempUsageDetail_20' ) end [2025-02-15 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477303', 'tblTempVendorCDR_20' ) start [2025-02-15 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477303', 'tblTempVendorCDR_20' ) end [2025-02-15 00:08:18] Production.INFO: ProcessCDR(1,14477303,1,1,2) [2025-02-15 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477303', 'tblTempUsageDetail_20' ) start [2025-02-15 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477303', 'tblTempUsageDetail_20' ) end [2025-02-15 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:08:21] Production.INFO: ==14779== Releasing lock... [2025-02-15 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:08:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:09:05 [end_date_ymd] => 2025-02-15 00:09:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:09:05' and `end` < '2025-02-15 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-15 00:09:19] Production.INFO: count ==436 [2025-02-15 00:09:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:09:05 - End Time 2025-02-15 00:09:05 [2025-02-15 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477308', 'tblTempUsageDetail_20' ) start [2025-02-15 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477308', 'tblTempUsageDetail_20' ) end [2025-02-15 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477308', 'tblTempVendorCDR_20' ) start [2025-02-15 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477308', 'tblTempVendorCDR_20' ) end [2025-02-15 00:09:19] Production.INFO: ProcessCDR(1,14477308,1,1,2) [2025-02-15 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477308', 'tblTempUsageDetail_20' ) start [2025-02-15 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477308', 'tblTempUsageDetail_20' ) end [2025-02-15 00:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:09:23] Production.INFO: ==14859== Releasing lock... [2025-02-15 00:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:09:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:10:05 [end_date_ymd] => 2025-02-15 00:10:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:10:05' and `end` < '2025-02-15 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-15 00:10:20] Production.INFO: count ==446 [2025-02-15 00:10:20] Production.ERROR: pbx CDR StartTime 2025-02-14 21:10:05 - End Time 2025-02-15 00:10:05 [2025-02-15 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477314', 'tblTempUsageDetail_20' ) start [2025-02-15 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477314', 'tblTempUsageDetail_20' ) end [2025-02-15 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477314', 'tblTempVendorCDR_20' ) start [2025-02-15 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477314', 'tblTempVendorCDR_20' ) end [2025-02-15 00:10:20] Production.INFO: ProcessCDR(1,14477314,1,1,2) [2025-02-15 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477314', 'tblTempUsageDetail_20' ) start [2025-02-15 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477314', 'tblTempUsageDetail_20' ) end [2025-02-15 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:10:24] Production.INFO: ==14941== Releasing lock... [2025-02-15 00:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:10:24] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:11:05 [end_date_ymd] => 2025-02-15 00:11:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:11:05' and `end` < '2025-02-15 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-15 00:11:18] Production.INFO: count ==462 [2025-02-15 00:11:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:11:05 - End Time 2025-02-15 00:11:05 [2025-02-15 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477319', 'tblTempUsageDetail_20' ) start [2025-02-15 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477319', 'tblTempUsageDetail_20' ) end [2025-02-15 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477319', 'tblTempVendorCDR_20' ) start [2025-02-15 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477319', 'tblTempVendorCDR_20' ) end [2025-02-15 00:11:19] Production.INFO: ProcessCDR(1,14477319,1,1,2) [2025-02-15 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477319', 'tblTempUsageDetail_20' ) start [2025-02-15 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477319', 'tblTempUsageDetail_20' ) end [2025-02-15 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:11:23] Production.INFO: ==15024== Releasing lock... [2025-02-15 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:11:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:12:05 [end_date_ymd] => 2025-02-15 00:12:05 [RateCDR] => 1 ) [2025-02-15 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:12:05' and `end` < '2025-02-15 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:12:48] Production.INFO: count ==462 [2025-02-15 00:12:48] Production.ERROR: pbx CDR StartTime 2025-02-14 21:12:05 - End Time 2025-02-15 00:12:05 [2025-02-15 00:12:48] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:12:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477324', 'tblTempUsageDetail_20' ) start [2025-02-15 00:12:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477324', 'tblTempUsageDetail_20' ) end [2025-02-15 00:12:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477324', 'tblTempVendorCDR_20' ) start [2025-02-15 00:12:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477324', 'tblTempVendorCDR_20' ) end [2025-02-15 00:12:48] Production.INFO: ProcessCDR(1,14477324,1,1,2) [2025-02-15 00:12:48] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:12:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:12:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:12:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:12:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477324', 'tblTempUsageDetail_20' ) start [2025-02-15 00:12:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477324', 'tblTempUsageDetail_20' ) end [2025-02-15 00:12:51] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:12:51] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:12:51] Production.INFO: ==15106== Releasing lock... [2025-02-15 00:12:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:12:51] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:13:05 [end_date_ymd] => 2025-02-15 00:13:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:13:05' and `end` < '2025-02-15 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-15 00:13:22] Production.INFO: count ==458 [2025-02-15 00:13:22] Production.ERROR: pbx CDR StartTime 2025-02-14 21:13:05 - End Time 2025-02-15 00:13:05 [2025-02-15 00:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477329', 'tblTempUsageDetail_20' ) start [2025-02-15 00:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477329', 'tblTempUsageDetail_20' ) end [2025-02-15 00:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477329', 'tblTempVendorCDR_20' ) start [2025-02-15 00:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477329', 'tblTempVendorCDR_20' ) end [2025-02-15 00:13:23] Production.INFO: ProcessCDR(1,14477329,1,1,2) [2025-02-15 00:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477329', 'tblTempUsageDetail_20' ) start [2025-02-15 00:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477329', 'tblTempUsageDetail_20' ) end [2025-02-15 00:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:13:26] Production.INFO: ==15183== Releasing lock... [2025-02-15 00:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:13:26] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:14:05 [end_date_ymd] => 2025-02-15 00:14:05 [RateCDR] => 1 ) [2025-02-15 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:14:05' and `end` < '2025-02-15 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:14:22] Production.INFO: count ==459 [2025-02-15 00:14:23] Production.ERROR: pbx CDR StartTime 2025-02-14 21:14:05 - End Time 2025-02-15 00:14:05 [2025-02-15 00:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477334', 'tblTempUsageDetail_20' ) start [2025-02-15 00:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477334', 'tblTempUsageDetail_20' ) end [2025-02-15 00:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477334', 'tblTempVendorCDR_20' ) start [2025-02-15 00:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477334', 'tblTempVendorCDR_20' ) end [2025-02-15 00:14:23] Production.INFO: ProcessCDR(1,14477334,1,1,2) [2025-02-15 00:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477334', 'tblTempUsageDetail_20' ) start [2025-02-15 00:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477334', 'tblTempUsageDetail_20' ) end [2025-02-15 00:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:14:27] Production.INFO: ==15265== Releasing lock... [2025-02-15 00:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:14:27] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:15:05 [end_date_ymd] => 2025-02-15 00:15:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:15:05' and `end` < '2025-02-15 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-15 00:15:18] Production.INFO: count ==460 [2025-02-15 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:15:05 - End Time 2025-02-15 00:15:05 [2025-02-15 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477339', 'tblTempUsageDetail_20' ) start [2025-02-15 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477339', 'tblTempUsageDetail_20' ) end [2025-02-15 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477339', 'tblTempVendorCDR_20' ) start [2025-02-15 00:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477339', 'tblTempVendorCDR_20' ) end [2025-02-15 00:15:19] Production.INFO: ProcessCDR(1,14477339,1,1,2) [2025-02-15 00:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477339', 'tblTempUsageDetail_20' ) start [2025-02-15 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477339', 'tblTempUsageDetail_20' ) end [2025-02-15 00:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:15:23] Production.INFO: ==15342== Releasing lock... [2025-02-15 00:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:15:23] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:16:05 [end_date_ymd] => 2025-02-15 00:16:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:16:05' and `end` < '2025-02-15 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-15 00:16:18] Production.INFO: count ==458 [2025-02-15 00:16:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:16:05 - End Time 2025-02-15 00:16:05 [2025-02-15 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477344', 'tblTempUsageDetail_20' ) start [2025-02-15 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477344', 'tblTempUsageDetail_20' ) end [2025-02-15 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477344', 'tblTempVendorCDR_20' ) start [2025-02-15 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477344', 'tblTempVendorCDR_20' ) end [2025-02-15 00:16:18] Production.INFO: ProcessCDR(1,14477344,1,1,2) [2025-02-15 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477344', 'tblTempUsageDetail_20' ) start [2025-02-15 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477344', 'tblTempUsageDetail_20' ) end [2025-02-15 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:16:21] Production.INFO: ==15463== Releasing lock... [2025-02-15 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:16:21] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:17:04 [end_date_ymd] => 2025-02-15 00:17:04 [RateCDR] => 1 ) [2025-02-15 00:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:17:04' and `end` < '2025-02-15 00:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:17:17] Production.INFO: count ==457 [2025-02-15 00:17:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:17:04 - End Time 2025-02-15 00:17:04 [2025-02-15 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477349', 'tblTempUsageDetail_20' ) start [2025-02-15 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477349', 'tblTempUsageDetail_20' ) end [2025-02-15 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477349', 'tblTempVendorCDR_20' ) start [2025-02-15 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477349', 'tblTempVendorCDR_20' ) end [2025-02-15 00:17:18] Production.INFO: ProcessCDR(1,14477349,1,1,2) [2025-02-15 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477349', 'tblTempUsageDetail_20' ) start [2025-02-15 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477349', 'tblTempUsageDetail_20' ) end [2025-02-15 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:17:22] Production.INFO: ==15539== Releasing lock... [2025-02-15 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:17:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:18:05 [end_date_ymd] => 2025-02-15 00:18:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:18:05' and `end` < '2025-02-15 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-15 00:18:19] Production.INFO: count ==449 [2025-02-15 00:18:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:18:05 - End Time 2025-02-15 00:18:05 [2025-02-15 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477354', 'tblTempUsageDetail_20' ) start [2025-02-15 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477354', 'tblTempUsageDetail_20' ) end [2025-02-15 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477354', 'tblTempVendorCDR_20' ) start [2025-02-15 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477354', 'tblTempVendorCDR_20' ) end [2025-02-15 00:18:19] Production.INFO: ProcessCDR(1,14477354,1,1,2) [2025-02-15 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477354', 'tblTempUsageDetail_20' ) start [2025-02-15 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477354', 'tblTempUsageDetail_20' ) end [2025-02-15 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:18:22] Production.INFO: ==15630== Releasing lock... [2025-02-15 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:18:22] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:19:05 [end_date_ymd] => 2025-02-15 00:19:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:19:05' and `end` < '2025-02-15 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-15 00:19:18] Production.INFO: count ==451 [2025-02-15 00:19:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:19:05 - End Time 2025-02-15 00:19:05 [2025-02-15 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477359', 'tblTempUsageDetail_20' ) start [2025-02-15 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477359', 'tblTempUsageDetail_20' ) end [2025-02-15 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477359', 'tblTempVendorCDR_20' ) start [2025-02-15 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477359', 'tblTempVendorCDR_20' ) end [2025-02-15 00:19:19] Production.INFO: ProcessCDR(1,14477359,1,1,2) [2025-02-15 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477359', 'tblTempUsageDetail_20' ) start [2025-02-15 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477359', 'tblTempUsageDetail_20' ) end [2025-02-15 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:19:22] Production.INFO: ==15713== Releasing lock... [2025-02-15 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:19:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:20:05 [end_date_ymd] => 2025-02-15 00:20:05 [RateCDR] => 1 ) [2025-02-15 00: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-14 21:20:05' and `end` < '2025-02-15 00: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-15 00:20:20] Production.INFO: count ==457 [2025-02-15 00:20:20] Production.ERROR: pbx CDR StartTime 2025-02-14 21:20:05 - End Time 2025-02-15 00:20:05 [2025-02-15 00:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477365', 'tblTempUsageDetail_20' ) start [2025-02-15 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477365', 'tblTempUsageDetail_20' ) end [2025-02-15 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477365', 'tblTempVendorCDR_20' ) start [2025-02-15 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477365', 'tblTempVendorCDR_20' ) end [2025-02-15 00:20:20] Production.INFO: ProcessCDR(1,14477365,1,1,2) [2025-02-15 00:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477365', 'tblTempUsageDetail_20' ) start [2025-02-15 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477365', 'tblTempUsageDetail_20' ) end [2025-02-15 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:20:23] Production.INFO: ==15805== Releasing lock... [2025-02-15 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:20:23] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:21:05 [end_date_ymd] => 2025-02-15 00:21:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:21:05' and `end` < '2025-02-15 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-15 00:21:18] Production.INFO: count ==465 [2025-02-15 00:21:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:21:05 - End Time 2025-02-15 00:21:05 [2025-02-15 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477370', 'tblTempUsageDetail_20' ) start [2025-02-15 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477370', 'tblTempUsageDetail_20' ) end [2025-02-15 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477370', 'tblTempVendorCDR_20' ) start [2025-02-15 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477370', 'tblTempVendorCDR_20' ) end [2025-02-15 00:21:18] Production.INFO: ProcessCDR(1,14477370,1,1,2) [2025-02-15 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477370', 'tblTempUsageDetail_20' ) start [2025-02-15 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477370', 'tblTempUsageDetail_20' ) end [2025-02-15 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:21:21] Production.INFO: ==15883== Releasing lock... [2025-02-15 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:21:21] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:22:05 [end_date_ymd] => 2025-02-15 00:22:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:22:05' and `end` < '2025-02-15 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-15 00:22:18] Production.INFO: count ==465 [2025-02-15 00:22:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:22:05 - End Time 2025-02-15 00:22:05 [2025-02-15 00:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477375', 'tblTempUsageDetail_20' ) start [2025-02-15 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477375', 'tblTempUsageDetail_20' ) end [2025-02-15 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477375', 'tblTempVendorCDR_20' ) start [2025-02-15 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477375', 'tblTempVendorCDR_20' ) end [2025-02-15 00:22:19] Production.INFO: ProcessCDR(1,14477375,1,1,2) [2025-02-15 00:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477375', 'tblTempUsageDetail_20' ) start [2025-02-15 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477375', 'tblTempUsageDetail_20' ) end [2025-02-15 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:22:22] Production.INFO: ==15957== Releasing lock... [2025-02-15 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:22:22] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:23:04 [end_date_ymd] => 2025-02-15 00:23:04 [RateCDR] => 1 ) [2025-02-15 00:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:23:04' and `end` < '2025-02-15 00:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:23:18] Production.INFO: count ==462 [2025-02-15 00:23:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:23:04 - End Time 2025-02-15 00:23:04 [2025-02-15 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477380', 'tblTempUsageDetail_20' ) start [2025-02-15 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477380', 'tblTempUsageDetail_20' ) end [2025-02-15 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477380', 'tblTempVendorCDR_20' ) start [2025-02-15 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477380', 'tblTempVendorCDR_20' ) end [2025-02-15 00:23:18] Production.INFO: ProcessCDR(1,14477380,1,1,2) [2025-02-15 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477380', 'tblTempUsageDetail_20' ) start [2025-02-15 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477380', 'tblTempUsageDetail_20' ) end [2025-02-15 00:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:23:23] Production.INFO: ==16027== Releasing lock... [2025-02-15 00:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:23:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:24:05 [end_date_ymd] => 2025-02-15 00:24:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:24:05' and `end` < '2025-02-15 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-15 00:24:18] Production.INFO: count ==462 [2025-02-15 00:24:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:24:05 - End Time 2025-02-15 00:24:05 [2025-02-15 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477385', 'tblTempUsageDetail_20' ) start [2025-02-15 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477385', 'tblTempUsageDetail_20' ) end [2025-02-15 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477385', 'tblTempVendorCDR_20' ) start [2025-02-15 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477385', 'tblTempVendorCDR_20' ) end [2025-02-15 00:24:18] Production.INFO: ProcessCDR(1,14477385,1,1,2) [2025-02-15 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477385', 'tblTempUsageDetail_20' ) start [2025-02-15 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477385', 'tblTempUsageDetail_20' ) end [2025-02-15 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:24:22] Production.INFO: ==16101== Releasing lock... [2025-02-15 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:24:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:25:05 [end_date_ymd] => 2025-02-15 00:25:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:25:05' and `end` < '2025-02-15 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-15 00:25:19] Production.INFO: count ==457 [2025-02-15 00:25:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:25:05 - End Time 2025-02-15 00:25:05 [2025-02-15 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477390', 'tblTempUsageDetail_20' ) start [2025-02-15 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477390', 'tblTempUsageDetail_20' ) end [2025-02-15 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477390', 'tblTempVendorCDR_20' ) start [2025-02-15 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477390', 'tblTempVendorCDR_20' ) end [2025-02-15 00:25:19] Production.INFO: ProcessCDR(1,14477390,1,1,2) [2025-02-15 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477390', 'tblTempUsageDetail_20' ) start [2025-02-15 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477390', 'tblTempUsageDetail_20' ) end [2025-02-15 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:25:22] Production.INFO: ==16172== Releasing lock... [2025-02-15 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:25:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-15 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:26:05 [end_date_ymd] => 2025-02-15 00:26:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:26:05' and `end` < '2025-02-15 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-15 00:26:19] Production.INFO: count ==454 [2025-02-15 00:26:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:26:05 - End Time 2025-02-15 00:26:05 [2025-02-15 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477395', 'tblTempUsageDetail_20' ) start [2025-02-15 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477395', 'tblTempUsageDetail_20' ) end [2025-02-15 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477395', 'tblTempVendorCDR_20' ) start [2025-02-15 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477395', 'tblTempVendorCDR_20' ) end [2025-02-15 00:26:19] Production.INFO: ProcessCDR(1,14477395,1,1,2) [2025-02-15 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477395', 'tblTempUsageDetail_20' ) start [2025-02-15 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477395', 'tblTempUsageDetail_20' ) end [2025-02-15 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:26:22] Production.INFO: ==16243== Releasing lock... [2025-02-15 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:26:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-15 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:27:05 [end_date_ymd] => 2025-02-15 00:27:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:27:05' and `end` < '2025-02-15 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-15 00:27:19] Production.INFO: count ==453 [2025-02-15 00:27:20] Production.ERROR: pbx CDR StartTime 2025-02-14 21:27:05 - End Time 2025-02-15 00:27:05 [2025-02-15 00:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477400', 'tblTempUsageDetail_20' ) start [2025-02-15 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477400', 'tblTempUsageDetail_20' ) end [2025-02-15 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477400', 'tblTempVendorCDR_20' ) start [2025-02-15 00:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477400', 'tblTempVendorCDR_20' ) end [2025-02-15 00:27:20] Production.INFO: ProcessCDR(1,14477400,1,1,2) [2025-02-15 00:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477400', 'tblTempUsageDetail_20' ) start [2025-02-15 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477400', 'tblTempUsageDetail_20' ) end [2025-02-15 00:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:27:23] Production.INFO: ==16314== Releasing lock... [2025-02-15 00:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:27:23] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:28:05 [end_date_ymd] => 2025-02-15 00:28:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:28:05' and `end` < '2025-02-15 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-15 00:28:18] Production.INFO: count ==453 [2025-02-15 00:28:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:28:05 - End Time 2025-02-15 00:28:05 [2025-02-15 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477405', 'tblTempUsageDetail_20' ) start [2025-02-15 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477405', 'tblTempUsageDetail_20' ) end [2025-02-15 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477405', 'tblTempVendorCDR_20' ) start [2025-02-15 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477405', 'tblTempVendorCDR_20' ) end [2025-02-15 00:28:18] Production.INFO: ProcessCDR(1,14477405,1,1,2) [2025-02-15 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477405', 'tblTempUsageDetail_20' ) start [2025-02-15 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477405', 'tblTempUsageDetail_20' ) end [2025-02-15 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:28:21] Production.INFO: ==16383== Releasing lock... [2025-02-15 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:28:21] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:29:05 [end_date_ymd] => 2025-02-15 00:29:05 [RateCDR] => 1 ) [2025-02-15 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:29:05' and `end` < '2025-02-15 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:29:18] Production.INFO: count ==456 [2025-02-15 00:29:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:29:05 - End Time 2025-02-15 00:29:05 [2025-02-15 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477410', 'tblTempUsageDetail_20' ) start [2025-02-15 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477410', 'tblTempUsageDetail_20' ) end [2025-02-15 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477410', 'tblTempVendorCDR_20' ) start [2025-02-15 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477410', 'tblTempVendorCDR_20' ) end [2025-02-15 00:29:19] Production.INFO: ProcessCDR(1,14477410,1,1,2) [2025-02-15 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477410', 'tblTempUsageDetail_20' ) start [2025-02-15 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477410', 'tblTempUsageDetail_20' ) end [2025-02-15 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:29:22] Production.INFO: ==16457== Releasing lock... [2025-02-15 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-15 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:30:05 [end_date_ymd] => 2025-02-15 00:30:05 [RateCDR] => 1 ) [2025-02-15 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:30:05' and `end` < '2025-02-15 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:30:18] Production.INFO: count ==457 [2025-02-15 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:30:05 - End Time 2025-02-15 00:30:05 [2025-02-15 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477415', 'tblTempUsageDetail_20' ) start [2025-02-15 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477415', 'tblTempUsageDetail_20' ) end [2025-02-15 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477415', 'tblTempVendorCDR_20' ) start [2025-02-15 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477415', 'tblTempVendorCDR_20' ) end [2025-02-15 00:30:19] Production.INFO: ProcessCDR(1,14477415,1,1,2) [2025-02-15 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477415', 'tblTempUsageDetail_20' ) start [2025-02-15 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477415', 'tblTempUsageDetail_20' ) end [2025-02-15 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:30:22] Production.INFO: ==16530== Releasing lock... [2025-02-15 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:30:22] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:31:05 [end_date_ymd] => 2025-02-15 00:31:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:31:05' and `end` < '2025-02-15 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-15 00:31:18] Production.INFO: count ==482 [2025-02-15 00:31:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:31:05 - End Time 2025-02-15 00:31:05 [2025-02-15 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477421', 'tblTempUsageDetail_20' ) start [2025-02-15 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477421', 'tblTempUsageDetail_20' ) end [2025-02-15 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477421', 'tblTempVendorCDR_20' ) start [2025-02-15 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477421', 'tblTempVendorCDR_20' ) end [2025-02-15 00:31:18] Production.INFO: ProcessCDR(1,14477421,1,1,2) [2025-02-15 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477421', 'tblTempUsageDetail_20' ) start [2025-02-15 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477421', 'tblTempUsageDetail_20' ) end [2025-02-15 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:31:22] Production.INFO: ==16644== Releasing lock... [2025-02-15 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:31:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:32:05 [end_date_ymd] => 2025-02-15 00:32:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:32:05' and `end` < '2025-02-15 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-15 00:32:19] Production.INFO: count ==482 [2025-02-15 00:32:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:32:05 - End Time 2025-02-15 00:32:05 [2025-02-15 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477426', 'tblTempUsageDetail_20' ) start [2025-02-15 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477426', 'tblTempUsageDetail_20' ) end [2025-02-15 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477426', 'tblTempVendorCDR_20' ) start [2025-02-15 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477426', 'tblTempVendorCDR_20' ) end [2025-02-15 00:32:19] Production.INFO: ProcessCDR(1,14477426,1,1,2) [2025-02-15 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477426', 'tblTempUsageDetail_20' ) start [2025-02-15 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477426', 'tblTempUsageDetail_20' ) end [2025-02-15 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:32:22] Production.INFO: ==16714== Releasing lock... [2025-02-15 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:32:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:33:06 [end_date_ymd] => 2025-02-15 00:33:06 [RateCDR] => 1 ) [2025-02-15 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-14 21:33:06' and `end` < '2025-02-15 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-15 00:33:19] Production.INFO: count ==479 [2025-02-15 00:33:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:33:06 - End Time 2025-02-15 00:33:06 [2025-02-15 00:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477431', 'tblTempUsageDetail_20' ) start [2025-02-15 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477431', 'tblTempUsageDetail_20' ) end [2025-02-15 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477431', 'tblTempVendorCDR_20' ) start [2025-02-15 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477431', 'tblTempVendorCDR_20' ) end [2025-02-15 00:33:19] Production.INFO: ProcessCDR(1,14477431,1,1,2) [2025-02-15 00:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477431', 'tblTempUsageDetail_20' ) start [2025-02-15 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477431', 'tblTempUsageDetail_20' ) end [2025-02-15 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:33:22] Production.INFO: ==16791== Releasing lock... [2025-02-15 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:33:22] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:34:05 [end_date_ymd] => 2025-02-15 00:34:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:34:05' and `end` < '2025-02-15 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-15 00:34:18] Production.INFO: count ==475 [2025-02-15 00:34:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:34:05 - End Time 2025-02-15 00:34:05 [2025-02-15 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477436', 'tblTempUsageDetail_20' ) start [2025-02-15 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477436', 'tblTempUsageDetail_20' ) end [2025-02-15 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477436', 'tblTempVendorCDR_20' ) start [2025-02-15 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477436', 'tblTempVendorCDR_20' ) end [2025-02-15 00:34:18] Production.INFO: ProcessCDR(1,14477436,1,1,2) [2025-02-15 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477436', 'tblTempUsageDetail_20' ) start [2025-02-15 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477436', 'tblTempUsageDetail_20' ) end [2025-02-15 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:34:22] Production.INFO: ==16861== Releasing lock... [2025-02-15 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:35:06 [end_date_ymd] => 2025-02-15 00:35:06 [RateCDR] => 1 ) [2025-02-15 00: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-14 21:35:06' and `end` < '2025-02-15 00: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-15 00:35:19] Production.INFO: count ==475 [2025-02-15 00:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:35:06 - End Time 2025-02-15 00:35:06 [2025-02-15 00:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477441', 'tblTempUsageDetail_20' ) start [2025-02-15 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477441', 'tblTempUsageDetail_20' ) end [2025-02-15 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477441', 'tblTempVendorCDR_20' ) start [2025-02-15 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477441', 'tblTempVendorCDR_20' ) end [2025-02-15 00:35:19] Production.INFO: ProcessCDR(1,14477441,1,1,2) [2025-02-15 00:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477441', 'tblTempUsageDetail_20' ) start [2025-02-15 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477441', 'tblTempUsageDetail_20' ) end [2025-02-15 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:35:22] Production.INFO: ==16932== Releasing lock... [2025-02-15 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:35:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:36:05 [end_date_ymd] => 2025-02-15 00:36:05 [RateCDR] => 1 ) [2025-02-15 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:36:05' and `end` < '2025-02-15 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:36:18] Production.INFO: count ==475 [2025-02-15 00:36:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:36:05 - End Time 2025-02-15 00:36:05 [2025-02-15 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477446', 'tblTempUsageDetail_20' ) start [2025-02-15 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477446', 'tblTempUsageDetail_20' ) end [2025-02-15 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477446', 'tblTempVendorCDR_20' ) start [2025-02-15 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477446', 'tblTempVendorCDR_20' ) end [2025-02-15 00:36:18] Production.INFO: ProcessCDR(1,14477446,1,1,2) [2025-02-15 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477446', 'tblTempUsageDetail_20' ) start [2025-02-15 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477446', 'tblTempUsageDetail_20' ) end [2025-02-15 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:36:21] Production.INFO: ==17002== Releasing lock... [2025-02-15 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:37:06 [end_date_ymd] => 2025-02-15 00:37:06 [RateCDR] => 1 ) [2025-02-15 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-14 21:37:06' and `end` < '2025-02-15 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-15 00:37:19] Production.INFO: count ==475 [2025-02-15 00:37:20] Production.ERROR: pbx CDR StartTime 2025-02-14 21:37:06 - End Time 2025-02-15 00:37:06 [2025-02-15 00:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477451', 'tblTempUsageDetail_20' ) start [2025-02-15 00:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477451', 'tblTempUsageDetail_20' ) end [2025-02-15 00:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477451', 'tblTempVendorCDR_20' ) start [2025-02-15 00:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477451', 'tblTempVendorCDR_20' ) end [2025-02-15 00:37:20] Production.INFO: ProcessCDR(1,14477451,1,1,2) [2025-02-15 00:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477451', 'tblTempUsageDetail_20' ) start [2025-02-15 00:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477451', 'tblTempUsageDetail_20' ) end [2025-02-15 00:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:37:23] Production.INFO: ==17078== Releasing lock... [2025-02-15 00:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:37:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:38:05 [end_date_ymd] => 2025-02-15 00:38:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:38:05' and `end` < '2025-02-15 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-15 00:38:18] Production.INFO: count ==475 [2025-02-15 00:38:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:38:05 - End Time 2025-02-15 00:38:05 [2025-02-15 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477456', 'tblTempUsageDetail_20' ) start [2025-02-15 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477456', 'tblTempUsageDetail_20' ) end [2025-02-15 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477456', 'tblTempVendorCDR_20' ) start [2025-02-15 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477456', 'tblTempVendorCDR_20' ) end [2025-02-15 00:38:19] Production.INFO: ProcessCDR(1,14477456,1,1,2) [2025-02-15 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477456', 'tblTempUsageDetail_20' ) start [2025-02-15 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477456', 'tblTempUsageDetail_20' ) end [2025-02-15 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:38:22] Production.INFO: ==17149== Releasing lock... [2025-02-15 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:39:05 [end_date_ymd] => 2025-02-15 00:39:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:39:05' and `end` < '2025-02-15 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-15 00:39:19] Production.INFO: count ==475 [2025-02-15 00:39:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:39:05 - End Time 2025-02-15 00:39:05 [2025-02-15 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477461', 'tblTempUsageDetail_20' ) start [2025-02-15 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477461', 'tblTempUsageDetail_20' ) end [2025-02-15 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477461', 'tblTempVendorCDR_20' ) start [2025-02-15 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477461', 'tblTempVendorCDR_20' ) end [2025-02-15 00:39:19] Production.INFO: ProcessCDR(1,14477461,1,1,2) [2025-02-15 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477461', 'tblTempUsageDetail_20' ) start [2025-02-15 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477461', 'tblTempUsageDetail_20' ) end [2025-02-15 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:39:23] Production.INFO: ==17220== Releasing lock... [2025-02-15 00:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:39:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:40:05 [end_date_ymd] => 2025-02-15 00:40:05 [RateCDR] => 1 ) [2025-02-15 00: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-14 21:40:05' and `end` < '2025-02-15 00: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-15 00:40:19] Production.INFO: count ==481 [2025-02-15 00:40:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:40:05 - End Time 2025-02-15 00:40:05 [2025-02-15 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477467', 'tblTempUsageDetail_20' ) start [2025-02-15 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477467', 'tblTempUsageDetail_20' ) end [2025-02-15 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477467', 'tblTempVendorCDR_20' ) start [2025-02-15 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477467', 'tblTempVendorCDR_20' ) end [2025-02-15 00:40:19] Production.INFO: ProcessCDR(1,14477467,1,1,2) [2025-02-15 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477467', 'tblTempUsageDetail_20' ) start [2025-02-15 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477467', 'tblTempUsageDetail_20' ) end [2025-02-15 00:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:40:24] Production.INFO: ==17293== Releasing lock... [2025-02-15 00:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:40:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:41:05 [end_date_ymd] => 2025-02-15 00:41:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:41:05' and `end` < '2025-02-15 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-15 00:41:19] Production.INFO: count ==487 [2025-02-15 00:41:20] Production.ERROR: pbx CDR StartTime 2025-02-14 21:41:05 - End Time 2025-02-15 00:41:05 [2025-02-15 00:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477472', 'tblTempUsageDetail_20' ) start [2025-02-15 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477472', 'tblTempUsageDetail_20' ) end [2025-02-15 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477472', 'tblTempVendorCDR_20' ) start [2025-02-15 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477472', 'tblTempVendorCDR_20' ) end [2025-02-15 00:41:20] Production.INFO: ProcessCDR(1,14477472,1,1,2) [2025-02-15 00:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477472', 'tblTempUsageDetail_20' ) start [2025-02-15 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477472', 'tblTempUsageDetail_20' ) end [2025-02-15 00:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:41:23] Production.INFO: ==17367== Releasing lock... [2025-02-15 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:41:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:42:05 [end_date_ymd] => 2025-02-15 00:42:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:42:05' and `end` < '2025-02-15 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-15 00:42:18] Production.INFO: count ==487 [2025-02-15 00:42:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:42:05 - End Time 2025-02-15 00:42:05 [2025-02-15 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477477', 'tblTempUsageDetail_20' ) start [2025-02-15 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477477', 'tblTempUsageDetail_20' ) end [2025-02-15 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477477', 'tblTempVendorCDR_20' ) start [2025-02-15 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477477', 'tblTempVendorCDR_20' ) end [2025-02-15 00:42:18] Production.INFO: ProcessCDR(1,14477477,1,1,2) [2025-02-15 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477477', 'tblTempUsageDetail_20' ) start [2025-02-15 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477477', 'tblTempUsageDetail_20' ) end [2025-02-15 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:42:21] Production.INFO: ==17437== Releasing lock... [2025-02-15 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:42:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:43:05 [end_date_ymd] => 2025-02-15 00:43:05 [RateCDR] => 1 ) [2025-02-15 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:43:05' and `end` < '2025-02-15 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:43:18] Production.INFO: count ==486 [2025-02-15 00:43:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:43:05 - End Time 2025-02-15 00:43:05 [2025-02-15 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477482', 'tblTempUsageDetail_20' ) start [2025-02-15 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477482', 'tblTempUsageDetail_20' ) end [2025-02-15 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477482', 'tblTempVendorCDR_20' ) start [2025-02-15 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477482', 'tblTempVendorCDR_20' ) end [2025-02-15 00:43:18] Production.INFO: ProcessCDR(1,14477482,1,1,2) [2025-02-15 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477482', 'tblTempUsageDetail_20' ) start [2025-02-15 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477482', 'tblTempUsageDetail_20' ) end [2025-02-15 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:43:22] Production.INFO: ==17513== Releasing lock... [2025-02-15 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:44:05 [end_date_ymd] => 2025-02-15 00:44:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:44:05' and `end` < '2025-02-15 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-15 00:44:19] Production.INFO: count ==486 [2025-02-15 00:44:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:44:05 - End Time 2025-02-15 00:44:05 [2025-02-15 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477487', 'tblTempUsageDetail_20' ) start [2025-02-15 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477487', 'tblTempUsageDetail_20' ) end [2025-02-15 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477487', 'tblTempVendorCDR_20' ) start [2025-02-15 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477487', 'tblTempVendorCDR_20' ) end [2025-02-15 00:44:19] Production.INFO: ProcessCDR(1,14477487,1,1,2) [2025-02-15 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477487', 'tblTempUsageDetail_20' ) start [2025-02-15 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477487', 'tblTempUsageDetail_20' ) end [2025-02-15 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:44:22] Production.INFO: ==17584== Releasing lock... [2025-02-15 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:45:05 [end_date_ymd] => 2025-02-15 00:45:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:45:05' and `end` < '2025-02-15 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-15 00:45:18] Production.INFO: count ==486 [2025-02-15 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:45:05 - End Time 2025-02-15 00:45:05 [2025-02-15 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477492', 'tblTempUsageDetail_20' ) start [2025-02-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477492', 'tblTempUsageDetail_20' ) end [2025-02-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477492', 'tblTempVendorCDR_20' ) start [2025-02-15 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477492', 'tblTempVendorCDR_20' ) end [2025-02-15 00:45:18] Production.INFO: ProcessCDR(1,14477492,1,1,2) [2025-02-15 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477492', 'tblTempUsageDetail_20' ) start [2025-02-15 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477492', 'tblTempUsageDetail_20' ) end [2025-02-15 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:45:22] Production.INFO: ==17657== Releasing lock... [2025-02-15 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:45:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:46:04 [end_date_ymd] => 2025-02-15 00:46:04 [RateCDR] => 1 ) [2025-02-15 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-14 21:46:04' and `end` < '2025-02-15 00: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-15 00:46:18] Production.INFO: count ==486 [2025-02-15 00:46:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:46:04 - End Time 2025-02-15 00:46:04 [2025-02-15 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477497', 'tblTempUsageDetail_20' ) start [2025-02-15 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477497', 'tblTempUsageDetail_20' ) end [2025-02-15 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477497', 'tblTempVendorCDR_20' ) start [2025-02-15 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477497', 'tblTempVendorCDR_20' ) end [2025-02-15 00:46:18] Production.INFO: ProcessCDR(1,14477497,1,1,2) [2025-02-15 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477497', 'tblTempUsageDetail_20' ) start [2025-02-15 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477497', 'tblTempUsageDetail_20' ) end [2025-02-15 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:46:21] Production.INFO: ==17730== Releasing lock... [2025-02-15 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:46:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:47:05 [end_date_ymd] => 2025-02-15 00:47:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:47:05' and `end` < '2025-02-15 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-15 00:47:18] Production.INFO: count ==483 [2025-02-15 00:47:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:47:05 - End Time 2025-02-15 00:47:05 [2025-02-15 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477502', 'tblTempUsageDetail_20' ) start [2025-02-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477502', 'tblTempUsageDetail_20' ) end [2025-02-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477502', 'tblTempVendorCDR_20' ) start [2025-02-15 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477502', 'tblTempVendorCDR_20' ) end [2025-02-15 00:47:18] Production.INFO: ProcessCDR(1,14477502,1,1,2) [2025-02-15 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477502', 'tblTempUsageDetail_20' ) start [2025-02-15 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477502', 'tblTempUsageDetail_20' ) end [2025-02-15 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:47:22] Production.INFO: ==17843== Releasing lock... [2025-02-15 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:47:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:48:05 [end_date_ymd] => 2025-02-15 00:48:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:48:05' and `end` < '2025-02-15 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-15 00:48:18] Production.INFO: count ==488 [2025-02-15 00:48:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:48:05 - End Time 2025-02-15 00:48:05 [2025-02-15 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477507', 'tblTempUsageDetail_20' ) start [2025-02-15 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477507', 'tblTempUsageDetail_20' ) end [2025-02-15 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477507', 'tblTempVendorCDR_20' ) start [2025-02-15 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477507', 'tblTempVendorCDR_20' ) end [2025-02-15 00:48:18] Production.INFO: ProcessCDR(1,14477507,1,1,2) [2025-02-15 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477507', 'tblTempUsageDetail_20' ) start [2025-02-15 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477507', 'tblTempUsageDetail_20' ) end [2025-02-15 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:48:21] Production.INFO: ==17913== Releasing lock... [2025-02-15 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:48:21] Production.INFO: 32 MB #Memory Used# [2025-02-15 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:49:05 [end_date_ymd] => 2025-02-15 00:49:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:49:05' and `end` < '2025-02-15 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-15 00:49:18] Production.INFO: count ==486 [2025-02-15 00:49:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:49:05 - End Time 2025-02-15 00:49:05 [2025-02-15 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477512', 'tblTempUsageDetail_20' ) start [2025-02-15 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477512', 'tblTempUsageDetail_20' ) end [2025-02-15 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477512', 'tblTempVendorCDR_20' ) start [2025-02-15 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477512', 'tblTempVendorCDR_20' ) end [2025-02-15 00:49:19] Production.INFO: ProcessCDR(1,14477512,1,1,2) [2025-02-15 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477512', 'tblTempUsageDetail_20' ) start [2025-02-15 00:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477512', 'tblTempUsageDetail_20' ) end [2025-02-15 00:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:49:23] Production.INFO: ==17989== Releasing lock... [2025-02-15 00:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:49:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:50:05 [end_date_ymd] => 2025-02-15 00:50:05 [RateCDR] => 1 ) [2025-02-15 00: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-14 21:50:05' and `end` < '2025-02-15 00: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-15 00:50:18] Production.INFO: count ==488 [2025-02-15 00:50:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:50:05 - End Time 2025-02-15 00:50:05 [2025-02-15 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477517', 'tblTempUsageDetail_20' ) start [2025-02-15 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477517', 'tblTempUsageDetail_20' ) end [2025-02-15 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477517', 'tblTempVendorCDR_20' ) start [2025-02-15 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477517', 'tblTempVendorCDR_20' ) end [2025-02-15 00:50:19] Production.INFO: ProcessCDR(1,14477517,1,1,2) [2025-02-15 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477517', 'tblTempUsageDetail_20' ) start [2025-02-15 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477517', 'tblTempUsageDetail_20' ) end [2025-02-15 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:50:22] Production.INFO: ==18061== Releasing lock... [2025-02-15 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:51:05 [end_date_ymd] => 2025-02-15 00:51:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:51:05' and `end` < '2025-02-15 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-15 00:51:18] Production.INFO: count ==519 [2025-02-15 00:51:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:51:05 - End Time 2025-02-15 00:51:05 [2025-02-15 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477523', 'tblTempUsageDetail_20' ) start [2025-02-15 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477523', 'tblTempUsageDetail_20' ) end [2025-02-15 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477523', 'tblTempVendorCDR_20' ) start [2025-02-15 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477523', 'tblTempVendorCDR_20' ) end [2025-02-15 00:51:18] Production.INFO: ProcessCDR(1,14477523,1,1,2) [2025-02-15 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477523', 'tblTempUsageDetail_20' ) start [2025-02-15 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477523', 'tblTempUsageDetail_20' ) end [2025-02-15 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:51:22] Production.INFO: ==18134== Releasing lock... [2025-02-15 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:51:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:52:06 [end_date_ymd] => 2025-02-15 00:52:06 [RateCDR] => 1 ) [2025-02-15 00:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:52:06' and `end` < '2025-02-15 00:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:52:19] Production.INFO: count ==518 [2025-02-15 00:52:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:52:06 - End Time 2025-02-15 00:52:06 [2025-02-15 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477528', 'tblTempUsageDetail_20' ) start [2025-02-15 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477528', 'tblTempUsageDetail_20' ) end [2025-02-15 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477528', 'tblTempVendorCDR_20' ) start [2025-02-15 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477528', 'tblTempVendorCDR_20' ) end [2025-02-15 00:52:19] Production.INFO: ProcessCDR(1,14477528,1,1,2) [2025-02-15 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477528', 'tblTempUsageDetail_20' ) start [2025-02-15 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477528', 'tblTempUsageDetail_20' ) end [2025-02-15 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:52:22] Production.INFO: ==18207== Releasing lock... [2025-02-15 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:53:05 [end_date_ymd] => 2025-02-15 00:53:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:53:05' and `end` < '2025-02-15 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-15 00:53:19] Production.INFO: count ==517 [2025-02-15 00:53:20] Production.ERROR: pbx CDR StartTime 2025-02-14 21:53:05 - End Time 2025-02-15 00:53:05 [2025-02-15 00:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477533', 'tblTempUsageDetail_20' ) start [2025-02-15 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477533', 'tblTempUsageDetail_20' ) end [2025-02-15 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477533', 'tblTempVendorCDR_20' ) start [2025-02-15 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477533', 'tblTempVendorCDR_20' ) end [2025-02-15 00:53:20] Production.INFO: ProcessCDR(1,14477533,1,1,2) [2025-02-15 00:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477533', 'tblTempUsageDetail_20' ) start [2025-02-15 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477533', 'tblTempUsageDetail_20' ) end [2025-02-15 00:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:53:23] Production.INFO: ==18279== Releasing lock... [2025-02-15 00:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:53:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:54:06 [end_date_ymd] => 2025-02-15 00:54:06 [RateCDR] => 1 ) [2025-02-15 00: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-14 21:54:06' and `end` < '2025-02-15 00: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-15 00:54:21] Production.INFO: count ==513 [2025-02-15 00:54:21] Production.ERROR: pbx CDR StartTime 2025-02-14 21:54:06 - End Time 2025-02-15 00:54:06 [2025-02-15 00:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477538', 'tblTempUsageDetail_20' ) start [2025-02-15 00:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477538', 'tblTempUsageDetail_20' ) end [2025-02-15 00:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477538', 'tblTempVendorCDR_20' ) start [2025-02-15 00:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477538', 'tblTempVendorCDR_20' ) end [2025-02-15 00:54:21] Production.INFO: ProcessCDR(1,14477538,1,1,2) [2025-02-15 00:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477538', 'tblTempUsageDetail_20' ) start [2025-02-15 00:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477538', 'tblTempUsageDetail_20' ) end [2025-02-15 00:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:54:24] Production.INFO: ==18351== Releasing lock... [2025-02-15 00:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:54:24] Production.INFO: 33 MB #Memory Used# [2025-02-15 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:55:05 [end_date_ymd] => 2025-02-15 00:55:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:55:05' and `end` < '2025-02-15 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-15 00:55:18] Production.INFO: count ==511 [2025-02-15 00:55:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:55:05 - End Time 2025-02-15 00:55:05 [2025-02-15 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477543', 'tblTempUsageDetail_20' ) start [2025-02-15 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477543', 'tblTempUsageDetail_20' ) end [2025-02-15 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477543', 'tblTempVendorCDR_20' ) start [2025-02-15 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477543', 'tblTempVendorCDR_20' ) end [2025-02-15 00:55:18] Production.INFO: ProcessCDR(1,14477543,1,1,2) [2025-02-15 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477543', 'tblTempUsageDetail_20' ) start [2025-02-15 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477543', 'tblTempUsageDetail_20' ) end [2025-02-15 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:55:22] Production.INFO: ==18421== Releasing lock... [2025-02-15 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:55:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 00:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:56:04 [end_date_ymd] => 2025-02-15 00:56:04 [RateCDR] => 1 ) [2025-02-15 00: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-14 21:56:04' and `end` < '2025-02-15 00: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-15 00:56:18] Production.INFO: count ==500 [2025-02-15 00:56:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:56:04 - End Time 2025-02-15 00:56:04 [2025-02-15 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477548', 'tblTempUsageDetail_20' ) start [2025-02-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477548', 'tblTempUsageDetail_20' ) end [2025-02-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477548', 'tblTempVendorCDR_20' ) start [2025-02-15 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477548', 'tblTempVendorCDR_20' ) end [2025-02-15 00:56:18] Production.INFO: ProcessCDR(1,14477548,1,1,2) [2025-02-15 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477548', 'tblTempUsageDetail_20' ) start [2025-02-15 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477548', 'tblTempUsageDetail_20' ) end [2025-02-15 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:56:21] Production.INFO: ==18497== Releasing lock... [2025-02-15 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:56:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:57:05 [end_date_ymd] => 2025-02-15 00:57:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:57:05' and `end` < '2025-02-15 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-15 00:57:20] Production.INFO: count ==500 [2025-02-15 00:57:20] Production.ERROR: pbx CDR StartTime 2025-02-14 21:57:05 - End Time 2025-02-15 00:57:05 [2025-02-15 00:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477553', 'tblTempUsageDetail_20' ) start [2025-02-15 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477553', 'tblTempUsageDetail_20' ) end [2025-02-15 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477553', 'tblTempVendorCDR_20' ) start [2025-02-15 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477553', 'tblTempVendorCDR_20' ) end [2025-02-15 00:57:20] Production.INFO: ProcessCDR(1,14477553,1,1,2) [2025-02-15 00:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477553', 'tblTempUsageDetail_20' ) start [2025-02-15 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477553', 'tblTempUsageDetail_20' ) end [2025-02-15 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:57:23] Production.INFO: ==18570== Releasing lock... [2025-02-15 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:57:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:58:05 [end_date_ymd] => 2025-02-15 00:58:05 [RateCDR] => 1 ) [2025-02-15 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 21:58:05' and `end` < '2025-02-15 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 00:58:18] Production.INFO: count ==500 [2025-02-15 00:58:18] Production.ERROR: pbx CDR StartTime 2025-02-14 21:58:05 - End Time 2025-02-15 00:58:05 [2025-02-15 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477558', 'tblTempUsageDetail_20' ) start [2025-02-15 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477558', 'tblTempUsageDetail_20' ) end [2025-02-15 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477558', 'tblTempVendorCDR_20' ) start [2025-02-15 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477558', 'tblTempVendorCDR_20' ) end [2025-02-15 00:58:18] Production.INFO: ProcessCDR(1,14477558,1,1,2) [2025-02-15 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477558', 'tblTempUsageDetail_20' ) start [2025-02-15 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477558', 'tblTempUsageDetail_20' ) end [2025-02-15 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:58:22] Production.INFO: ==18641== Releasing lock... [2025-02-15 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:58:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 21:59:05 [end_date_ymd] => 2025-02-15 00:59:05 [RateCDR] => 1 ) [2025-02-15 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-14 21:59:05' and `end` < '2025-02-15 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-15 00:59:19] Production.INFO: count ==493 [2025-02-15 00:59:19] Production.ERROR: pbx CDR StartTime 2025-02-14 21:59:05 - End Time 2025-02-15 00:59:05 [2025-02-15 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477563', 'tblTempUsageDetail_20' ) start [2025-02-15 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477563', 'tblTempUsageDetail_20' ) end [2025-02-15 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477563', 'tblTempVendorCDR_20' ) start [2025-02-15 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477563', 'tblTempVendorCDR_20' ) end [2025-02-15 00:59:19] Production.INFO: ProcessCDR(1,14477563,1,1,2) [2025-02-15 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477563', 'tblTempUsageDetail_20' ) start [2025-02-15 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477563', 'tblTempUsageDetail_20' ) end [2025-02-15 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 00:59:22] Production.INFO: ==18719== Releasing lock... [2025-02-15 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 00:59:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:00:06 [end_date_ymd] => 2025-02-15 01:00:06 [RateCDR] => 1 ) [2025-02-15 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-14 22:00:06' and `end` < '2025-02-15 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-15 01:00:19] Production.INFO: count ==503 [2025-02-15 01:00:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:00:06 - End Time 2025-02-15 01:00:06 [2025-02-15 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477569', 'tblTempUsageDetail_20' ) start [2025-02-15 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477569', 'tblTempUsageDetail_20' ) end [2025-02-15 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477569', 'tblTempVendorCDR_20' ) start [2025-02-15 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477569', 'tblTempVendorCDR_20' ) end [2025-02-15 01:00:19] Production.INFO: ProcessCDR(1,14477569,1,1,2) [2025-02-15 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477569', 'tblTempUsageDetail_20' ) start [2025-02-15 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477569', 'tblTempUsageDetail_20' ) end [2025-02-15 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:00:23] Production.INFO: ==18795== Releasing lock... [2025-02-15 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:00:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:01:06 [end_date_ymd] => 2025-02-15 01:01:06 [RateCDR] => 1 ) [2025-02-15 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:01:06' and `end` < '2025-02-15 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:01:19] Production.INFO: count ==523 [2025-02-15 01:01:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:01:06 - End Time 2025-02-15 01:01:06 [2025-02-15 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477574', 'tblTempUsageDetail_20' ) start [2025-02-15 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477574', 'tblTempUsageDetail_20' ) end [2025-02-15 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477574', 'tblTempVendorCDR_20' ) start [2025-02-15 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477574', 'tblTempVendorCDR_20' ) end [2025-02-15 01:01:19] Production.INFO: ProcessCDR(1,14477574,1,1,2) [2025-02-15 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477574', 'tblTempUsageDetail_20' ) start [2025-02-15 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477574', 'tblTempUsageDetail_20' ) end [2025-02-15 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:01:22] Production.INFO: ==18888== Releasing lock... [2025-02-15 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:01:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:02:05 [end_date_ymd] => 2025-02-15 01:02:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:02:05' and `end` < '2025-02-15 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-15 01:02:19] Production.INFO: count ==526 [2025-02-15 01:02:20] Production.ERROR: pbx CDR StartTime 2025-02-14 22:02:05 - End Time 2025-02-15 01:02:05 [2025-02-15 01:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477579', 'tblTempUsageDetail_20' ) start [2025-02-15 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477579', 'tblTempUsageDetail_20' ) end [2025-02-15 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477579', 'tblTempVendorCDR_20' ) start [2025-02-15 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477579', 'tblTempVendorCDR_20' ) end [2025-02-15 01:02:20] Production.INFO: ProcessCDR(1,14477579,1,1,2) [2025-02-15 01:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477579', 'tblTempUsageDetail_20' ) start [2025-02-15 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477579', 'tblTempUsageDetail_20' ) end [2025-02-15 01:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:02:23] Production.INFO: ==18997== Releasing lock... [2025-02-15 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:02:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:03:05 [end_date_ymd] => 2025-02-15 01:03:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:03:05' and `end` < '2025-02-15 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-15 01:03:19] Production.INFO: count ==526 [2025-02-15 01:03:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:03:05 - End Time 2025-02-15 01:03:05 [2025-02-15 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477584', 'tblTempUsageDetail_20' ) start [2025-02-15 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477584', 'tblTempUsageDetail_20' ) end [2025-02-15 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477584', 'tblTempVendorCDR_20' ) start [2025-02-15 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477584', 'tblTempVendorCDR_20' ) end [2025-02-15 01:03:19] Production.INFO: ProcessCDR(1,14477584,1,1,2) [2025-02-15 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477584', 'tblTempUsageDetail_20' ) start [2025-02-15 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477584', 'tblTempUsageDetail_20' ) end [2025-02-15 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:03:22] Production.INFO: ==19069== Releasing lock... [2025-02-15 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:03:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:04:05 [end_date_ymd] => 2025-02-15 01:04:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:04:05' and `end` < '2025-02-15 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-15 01:04:18] Production.INFO: count ==527 [2025-02-15 01:04:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:04:05 - End Time 2025-02-15 01:04:05 [2025-02-15 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477589', 'tblTempUsageDetail_20' ) start [2025-02-15 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477589', 'tblTempUsageDetail_20' ) end [2025-02-15 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477589', 'tblTempVendorCDR_20' ) start [2025-02-15 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477589', 'tblTempVendorCDR_20' ) end [2025-02-15 01:04:18] Production.INFO: ProcessCDR(1,14477589,1,1,2) [2025-02-15 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477589', 'tblTempUsageDetail_20' ) start [2025-02-15 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477589', 'tblTempUsageDetail_20' ) end [2025-02-15 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:04:22] Production.INFO: ==19145== Releasing lock... [2025-02-15 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:04:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:05:05 [end_date_ymd] => 2025-02-15 01:05:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:05:05' and `end` < '2025-02-15 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-15 01:05:18] Production.INFO: count ==527 [2025-02-15 01:05:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:05:05 - End Time 2025-02-15 01:05:05 [2025-02-15 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477594', 'tblTempUsageDetail_20' ) start [2025-02-15 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477594', 'tblTempUsageDetail_20' ) end [2025-02-15 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477594', 'tblTempVendorCDR_20' ) start [2025-02-15 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477594', 'tblTempVendorCDR_20' ) end [2025-02-15 01:05:18] Production.INFO: ProcessCDR(1,14477594,1,1,2) [2025-02-15 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477594', 'tblTempUsageDetail_20' ) start [2025-02-15 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477594', 'tblTempUsageDetail_20' ) end [2025-02-15 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:05:22] Production.INFO: ==19220== Releasing lock... [2025-02-15 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:05:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:06:05 [end_date_ymd] => 2025-02-15 01:06:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:06:05' and `end` < '2025-02-15 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-15 01:06:19] Production.INFO: count ==523 [2025-02-15 01:06:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:06:05 - End Time 2025-02-15 01:06:05 [2025-02-15 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477599', 'tblTempUsageDetail_20' ) start [2025-02-15 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477599', 'tblTempUsageDetail_20' ) end [2025-02-15 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477599', 'tblTempVendorCDR_20' ) start [2025-02-15 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477599', 'tblTempVendorCDR_20' ) end [2025-02-15 01:06:19] Production.INFO: ProcessCDR(1,14477599,1,1,2) [2025-02-15 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477599', 'tblTempUsageDetail_20' ) start [2025-02-15 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477599', 'tblTempUsageDetail_20' ) end [2025-02-15 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:06:22] Production.INFO: ==19291== Releasing lock... [2025-02-15 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:06:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:07:05 [end_date_ymd] => 2025-02-15 01:07:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:07:05' and `end` < '2025-02-15 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-15 01:07:19] Production.INFO: count ==526 [2025-02-15 01:07:20] Production.ERROR: pbx CDR StartTime 2025-02-14 22:07:05 - End Time 2025-02-15 01:07:05 [2025-02-15 01:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477604', 'tblTempUsageDetail_20' ) start [2025-02-15 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477604', 'tblTempUsageDetail_20' ) end [2025-02-15 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477604', 'tblTempVendorCDR_20' ) start [2025-02-15 01:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477604', 'tblTempVendorCDR_20' ) end [2025-02-15 01:07:20] Production.INFO: ProcessCDR(1,14477604,1,1,2) [2025-02-15 01:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477604', 'tblTempUsageDetail_20' ) start [2025-02-15 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477604', 'tblTempUsageDetail_20' ) end [2025-02-15 01:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:07:23] Production.INFO: ==19363== Releasing lock... [2025-02-15 01:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:07:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:08:06 [end_date_ymd] => 2025-02-15 01:08:06 [RateCDR] => 1 ) [2025-02-15 01: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-14 22:08:06' and `end` < '2025-02-15 01: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-15 01:08:19] Production.INFO: count ==530 [2025-02-15 01:08:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:08:06 - End Time 2025-02-15 01:08:06 [2025-02-15 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477609', 'tblTempUsageDetail_20' ) start [2025-02-15 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477609', 'tblTempUsageDetail_20' ) end [2025-02-15 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477609', 'tblTempVendorCDR_20' ) start [2025-02-15 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477609', 'tblTempVendorCDR_20' ) end [2025-02-15 01:08:19] Production.INFO: ProcessCDR(1,14477609,1,1,2) [2025-02-15 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477609', 'tblTempUsageDetail_20' ) start [2025-02-15 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477609', 'tblTempUsageDetail_20' ) end [2025-02-15 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:08:22] Production.INFO: ==19435== Releasing lock... [2025-02-15 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:08:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:09:05 [end_date_ymd] => 2025-02-15 01:09:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:09:05' and `end` < '2025-02-15 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-15 01:09:18] Production.INFO: count ==529 [2025-02-15 01:09:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:09:05 - End Time 2025-02-15 01:09:05 [2025-02-15 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477614', 'tblTempUsageDetail_20' ) start [2025-02-15 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477614', 'tblTempUsageDetail_20' ) end [2025-02-15 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477614', 'tblTempVendorCDR_20' ) start [2025-02-15 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477614', 'tblTempVendorCDR_20' ) end [2025-02-15 01:09:18] Production.INFO: ProcessCDR(1,14477614,1,1,2) [2025-02-15 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477614', 'tblTempUsageDetail_20' ) start [2025-02-15 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477614', 'tblTempUsageDetail_20' ) end [2025-02-15 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:09:22] Production.INFO: ==19505== Releasing lock... [2025-02-15 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:09:22] Production.INFO: 32 MB #Memory Used# [2025-02-15 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:10:06 [end_date_ymd] => 2025-02-15 01:10:06 [RateCDR] => 1 ) [2025-02-15 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-14 22:10:06' and `end` < '2025-02-15 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-15 01:10:19] Production.INFO: count ==536 [2025-02-15 01:10:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:10:06 - End Time 2025-02-15 01:10:06 [2025-02-15 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477619', 'tblTempUsageDetail_20' ) start [2025-02-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477619', 'tblTempUsageDetail_20' ) end [2025-02-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477619', 'tblTempVendorCDR_20' ) start [2025-02-15 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477619', 'tblTempVendorCDR_20' ) end [2025-02-15 01:10:19] Production.INFO: ProcessCDR(1,14477619,1,1,2) [2025-02-15 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477619', 'tblTempUsageDetail_20' ) start [2025-02-15 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477619', 'tblTempUsageDetail_20' ) end [2025-02-15 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:10:23] Production.INFO: ==19579== Releasing lock... [2025-02-15 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:10:23] Production.INFO: 32 MB #Memory Used# [2025-02-15 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:11:05 [end_date_ymd] => 2025-02-15 01:11:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:11:05' and `end` < '2025-02-15 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-15 01:11:18] Production.INFO: count ==555 [2025-02-15 01:11:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:11:05 - End Time 2025-02-15 01:11:05 [2025-02-15 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477625', 'tblTempUsageDetail_20' ) start [2025-02-15 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477625', 'tblTempUsageDetail_20' ) end [2025-02-15 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477625', 'tblTempVendorCDR_20' ) start [2025-02-15 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477625', 'tblTempVendorCDR_20' ) end [2025-02-15 01:11:18] Production.INFO: ProcessCDR(1,14477625,1,1,2) [2025-02-15 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477625', 'tblTempUsageDetail_20' ) start [2025-02-15 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477625', 'tblTempUsageDetail_20' ) end [2025-02-15 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:11:21] Production.INFO: ==19651== Releasing lock... [2025-02-15 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:11:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:12:05 [end_date_ymd] => 2025-02-15 01:12:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:12:05' and `end` < '2025-02-15 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-15 01:12:18] Production.INFO: count ==555 [2025-02-15 01:12:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:12:05 - End Time 2025-02-15 01:12:05 [2025-02-15 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477630', 'tblTempUsageDetail_20' ) start [2025-02-15 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477630', 'tblTempUsageDetail_20' ) end [2025-02-15 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477630', 'tblTempVendorCDR_20' ) start [2025-02-15 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477630', 'tblTempVendorCDR_20' ) end [2025-02-15 01:12:19] Production.INFO: ProcessCDR(1,14477630,1,1,2) [2025-02-15 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477630', 'tblTempUsageDetail_20' ) start [2025-02-15 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477630', 'tblTempUsageDetail_20' ) end [2025-02-15 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:12:22] Production.INFO: ==19723== Releasing lock... [2025-02-15 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:12:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:13:05 [end_date_ymd] => 2025-02-15 01:13:05 [RateCDR] => 1 ) [2025-02-15 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:13:05' and `end` < '2025-02-15 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:13:19] Production.INFO: count ==551 [2025-02-15 01:13:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:13:05 - End Time 2025-02-15 01:13:05 [2025-02-15 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477635', 'tblTempUsageDetail_20' ) start [2025-02-15 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477635', 'tblTempUsageDetail_20' ) end [2025-02-15 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477635', 'tblTempVendorCDR_20' ) start [2025-02-15 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477635', 'tblTempVendorCDR_20' ) end [2025-02-15 01:13:19] Production.INFO: ProcessCDR(1,14477635,1,1,2) [2025-02-15 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477635', 'tblTempUsageDetail_20' ) start [2025-02-15 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477635', 'tblTempUsageDetail_20' ) end [2025-02-15 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:13:22] Production.INFO: ==19794== Releasing lock... [2025-02-15 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:13:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:14:06 [end_date_ymd] => 2025-02-15 01:14:06 [RateCDR] => 1 ) [2025-02-15 01:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:14:06' and `end` < '2025-02-15 01:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:14:19] Production.INFO: count ==549 [2025-02-15 01:14:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:14:06 - End Time 2025-02-15 01:14:06 [2025-02-15 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477640', 'tblTempUsageDetail_20' ) start [2025-02-15 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477640', 'tblTempUsageDetail_20' ) end [2025-02-15 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477640', 'tblTempVendorCDR_20' ) start [2025-02-15 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477640', 'tblTempVendorCDR_20' ) end [2025-02-15 01:14:19] Production.INFO: ProcessCDR(1,14477640,1,1,2) [2025-02-15 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477640', 'tblTempUsageDetail_20' ) start [2025-02-15 01:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477640', 'tblTempUsageDetail_20' ) end [2025-02-15 01:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:14:24] Production.INFO: ==19864== Releasing lock... [2025-02-15 01:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:14:24] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:15:05 [end_date_ymd] => 2025-02-15 01:15:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:15:05' and `end` < '2025-02-15 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-15 01:15:18] Production.INFO: count ==547 [2025-02-15 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:15:05 - End Time 2025-02-15 01:15:05 [2025-02-15 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477645', 'tblTempUsageDetail_20' ) start [2025-02-15 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477645', 'tblTempUsageDetail_20' ) end [2025-02-15 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477645', 'tblTempVendorCDR_20' ) start [2025-02-15 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477645', 'tblTempVendorCDR_20' ) end [2025-02-15 01:15:18] Production.INFO: ProcessCDR(1,14477645,1,1,2) [2025-02-15 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477645', 'tblTempUsageDetail_20' ) start [2025-02-15 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477645', 'tblTempUsageDetail_20' ) end [2025-02-15 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:15:21] Production.INFO: ==19938== Releasing lock... [2025-02-15 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:16:05 [end_date_ymd] => 2025-02-15 01:16:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:16:05' and `end` < '2025-02-15 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-15 01:16:19] Production.INFO: count ==546 [2025-02-15 01:16:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:16:05 - End Time 2025-02-15 01:16:05 [2025-02-15 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477650', 'tblTempUsageDetail_20' ) start [2025-02-15 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477650', 'tblTempUsageDetail_20' ) end [2025-02-15 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477650', 'tblTempVendorCDR_20' ) start [2025-02-15 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477650', 'tblTempVendorCDR_20' ) end [2025-02-15 01:16:19] Production.INFO: ProcessCDR(1,14477650,1,1,2) [2025-02-15 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477650', 'tblTempUsageDetail_20' ) start [2025-02-15 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477650', 'tblTempUsageDetail_20' ) end [2025-02-15 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:16:22] Production.INFO: ==20013== Releasing lock... [2025-02-15 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:16:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:17:05 [end_date_ymd] => 2025-02-15 01:17:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:17:05' and `end` < '2025-02-15 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-15 01:17:19] Production.INFO: count ==544 [2025-02-15 01:17:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:17:05 - End Time 2025-02-15 01:17:05 [2025-02-15 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477655', 'tblTempUsageDetail_20' ) start [2025-02-15 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477655', 'tblTempUsageDetail_20' ) end [2025-02-15 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477655', 'tblTempVendorCDR_20' ) start [2025-02-15 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477655', 'tblTempVendorCDR_20' ) end [2025-02-15 01:17:19] Production.INFO: ProcessCDR(1,14477655,1,1,2) [2025-02-15 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477655', 'tblTempUsageDetail_20' ) start [2025-02-15 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477655', 'tblTempUsageDetail_20' ) end [2025-02-15 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:17:22] Production.INFO: ==20127== Releasing lock... [2025-02-15 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:17:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:18:06 [end_date_ymd] => 2025-02-15 01:18:06 [RateCDR] => 1 ) [2025-02-15 01: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-14 22:18:06' and `end` < '2025-02-15 01: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-15 01:18:19] Production.INFO: count ==545 [2025-02-15 01:18:20] Production.ERROR: pbx CDR StartTime 2025-02-14 22:18:06 - End Time 2025-02-15 01:18:06 [2025-02-15 01:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477660', 'tblTempUsageDetail_20' ) start [2025-02-15 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477660', 'tblTempUsageDetail_20' ) end [2025-02-15 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477660', 'tblTempVendorCDR_20' ) start [2025-02-15 01:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477660', 'tblTempVendorCDR_20' ) end [2025-02-15 01:18:20] Production.INFO: ProcessCDR(1,14477660,1,1,2) [2025-02-15 01:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477660', 'tblTempUsageDetail_20' ) start [2025-02-15 01:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477660', 'tblTempUsageDetail_20' ) end [2025-02-15 01:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:18:24] Production.INFO: ==20198== Releasing lock... [2025-02-15 01:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:18:24] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:19:05 [end_date_ymd] => 2025-02-15 01:19:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:19:05' and `end` < '2025-02-15 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-15 01:19:18] Production.INFO: count ==545 [2025-02-15 01:19:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:19:05 - End Time 2025-02-15 01:19:05 [2025-02-15 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477665', 'tblTempUsageDetail_20' ) start [2025-02-15 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477665', 'tblTempUsageDetail_20' ) end [2025-02-15 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477665', 'tblTempVendorCDR_20' ) start [2025-02-15 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477665', 'tblTempVendorCDR_20' ) end [2025-02-15 01:19:18] Production.INFO: ProcessCDR(1,14477665,1,1,2) [2025-02-15 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477665', 'tblTempUsageDetail_20' ) start [2025-02-15 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477665', 'tblTempUsageDetail_20' ) end [2025-02-15 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:19:21] Production.INFO: ==20269== Releasing lock... [2025-02-15 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:19:21] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:20:07 [end_date_ymd] => 2025-02-15 01:20:07 [RateCDR] => 1 ) [2025-02-15 01: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-14 22:20:07' and `end` < '2025-02-15 01: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-15 01:20:20] Production.INFO: count ==557 [2025-02-15 01:20:20] Production.ERROR: pbx CDR StartTime 2025-02-14 22:20:07 - End Time 2025-02-15 01:20:07 [2025-02-15 01:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477671', 'tblTempUsageDetail_20' ) start [2025-02-15 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477671', 'tblTempUsageDetail_20' ) end [2025-02-15 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477671', 'tblTempVendorCDR_20' ) start [2025-02-15 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477671', 'tblTempVendorCDR_20' ) end [2025-02-15 01:20:20] Production.INFO: ProcessCDR(1,14477671,1,1,2) [2025-02-15 01:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477671', 'tblTempUsageDetail_20' ) start [2025-02-15 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477671', 'tblTempUsageDetail_20' ) end [2025-02-15 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:20:23] Production.INFO: ==20341== Releasing lock... [2025-02-15 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:20:23] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:21:05 [end_date_ymd] => 2025-02-15 01:21:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:21:05' and `end` < '2025-02-15 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-15 01:21:18] Production.INFO: count ==568 [2025-02-15 01:21:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:21:05 - End Time 2025-02-15 01:21:05 [2025-02-15 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477676', 'tblTempUsageDetail_20' ) start [2025-02-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477676', 'tblTempUsageDetail_20' ) end [2025-02-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477676', 'tblTempVendorCDR_20' ) start [2025-02-15 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477676', 'tblTempVendorCDR_20' ) end [2025-02-15 01:21:18] Production.INFO: ProcessCDR(1,14477676,1,1,2) [2025-02-15 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477676', 'tblTempUsageDetail_20' ) start [2025-02-15 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477676', 'tblTempUsageDetail_20' ) end [2025-02-15 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:21:21] Production.INFO: ==20418== Releasing lock... [2025-02-15 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:21:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:22:05 [end_date_ymd] => 2025-02-15 01:22:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:22:05' and `end` < '2025-02-15 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-15 01:22:19] Production.INFO: count ==567 [2025-02-15 01:22:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:22:05 - End Time 2025-02-15 01:22:05 [2025-02-15 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477681', 'tblTempUsageDetail_20' ) start [2025-02-15 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477681', 'tblTempUsageDetail_20' ) end [2025-02-15 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477681', 'tblTempVendorCDR_20' ) start [2025-02-15 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477681', 'tblTempVendorCDR_20' ) end [2025-02-15 01:22:19] Production.INFO: ProcessCDR(1,14477681,1,1,2) [2025-02-15 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477681', 'tblTempUsageDetail_20' ) start [2025-02-15 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477681', 'tblTempUsageDetail_20' ) end [2025-02-15 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:22:23] Production.INFO: ==20490== Releasing lock... [2025-02-15 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:22:23] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:23:05 [end_date_ymd] => 2025-02-15 01:23:05 [RateCDR] => 1 ) [2025-02-15 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:23:05' and `end` < '2025-02-15 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:23:18] Production.INFO: count ==567 [2025-02-15 01:23:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:23:05 - End Time 2025-02-15 01:23:05 [2025-02-15 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477686', 'tblTempUsageDetail_20' ) start [2025-02-15 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477686', 'tblTempUsageDetail_20' ) end [2025-02-15 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477686', 'tblTempVendorCDR_20' ) start [2025-02-15 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477686', 'tblTempVendorCDR_20' ) end [2025-02-15 01:23:18] Production.INFO: ProcessCDR(1,14477686,1,1,2) [2025-02-15 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477686', 'tblTempUsageDetail_20' ) start [2025-02-15 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477686', 'tblTempUsageDetail_20' ) end [2025-02-15 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:23:22] Production.INFO: ==20565== Releasing lock... [2025-02-15 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:23:22] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:24:05 [end_date_ymd] => 2025-02-15 01:24:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:24:05' and `end` < '2025-02-15 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-15 01:24:18] Production.INFO: count ==567 [2025-02-15 01:24:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:24:05 - End Time 2025-02-15 01:24:05 [2025-02-15 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477691', 'tblTempUsageDetail_20' ) start [2025-02-15 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477691', 'tblTempUsageDetail_20' ) end [2025-02-15 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477691', 'tblTempVendorCDR_20' ) start [2025-02-15 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477691', 'tblTempVendorCDR_20' ) end [2025-02-15 01:24:19] Production.INFO: ProcessCDR(1,14477691,1,1,2) [2025-02-15 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477691', 'tblTempUsageDetail_20' ) start [2025-02-15 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477691', 'tblTempUsageDetail_20' ) end [2025-02-15 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:24:22] Production.INFO: ==20638== Releasing lock... [2025-02-15 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:24:22] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:25:05 [end_date_ymd] => 2025-02-15 01:25:05 [RateCDR] => 1 ) [2025-02-15 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:25:05' and `end` < '2025-02-15 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:25:18] Production.INFO: count ==566 [2025-02-15 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:25:05 - End Time 2025-02-15 01:25:05 [2025-02-15 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477696', 'tblTempUsageDetail_20' ) start [2025-02-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477696', 'tblTempUsageDetail_20' ) end [2025-02-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477696', 'tblTempVendorCDR_20' ) start [2025-02-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477696', 'tblTempVendorCDR_20' ) end [2025-02-15 01:25:18] Production.INFO: ProcessCDR(1,14477696,1,1,2) [2025-02-15 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477696', 'tblTempUsageDetail_20' ) start [2025-02-15 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477696', 'tblTempUsageDetail_20' ) end [2025-02-15 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:25:21] Production.INFO: ==20710== Releasing lock... [2025-02-15 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:26:05 [end_date_ymd] => 2025-02-15 01:26:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:26:05' and `end` < '2025-02-15 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-15 01:26:18] Production.INFO: count ==566 [2025-02-15 01:26:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:26:05 - End Time 2025-02-15 01:26:05 [2025-02-15 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477701', 'tblTempUsageDetail_20' ) start [2025-02-15 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477701', 'tblTempUsageDetail_20' ) end [2025-02-15 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477701', 'tblTempVendorCDR_20' ) start [2025-02-15 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477701', 'tblTempVendorCDR_20' ) end [2025-02-15 01:26:18] Production.INFO: ProcessCDR(1,14477701,1,1,2) [2025-02-15 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477701', 'tblTempUsageDetail_20' ) start [2025-02-15 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477701', 'tblTempUsageDetail_20' ) end [2025-02-15 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:26:21] Production.INFO: ==20783== Releasing lock... [2025-02-15 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:27:05 [end_date_ymd] => 2025-02-15 01:27:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:27:05' and `end` < '2025-02-15 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-15 01:27:18] Production.INFO: count ==566 [2025-02-15 01:27:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:27:05 - End Time 2025-02-15 01:27:05 [2025-02-15 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477706', 'tblTempUsageDetail_20' ) start [2025-02-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477706', 'tblTempUsageDetail_20' ) end [2025-02-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477706', 'tblTempVendorCDR_20' ) start [2025-02-15 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477706', 'tblTempVendorCDR_20' ) end [2025-02-15 01:27:18] Production.INFO: ProcessCDR(1,14477706,1,1,2) [2025-02-15 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477706', 'tblTempUsageDetail_20' ) start [2025-02-15 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477706', 'tblTempUsageDetail_20' ) end [2025-02-15 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:27:21] Production.INFO: ==20856== Releasing lock... [2025-02-15 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:27:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:28:05 [end_date_ymd] => 2025-02-15 01:28:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:28:05' and `end` < '2025-02-15 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-15 01:28:18] Production.INFO: count ==566 [2025-02-15 01:28:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:28:05 - End Time 2025-02-15 01:28:05 [2025-02-15 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477711', 'tblTempUsageDetail_20' ) start [2025-02-15 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477711', 'tblTempUsageDetail_20' ) end [2025-02-15 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477711', 'tblTempVendorCDR_20' ) start [2025-02-15 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477711', 'tblTempVendorCDR_20' ) end [2025-02-15 01:28:18] Production.INFO: ProcessCDR(1,14477711,1,1,2) [2025-02-15 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477711', 'tblTempUsageDetail_20' ) start [2025-02-15 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477711', 'tblTempUsageDetail_20' ) end [2025-02-15 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:28:22] Production.INFO: ==20929== Releasing lock... [2025-02-15 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:28:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:29:05 [end_date_ymd] => 2025-02-15 01:29:05 [RateCDR] => 1 ) [2025-02-15 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:29:05' and `end` < '2025-02-15 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:29:18] Production.INFO: count ==566 [2025-02-15 01:29:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:29:05 - End Time 2025-02-15 01:29:05 [2025-02-15 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477716', 'tblTempUsageDetail_20' ) start [2025-02-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477716', 'tblTempUsageDetail_20' ) end [2025-02-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477716', 'tblTempVendorCDR_20' ) start [2025-02-15 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477716', 'tblTempVendorCDR_20' ) end [2025-02-15 01:29:18] Production.INFO: ProcessCDR(1,14477716,1,1,2) [2025-02-15 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477716', 'tblTempUsageDetail_20' ) start [2025-02-15 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477716', 'tblTempUsageDetail_20' ) end [2025-02-15 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:29:21] Production.INFO: ==21004== Releasing lock... [2025-02-15 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:29:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:30:06 [end_date_ymd] => 2025-02-15 01:30:06 [RateCDR] => 1 ) [2025-02-15 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-14 22:30:06' and `end` < '2025-02-15 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-15 01:30:19] Production.INFO: count ==574 [2025-02-15 01:30:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:30:06 - End Time 2025-02-15 01:30:06 [2025-02-15 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477721', 'tblTempUsageDetail_20' ) start [2025-02-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477721', 'tblTempUsageDetail_20' ) end [2025-02-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477721', 'tblTempVendorCDR_20' ) start [2025-02-15 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477721', 'tblTempVendorCDR_20' ) end [2025-02-15 01:30:19] Production.INFO: ProcessCDR(1,14477721,1,1,2) [2025-02-15 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477721', 'tblTempUsageDetail_20' ) start [2025-02-15 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477721', 'tblTempUsageDetail_20' ) end [2025-02-15 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:30:22] Production.INFO: ==21081== Releasing lock... [2025-02-15 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:30:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:31:05 [end_date_ymd] => 2025-02-15 01:31:05 [RateCDR] => 1 ) [2025-02-15 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:31:05' and `end` < '2025-02-15 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:31:18] Production.INFO: count ==574 [2025-02-15 01:31:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:31:05 - End Time 2025-02-15 01:31:05 [2025-02-15 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477727', 'tblTempUsageDetail_20' ) start [2025-02-15 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477727', 'tblTempUsageDetail_20' ) end [2025-02-15 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477727', 'tblTempVendorCDR_20' ) start [2025-02-15 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477727', 'tblTempVendorCDR_20' ) end [2025-02-15 01:31:18] Production.INFO: ProcessCDR(1,14477727,1,1,2) [2025-02-15 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477727', 'tblTempUsageDetail_20' ) start [2025-02-15 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477727', 'tblTempUsageDetail_20' ) end [2025-02-15 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:31:21] Production.INFO: ==21154== Releasing lock... [2025-02-15 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:31:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:32:05 [end_date_ymd] => 2025-02-15 01:32:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:32:05' and `end` < '2025-02-15 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-15 01:32:21] Production.INFO: count ==572 [2025-02-15 01:32:21] Production.ERROR: pbx CDR StartTime 2025-02-14 22:32:05 - End Time 2025-02-15 01:32:05 [2025-02-15 01:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477732', 'tblTempUsageDetail_20' ) start [2025-02-15 01:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477732', 'tblTempUsageDetail_20' ) end [2025-02-15 01:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477732', 'tblTempVendorCDR_20' ) start [2025-02-15 01:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477732', 'tblTempVendorCDR_20' ) end [2025-02-15 01:32:21] Production.INFO: ProcessCDR(1,14477732,1,1,2) [2025-02-15 01:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477732', 'tblTempUsageDetail_20' ) start [2025-02-15 01:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477732', 'tblTempUsageDetail_20' ) end [2025-02-15 01:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:32:24] Production.INFO: ==21224== Releasing lock... [2025-02-15 01:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:32:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:33:05 [end_date_ymd] => 2025-02-15 01:33:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:33:05' and `end` < '2025-02-15 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-15 01:33:19] Production.INFO: count ==576 [2025-02-15 01:33:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:33:05 - End Time 2025-02-15 01:33:05 [2025-02-15 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477737', 'tblTempUsageDetail_20' ) start [2025-02-15 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477737', 'tblTempUsageDetail_20' ) end [2025-02-15 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477737', 'tblTempVendorCDR_20' ) start [2025-02-15 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477737', 'tblTempVendorCDR_20' ) end [2025-02-15 01:33:19] Production.INFO: ProcessCDR(1,14477737,1,1,2) [2025-02-15 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477737', 'tblTempUsageDetail_20' ) start [2025-02-15 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477737', 'tblTempUsageDetail_20' ) end [2025-02-15 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:33:22] Production.INFO: ==21337== Releasing lock... [2025-02-15 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:33:22] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:34:06 [end_date_ymd] => 2025-02-15 01:34:06 [RateCDR] => 1 ) [2025-02-15 01: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-14 22:34:06' and `end` < '2025-02-15 01: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-15 01:34:19] Production.INFO: count ==579 [2025-02-15 01:34:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:34:06 - End Time 2025-02-15 01:34:06 [2025-02-15 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477742', 'tblTempUsageDetail_20' ) start [2025-02-15 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477742', 'tblTempUsageDetail_20' ) end [2025-02-15 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477742', 'tblTempVendorCDR_20' ) start [2025-02-15 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477742', 'tblTempVendorCDR_20' ) end [2025-02-15 01:34:19] Production.INFO: ProcessCDR(1,14477742,1,1,2) [2025-02-15 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477742', 'tblTempUsageDetail_20' ) start [2025-02-15 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477742', 'tblTempUsageDetail_20' ) end [2025-02-15 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:34:23] Production.INFO: ==21409== Releasing lock... [2025-02-15 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:34:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:35:06 [end_date_ymd] => 2025-02-15 01:35:06 [RateCDR] => 1 ) [2025-02-15 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-14 22:35:06' and `end` < '2025-02-15 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-15 01:35:19] Production.INFO: count ==581 [2025-02-15 01:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:35:06 - End Time 2025-02-15 01:35:06 [2025-02-15 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477747', 'tblTempUsageDetail_20' ) start [2025-02-15 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477747', 'tblTempUsageDetail_20' ) end [2025-02-15 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477747', 'tblTempVendorCDR_20' ) start [2025-02-15 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477747', 'tblTempVendorCDR_20' ) end [2025-02-15 01:35:19] Production.INFO: ProcessCDR(1,14477747,1,1,2) [2025-02-15 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477747', 'tblTempUsageDetail_20' ) start [2025-02-15 01:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477747', 'tblTempUsageDetail_20' ) end [2025-02-15 01:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:35:24] Production.INFO: ==21490== Releasing lock... [2025-02-15 01:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:35:24] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:36:05 [end_date_ymd] => 2025-02-15 01:36:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:36:05' and `end` < '2025-02-15 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-15 01:36:18] Production.INFO: count ==581 [2025-02-15 01:36:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:36:05 - End Time 2025-02-15 01:36:05 [2025-02-15 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477752', 'tblTempUsageDetail_20' ) start [2025-02-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477752', 'tblTempUsageDetail_20' ) end [2025-02-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477752', 'tblTempVendorCDR_20' ) start [2025-02-15 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477752', 'tblTempVendorCDR_20' ) end [2025-02-15 01:36:18] Production.INFO: ProcessCDR(1,14477752,1,1,2) [2025-02-15 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477752', 'tblTempUsageDetail_20' ) start [2025-02-15 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477752', 'tblTempUsageDetail_20' ) end [2025-02-15 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:36:22] Production.INFO: ==21566== Releasing lock... [2025-02-15 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:36:22] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:37:06 [end_date_ymd] => 2025-02-15 01:37:06 [RateCDR] => 1 ) [2025-02-15 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:37:06' and `end` < '2025-02-15 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:37:19] Production.INFO: count ==583 [2025-02-15 01:37:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:37:06 - End Time 2025-02-15 01:37:06 [2025-02-15 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477757', 'tblTempUsageDetail_20' ) start [2025-02-15 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477757', 'tblTempUsageDetail_20' ) end [2025-02-15 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477757', 'tblTempVendorCDR_20' ) start [2025-02-15 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477757', 'tblTempVendorCDR_20' ) end [2025-02-15 01:37:19] Production.INFO: ProcessCDR(1,14477757,1,1,2) [2025-02-15 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477757', 'tblTempUsageDetail_20' ) start [2025-02-15 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477757', 'tblTempUsageDetail_20' ) end [2025-02-15 01:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:37:24] Production.INFO: ==21638== Releasing lock... [2025-02-15 01:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:37:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:38:05 [end_date_ymd] => 2025-02-15 01:38:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:38:05' and `end` < '2025-02-15 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-15 01:38:19] Production.INFO: count ==583 [2025-02-15 01:38:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:38:05 - End Time 2025-02-15 01:38:05 [2025-02-15 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477762', 'tblTempUsageDetail_20' ) start [2025-02-15 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477762', 'tblTempUsageDetail_20' ) end [2025-02-15 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477762', 'tblTempVendorCDR_20' ) start [2025-02-15 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477762', 'tblTempVendorCDR_20' ) end [2025-02-15 01:38:19] Production.INFO: ProcessCDR(1,14477762,1,1,2) [2025-02-15 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477762', 'tblTempUsageDetail_20' ) start [2025-02-15 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477762', 'tblTempUsageDetail_20' ) end [2025-02-15 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:38:22] Production.INFO: ==21711== Releasing lock... [2025-02-15 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:38:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:39:06 [end_date_ymd] => 2025-02-15 01:39:06 [RateCDR] => 1 ) [2025-02-15 01: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-14 22:39:06' and `end` < '2025-02-15 01: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-15 01:39:20] Production.INFO: count ==580 [2025-02-15 01:39:20] Production.ERROR: pbx CDR StartTime 2025-02-14 22:39:06 - End Time 2025-02-15 01:39:06 [2025-02-15 01:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477767', 'tblTempUsageDetail_20' ) start [2025-02-15 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477767', 'tblTempUsageDetail_20' ) end [2025-02-15 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477767', 'tblTempVendorCDR_20' ) start [2025-02-15 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477767', 'tblTempVendorCDR_20' ) end [2025-02-15 01:39:20] Production.INFO: ProcessCDR(1,14477767,1,1,2) [2025-02-15 01:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477767', 'tblTempUsageDetail_20' ) start [2025-02-15 01:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477767', 'tblTempUsageDetail_20' ) end [2025-02-15 01:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:39:24] Production.INFO: ==21786== Releasing lock... [2025-02-15 01:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:39:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-15 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:40:06 [end_date_ymd] => 2025-02-15 01:40:06 [RateCDR] => 1 ) [2025-02-15 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:40:06' and `end` < '2025-02-15 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:40:19] Production.INFO: count ==590 [2025-02-15 01:40:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:40:06 - End Time 2025-02-15 01:40:06 [2025-02-15 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477773', 'tblTempUsageDetail_20' ) start [2025-02-15 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477773', 'tblTempUsageDetail_20' ) end [2025-02-15 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477773', 'tblTempVendorCDR_20' ) start [2025-02-15 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477773', 'tblTempVendorCDR_20' ) end [2025-02-15 01:40:19] Production.INFO: ProcessCDR(1,14477773,1,1,2) [2025-02-15 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477773', 'tblTempUsageDetail_20' ) start [2025-02-15 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477773', 'tblTempUsageDetail_20' ) end [2025-02-15 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:40:23] Production.INFO: ==21861== Releasing lock... [2025-02-15 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:40:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:41:06 [end_date_ymd] => 2025-02-15 01:41:06 [RateCDR] => 1 ) [2025-02-15 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:41:06' and `end` < '2025-02-15 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:41:21] Production.INFO: count ==603 [2025-02-15 01:41:21] Production.ERROR: pbx CDR StartTime 2025-02-14 22:41:06 - End Time 2025-02-15 01:41:06 [2025-02-15 01:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477778', 'tblTempUsageDetail_20' ) start [2025-02-15 01:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477778', 'tblTempUsageDetail_20' ) end [2025-02-15 01:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477778', 'tblTempVendorCDR_20' ) start [2025-02-15 01:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477778', 'tblTempVendorCDR_20' ) end [2025-02-15 01:41:21] Production.INFO: ProcessCDR(1,14477778,1,1,2) [2025-02-15 01:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477778', 'tblTempUsageDetail_20' ) start [2025-02-15 01:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477778', 'tblTempUsageDetail_20' ) end [2025-02-15 01:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:41:24] Production.INFO: ==21940== Releasing lock... [2025-02-15 01:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:41:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-15 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:42:06 [end_date_ymd] => 2025-02-15 01:42:06 [RateCDR] => 1 ) [2025-02-15 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-14 22:42:06' and `end` < '2025-02-15 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-15 01:42:19] Production.INFO: count ==597 [2025-02-15 01:42:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:42:06 - End Time 2025-02-15 01:42:06 [2025-02-15 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477783', 'tblTempUsageDetail_20' ) start [2025-02-15 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477783', 'tblTempUsageDetail_20' ) end [2025-02-15 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477783', 'tblTempVendorCDR_20' ) start [2025-02-15 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477783', 'tblTempVendorCDR_20' ) end [2025-02-15 01:42:19] Production.INFO: ProcessCDR(1,14477783,1,1,2) [2025-02-15 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477783', 'tblTempUsageDetail_20' ) start [2025-02-15 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477783', 'tblTempUsageDetail_20' ) end [2025-02-15 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:42:23] Production.INFO: ==22014== Releasing lock... [2025-02-15 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:42:23] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:43:05 [end_date_ymd] => 2025-02-15 01:43:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:43:05' and `end` < '2025-02-15 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-15 01:43:19] Production.INFO: count ==588 [2025-02-15 01:43:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:43:05 - End Time 2025-02-15 01:43:05 [2025-02-15 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477788', 'tblTempUsageDetail_20' ) start [2025-02-15 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477788', 'tblTempUsageDetail_20' ) end [2025-02-15 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477788', 'tblTempVendorCDR_20' ) start [2025-02-15 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477788', 'tblTempVendorCDR_20' ) end [2025-02-15 01:43:19] Production.INFO: ProcessCDR(1,14477788,1,1,2) [2025-02-15 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477788', 'tblTempUsageDetail_20' ) start [2025-02-15 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477788', 'tblTempUsageDetail_20' ) end [2025-02-15 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:43:22] Production.INFO: ==22087== Releasing lock... [2025-02-15 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:43:22] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:44:06 [end_date_ymd] => 2025-02-15 01:44:06 [RateCDR] => 1 ) [2025-02-15 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:44:06' and `end` < '2025-02-15 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:44:19] Production.INFO: count ==583 [2025-02-15 01:44:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:44:06 - End Time 2025-02-15 01:44:06 [2025-02-15 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477793', 'tblTempUsageDetail_20' ) start [2025-02-15 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477793', 'tblTempUsageDetail_20' ) end [2025-02-15 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477793', 'tblTempVendorCDR_20' ) start [2025-02-15 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477793', 'tblTempVendorCDR_20' ) end [2025-02-15 01:44:19] Production.INFO: ProcessCDR(1,14477793,1,1,2) [2025-02-15 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477793', 'tblTempUsageDetail_20' ) start [2025-02-15 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477793', 'tblTempUsageDetail_20' ) end [2025-02-15 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:44:22] Production.INFO: ==22167== Releasing lock... [2025-02-15 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:44:22] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:45:06 [end_date_ymd] => 2025-02-15 01:45:06 [RateCDR] => 1 ) [2025-02-15 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:45:06' and `end` < '2025-02-15 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:45:19] Production.INFO: count ==581 [2025-02-15 01:45:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:45:06 - End Time 2025-02-15 01:45:06 [2025-02-15 01:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477798', 'tblTempUsageDetail_20' ) start [2025-02-15 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477798', 'tblTempUsageDetail_20' ) end [2025-02-15 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477798', 'tblTempVendorCDR_20' ) start [2025-02-15 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477798', 'tblTempVendorCDR_20' ) end [2025-02-15 01:45:19] Production.INFO: ProcessCDR(1,14477798,1,1,2) [2025-02-15 01:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477798', 'tblTempUsageDetail_20' ) start [2025-02-15 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477798', 'tblTempUsageDetail_20' ) end [2025-02-15 01:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:45:23] Production.INFO: ==22243== Releasing lock... [2025-02-15 01:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:45:23] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:46:05 [end_date_ymd] => 2025-02-15 01:46:05 [RateCDR] => 1 ) [2025-02-15 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:46:05' and `end` < '2025-02-15 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:46:19] Production.INFO: count ==577 [2025-02-15 01:46:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:46:05 - End Time 2025-02-15 01:46:05 [2025-02-15 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477803', 'tblTempUsageDetail_20' ) start [2025-02-15 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477803', 'tblTempUsageDetail_20' ) end [2025-02-15 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477803', 'tblTempVendorCDR_20' ) start [2025-02-15 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477803', 'tblTempVendorCDR_20' ) end [2025-02-15 01:46:19] Production.INFO: ProcessCDR(1,14477803,1,1,2) [2025-02-15 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477803', 'tblTempUsageDetail_20' ) start [2025-02-15 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477803', 'tblTempUsageDetail_20' ) end [2025-02-15 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:46:22] Production.INFO: ==22337== Releasing lock... [2025-02-15 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:47:06 [end_date_ymd] => 2025-02-15 01:47:06 [RateCDR] => 1 ) [2025-02-15 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:47:06' and `end` < '2025-02-15 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:47:21] Production.INFO: count ==576 [2025-02-15 01:47:22] Production.ERROR: pbx CDR StartTime 2025-02-14 22:47:06 - End Time 2025-02-15 01:47:06 [2025-02-15 01:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477808', 'tblTempUsageDetail_20' ) start [2025-02-15 01:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477808', 'tblTempUsageDetail_20' ) end [2025-02-15 01:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477808', 'tblTempVendorCDR_20' ) start [2025-02-15 01:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477808', 'tblTempVendorCDR_20' ) end [2025-02-15 01:47:22] Production.INFO: ProcessCDR(1,14477808,1,1,2) [2025-02-15 01:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477808', 'tblTempUsageDetail_20' ) start [2025-02-15 01:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477808', 'tblTempUsageDetail_20' ) end [2025-02-15 01:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:47:25] Production.INFO: ==22418== Releasing lock... [2025-02-15 01:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:47:25] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:48:05 [end_date_ymd] => 2025-02-15 01:48:05 [RateCDR] => 1 ) [2025-02-15 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:48:05' and `end` < '2025-02-15 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:48:19] Production.INFO: count ==576 [2025-02-15 01:48:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:48:05 - End Time 2025-02-15 01:48:05 [2025-02-15 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477813', 'tblTempUsageDetail_20' ) start [2025-02-15 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477813', 'tblTempUsageDetail_20' ) end [2025-02-15 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477813', 'tblTempVendorCDR_20' ) start [2025-02-15 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477813', 'tblTempVendorCDR_20' ) end [2025-02-15 01:48:20] Production.INFO: ProcessCDR(1,14477813,1,1,2) [2025-02-15 01:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477813', 'tblTempUsageDetail_20' ) start [2025-02-15 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477813', 'tblTempUsageDetail_20' ) end [2025-02-15 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:48:23] Production.INFO: ==22531== Releasing lock... [2025-02-15 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:48:23] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:49:05 [end_date_ymd] => 2025-02-15 01:49:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:49:05' and `end` < '2025-02-15 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-15 01:49:18] Production.INFO: count ==574 [2025-02-15 01:49:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:49:05 - End Time 2025-02-15 01:49:05 [2025-02-15 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477818', 'tblTempUsageDetail_20' ) start [2025-02-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477818', 'tblTempUsageDetail_20' ) end [2025-02-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477818', 'tblTempVendorCDR_20' ) start [2025-02-15 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477818', 'tblTempVendorCDR_20' ) end [2025-02-15 01:49:18] Production.INFO: ProcessCDR(1,14477818,1,1,2) [2025-02-15 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477818', 'tblTempUsageDetail_20' ) start [2025-02-15 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477818', 'tblTempUsageDetail_20' ) end [2025-02-15 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:49:22] Production.INFO: ==22608== Releasing lock... [2025-02-15 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:49:22] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:50:06 [end_date_ymd] => 2025-02-15 01:50:06 [RateCDR] => 1 ) [2025-02-15 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-14 22:50:06' and `end` < '2025-02-15 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-15 01:50:19] Production.INFO: count ==579 [2025-02-15 01:50:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:50:06 - End Time 2025-02-15 01:50:06 [2025-02-15 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477824', 'tblTempUsageDetail_20' ) start [2025-02-15 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477824', 'tblTempUsageDetail_20' ) end [2025-02-15 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477824', 'tblTempVendorCDR_20' ) start [2025-02-15 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477824', 'tblTempVendorCDR_20' ) end [2025-02-15 01:50:19] Production.INFO: ProcessCDR(1,14477824,1,1,2) [2025-02-15 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477824', 'tblTempUsageDetail_20' ) start [2025-02-15 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477824', 'tblTempUsageDetail_20' ) end [2025-02-15 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:50:22] Production.INFO: ==22688== Releasing lock... [2025-02-15 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:50:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:51:05 [end_date_ymd] => 2025-02-15 01:51:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:51:05' and `end` < '2025-02-15 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-15 01:51:18] Production.INFO: count ==584 [2025-02-15 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-14 22:51:05 - End Time 2025-02-15 01:51:05 [2025-02-15 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477829', 'tblTempUsageDetail_20' ) start [2025-02-15 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477829', 'tblTempUsageDetail_20' ) end [2025-02-15 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477829', 'tblTempVendorCDR_20' ) start [2025-02-15 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477829', 'tblTempVendorCDR_20' ) end [2025-02-15 01:51:18] Production.INFO: ProcessCDR(1,14477829,1,1,2) [2025-02-15 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477829', 'tblTempUsageDetail_20' ) start [2025-02-15 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477829', 'tblTempUsageDetail_20' ) end [2025-02-15 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:51:22] Production.INFO: ==22765== Releasing lock... [2025-02-15 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:51:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:52:06 [end_date_ymd] => 2025-02-15 01:52:06 [RateCDR] => 1 ) [2025-02-15 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-14 22:52:06' and `end` < '2025-02-15 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-15 01:52:19] Production.INFO: count ==584 [2025-02-15 01:52:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:52:06 - End Time 2025-02-15 01:52:06 [2025-02-15 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477834', 'tblTempUsageDetail_20' ) start [2025-02-15 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477834', 'tblTempUsageDetail_20' ) end [2025-02-15 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477834', 'tblTempVendorCDR_20' ) start [2025-02-15 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477834', 'tblTempVendorCDR_20' ) end [2025-02-15 01:52:19] Production.INFO: ProcessCDR(1,14477834,1,1,2) [2025-02-15 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477834', 'tblTempUsageDetail_20' ) start [2025-02-15 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477834', 'tblTempUsageDetail_20' ) end [2025-02-15 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:52:23] Production.INFO: ==22840== Releasing lock... [2025-02-15 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:52:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:53:05 [end_date_ymd] => 2025-02-15 01:53:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:53:05' and `end` < '2025-02-15 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-15 01:53:18] Production.INFO: count ==582 [2025-02-15 01:53:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:53:05 - End Time 2025-02-15 01:53:05 [2025-02-15 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477839', 'tblTempUsageDetail_20' ) start [2025-02-15 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477839', 'tblTempUsageDetail_20' ) end [2025-02-15 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477839', 'tblTempVendorCDR_20' ) start [2025-02-15 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477839', 'tblTempVendorCDR_20' ) end [2025-02-15 01:53:19] Production.INFO: ProcessCDR(1,14477839,1,1,2) [2025-02-15 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477839', 'tblTempUsageDetail_20' ) start [2025-02-15 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477839', 'tblTempUsageDetail_20' ) end [2025-02-15 01:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:53:24] Production.INFO: ==22918== Releasing lock... [2025-02-15 01:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:53:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:54:06 [end_date_ymd] => 2025-02-15 01:54:06 [RateCDR] => 1 ) [2025-02-15 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-14 22:54:06' and `end` < '2025-02-15 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-15 01:54:20] Production.INFO: count ==581 [2025-02-15 01:54:20] Production.ERROR: pbx CDR StartTime 2025-02-14 22:54:06 - End Time 2025-02-15 01:54:06 [2025-02-15 01:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477844', 'tblTempUsageDetail_20' ) start [2025-02-15 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477844', 'tblTempUsageDetail_20' ) end [2025-02-15 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477844', 'tblTempVendorCDR_20' ) start [2025-02-15 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477844', 'tblTempVendorCDR_20' ) end [2025-02-15 01:54:20] Production.INFO: ProcessCDR(1,14477844,1,1,2) [2025-02-15 01:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477844', 'tblTempUsageDetail_20' ) start [2025-02-15 01:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477844', 'tblTempUsageDetail_20' ) end [2025-02-15 01:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:54:24] Production.INFO: ==22999== Releasing lock... [2025-02-15 01:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:54:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:55:05 [end_date_ymd] => 2025-02-15 01:55:05 [RateCDR] => 1 ) [2025-02-15 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-14 22:55:05' and `end` < '2025-02-15 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-15 01:55:18] Production.INFO: count ==579 [2025-02-15 01:55:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:55:05 - End Time 2025-02-15 01:55:05 [2025-02-15 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477849', 'tblTempUsageDetail_20' ) start [2025-02-15 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477849', 'tblTempUsageDetail_20' ) end [2025-02-15 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477849', 'tblTempVendorCDR_20' ) start [2025-02-15 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477849', 'tblTempVendorCDR_20' ) end [2025-02-15 01:55:19] Production.INFO: ProcessCDR(1,14477849,1,1,2) [2025-02-15 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477849', 'tblTempUsageDetail_20' ) start [2025-02-15 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477849', 'tblTempUsageDetail_20' ) end [2025-02-15 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:55:22] Production.INFO: ==23073== Releasing lock... [2025-02-15 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:55:22] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:56:05 [end_date_ymd] => 2025-02-15 01:56:05 [RateCDR] => 1 ) [2025-02-15 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:56:05' and `end` < '2025-02-15 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:56:19] Production.INFO: count ==571 [2025-02-15 01:56:20] Production.ERROR: pbx CDR StartTime 2025-02-14 22:56:05 - End Time 2025-02-15 01:56:05 [2025-02-15 01:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477854', 'tblTempUsageDetail_20' ) start [2025-02-15 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477854', 'tblTempUsageDetail_20' ) end [2025-02-15 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477854', 'tblTempVendorCDR_20' ) start [2025-02-15 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477854', 'tblTempVendorCDR_20' ) end [2025-02-15 01:56:20] Production.INFO: ProcessCDR(1,14477854,1,1,2) [2025-02-15 01:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477854', 'tblTempUsageDetail_20' ) start [2025-02-15 01:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477854', 'tblTempUsageDetail_20' ) end [2025-02-15 01:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:56:25] Production.INFO: ==23147== Releasing lock... [2025-02-15 01:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:56:25] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:57:06 [end_date_ymd] => 2025-02-15 01:57:06 [RateCDR] => 1 ) [2025-02-15 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 22:57:06' and `end` < '2025-02-15 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 01:57:20] Production.INFO: count ==567 [2025-02-15 01:57:20] Production.ERROR: pbx CDR StartTime 2025-02-14 22:57:06 - End Time 2025-02-15 01:57:06 [2025-02-15 01:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477859', 'tblTempUsageDetail_20' ) start [2025-02-15 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477859', 'tblTempUsageDetail_20' ) end [2025-02-15 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477859', 'tblTempVendorCDR_20' ) start [2025-02-15 01:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477859', 'tblTempVendorCDR_20' ) end [2025-02-15 01:57:20] Production.INFO: ProcessCDR(1,14477859,1,1,2) [2025-02-15 01:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477859', 'tblTempUsageDetail_20' ) start [2025-02-15 01:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477859', 'tblTempUsageDetail_20' ) end [2025-02-15 01:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:57:25] Production.INFO: ==23221== Releasing lock... [2025-02-15 01:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:57:25] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:58:06 [end_date_ymd] => 2025-02-15 01:58:06 [RateCDR] => 1 ) [2025-02-15 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-14 22:58:06' and `end` < '2025-02-15 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-15 01:58:19] Production.INFO: count ==561 [2025-02-15 01:58:19] Production.ERROR: pbx CDR StartTime 2025-02-14 22:58:06 - End Time 2025-02-15 01:58:06 [2025-02-15 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477864', 'tblTempUsageDetail_20' ) start [2025-02-15 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477864', 'tblTempUsageDetail_20' ) end [2025-02-15 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477864', 'tblTempVendorCDR_20' ) start [2025-02-15 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477864', 'tblTempVendorCDR_20' ) end [2025-02-15 01:58:19] Production.INFO: ProcessCDR(1,14477864,1,1,2) [2025-02-15 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477864', 'tblTempUsageDetail_20' ) start [2025-02-15 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477864', 'tblTempUsageDetail_20' ) end [2025-02-15 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:58:23] Production.INFO: ==23297== Releasing lock... [2025-02-15 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:58:23] Production.INFO: 33 MB #Memory Used# [2025-02-15 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 22:59:06 [end_date_ymd] => 2025-02-15 01:59:06 [RateCDR] => 1 ) [2025-02-15 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-14 22:59:06' and `end` < '2025-02-15 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-15 01:59:20] Production.INFO: count ==556 [2025-02-15 01:59:20] Production.ERROR: pbx CDR StartTime 2025-02-14 22:59:06 - End Time 2025-02-15 01:59:06 [2025-02-15 01:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477869', 'tblTempUsageDetail_20' ) start [2025-02-15 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477869', 'tblTempUsageDetail_20' ) end [2025-02-15 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477869', 'tblTempVendorCDR_20' ) start [2025-02-15 01:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477869', 'tblTempVendorCDR_20' ) end [2025-02-15 01:59:20] Production.INFO: ProcessCDR(1,14477869,1,1,2) [2025-02-15 01:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477869', 'tblTempUsageDetail_20' ) start [2025-02-15 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477869', 'tblTempUsageDetail_20' ) end [2025-02-15 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 01:59:23] Production.INFO: ==23372== Releasing lock... [2025-02-15 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 01:59:23] Production.INFO: 33 MB #Memory Used# [2025-02-15 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:00:07 [end_date_ymd] => 2025-02-15 02:00:07 [RateCDR] => 1 ) [2025-02-15 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-14 23:00:07' and `end` < '2025-02-15 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-15 02:00:20] Production.INFO: count ==564 [2025-02-15 02:00:20] Production.ERROR: pbx CDR StartTime 2025-02-14 23:00:07 - End Time 2025-02-15 02:00:07 [2025-02-15 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477875', 'tblTempUsageDetail_20' ) start [2025-02-15 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477875', 'tblTempUsageDetail_20' ) end [2025-02-15 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477875', 'tblTempVendorCDR_20' ) start [2025-02-15 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477875', 'tblTempVendorCDR_20' ) end [2025-02-15 02:00:20] Production.INFO: ProcessCDR(1,14477875,1,1,2) [2025-02-15 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477875', 'tblTempUsageDetail_20' ) start [2025-02-15 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477875', 'tblTempUsageDetail_20' ) end [2025-02-15 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:00:25] Production.INFO: ==23452== Releasing lock... [2025-02-15 02:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:00:25] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:01:06 [end_date_ymd] => 2025-02-15 02:01:06 [RateCDR] => 1 ) [2025-02-15 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:01:06' and `end` < '2025-02-15 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:01:19] Production.INFO: count ==568 [2025-02-15 02:01:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:01:06 - End Time 2025-02-15 02:01:06 [2025-02-15 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477880', 'tblTempUsageDetail_20' ) start [2025-02-15 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477880', 'tblTempUsageDetail_20' ) end [2025-02-15 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477880', 'tblTempVendorCDR_20' ) start [2025-02-15 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477880', 'tblTempVendorCDR_20' ) end [2025-02-15 02:01:19] Production.INFO: ProcessCDR(1,14477880,1,1,2) [2025-02-15 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477880', 'tblTempUsageDetail_20' ) start [2025-02-15 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477880', 'tblTempUsageDetail_20' ) end [2025-02-15 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:01:23] Production.INFO: ==23633== Releasing lock... [2025-02-15 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:01:23] Production.INFO: 33 MB #Memory Used# [2025-02-15 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:02:05 [end_date_ymd] => 2025-02-15 02:02:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:02:05' and `end` < '2025-02-15 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-15 02:02:18] Production.INFO: count ==566 [2025-02-15 02:02:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:02:05 - End Time 2025-02-15 02:02:05 [2025-02-15 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477885', 'tblTempUsageDetail_20' ) start [2025-02-15 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477885', 'tblTempUsageDetail_20' ) end [2025-02-15 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477885', 'tblTempVendorCDR_20' ) start [2025-02-15 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477885', 'tblTempVendorCDR_20' ) end [2025-02-15 02:02:18] Production.INFO: ProcessCDR(1,14477885,1,1,2) [2025-02-15 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477885', 'tblTempUsageDetail_20' ) start [2025-02-15 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477885', 'tblTempUsageDetail_20' ) end [2025-02-15 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:02:22] Production.INFO: ==23705== Releasing lock... [2025-02-15 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:03:06 [end_date_ymd] => 2025-02-15 02:03:06 [RateCDR] => 1 ) [2025-02-15 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-14 23:03:06' and `end` < '2025-02-15 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-15 02:03:19] Production.INFO: count ==563 [2025-02-15 02:03:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:03:06 - End Time 2025-02-15 02:03:06 [2025-02-15 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477890', 'tblTempUsageDetail_20' ) start [2025-02-15 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477890', 'tblTempUsageDetail_20' ) end [2025-02-15 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477890', 'tblTempVendorCDR_20' ) start [2025-02-15 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477890', 'tblTempVendorCDR_20' ) end [2025-02-15 02:03:19] Production.INFO: ProcessCDR(1,14477890,1,1,2) [2025-02-15 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477890', 'tblTempUsageDetail_20' ) start [2025-02-15 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477890', 'tblTempUsageDetail_20' ) end [2025-02-15 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:03:22] Production.INFO: ==23780== Releasing lock... [2025-02-15 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:04:05 [end_date_ymd] => 2025-02-15 02:04:05 [RateCDR] => 1 ) [2025-02-15 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:04:05' and `end` < '2025-02-15 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-15 02:04:19] Production.INFO: count ==563 [2025-02-15 02:04:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:04:05 - End Time 2025-02-15 02:04:05 [2025-02-15 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477895', 'tblTempUsageDetail_20' ) start [2025-02-15 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477895', 'tblTempUsageDetail_20' ) end [2025-02-15 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477895', 'tblTempVendorCDR_20' ) start [2025-02-15 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477895', 'tblTempVendorCDR_20' ) end [2025-02-15 02:04:19] Production.INFO: ProcessCDR(1,14477895,1,1,2) [2025-02-15 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477895', 'tblTempUsageDetail_20' ) start [2025-02-15 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477895', 'tblTempUsageDetail_20' ) end [2025-02-15 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:04:22] Production.INFO: ==23893== Releasing lock... [2025-02-15 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:04:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:05:06 [end_date_ymd] => 2025-02-15 02:05:06 [RateCDR] => 1 ) [2025-02-15 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:05:06' and `end` < '2025-02-15 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:05:19] Production.INFO: count ==561 [2025-02-15 02:05:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:05:06 - End Time 2025-02-15 02:05:06 [2025-02-15 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477900', 'tblTempUsageDetail_20' ) start [2025-02-15 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477900', 'tblTempUsageDetail_20' ) end [2025-02-15 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477900', 'tblTempVendorCDR_20' ) start [2025-02-15 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477900', 'tblTempVendorCDR_20' ) end [2025-02-15 02:05:19] Production.INFO: ProcessCDR(1,14477900,1,1,2) [2025-02-15 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477900', 'tblTempUsageDetail_20' ) start [2025-02-15 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477900', 'tblTempUsageDetail_20' ) end [2025-02-15 02:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:05:23] Production.INFO: ==23965== Releasing lock... [2025-02-15 02:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:05:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:06:06 [end_date_ymd] => 2025-02-15 02:06:06 [RateCDR] => 1 ) [2025-02-15 02: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-14 23:06:06' and `end` < '2025-02-15 02: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-15 02:06:19] Production.INFO: count ==560 [2025-02-15 02:06:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:06:06 - End Time 2025-02-15 02:06:06 [2025-02-15 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477905', 'tblTempUsageDetail_20' ) start [2025-02-15 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477905', 'tblTempUsageDetail_20' ) end [2025-02-15 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477905', 'tblTempVendorCDR_20' ) start [2025-02-15 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477905', 'tblTempVendorCDR_20' ) end [2025-02-15 02:06:19] Production.INFO: ProcessCDR(1,14477905,1,1,2) [2025-02-15 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477905', 'tblTempUsageDetail_20' ) start [2025-02-15 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477905', 'tblTempUsageDetail_20' ) end [2025-02-15 02:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:06:23] Production.INFO: ==24044== Releasing lock... [2025-02-15 02:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:06:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:07:05 [end_date_ymd] => 2025-02-15 02:07:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:07:05' and `end` < '2025-02-15 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-15 02:07:18] Production.INFO: count ==563 [2025-02-15 02:07:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:07:05 - End Time 2025-02-15 02:07:05 [2025-02-15 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477910', 'tblTempUsageDetail_20' ) start [2025-02-15 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477910', 'tblTempUsageDetail_20' ) end [2025-02-15 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477910', 'tblTempVendorCDR_20' ) start [2025-02-15 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477910', 'tblTempVendorCDR_20' ) end [2025-02-15 02:07:19] Production.INFO: ProcessCDR(1,14477910,1,1,2) [2025-02-15 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477910', 'tblTempUsageDetail_20' ) start [2025-02-15 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477910', 'tblTempUsageDetail_20' ) end [2025-02-15 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:07:22] Production.INFO: ==24126== Releasing lock... [2025-02-15 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:07:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:08:05 [end_date_ymd] => 2025-02-15 02:08:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:08:05' and `end` < '2025-02-15 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-15 02:08:21] Production.INFO: count ==563 [2025-02-15 02:08:21] Production.ERROR: pbx CDR StartTime 2025-02-14 23:08:05 - End Time 2025-02-15 02:08:05 [2025-02-15 02:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477915', 'tblTempUsageDetail_20' ) start [2025-02-15 02:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477915', 'tblTempUsageDetail_20' ) end [2025-02-15 02:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477915', 'tblTempVendorCDR_20' ) start [2025-02-15 02:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477915', 'tblTempVendorCDR_20' ) end [2025-02-15 02:08:21] Production.INFO: ProcessCDR(1,14477915,1,1,2) [2025-02-15 02:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477915', 'tblTempUsageDetail_20' ) start [2025-02-15 02:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477915', 'tblTempUsageDetail_20' ) end [2025-02-15 02:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:08:25] Production.INFO: ==24209== Releasing lock... [2025-02-15 02:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:08:25] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:09:06 [end_date_ymd] => 2025-02-15 02:09:06 [RateCDR] => 1 ) [2025-02-15 02: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-14 23:09:06' and `end` < '2025-02-15 02: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-15 02:09:20] Production.INFO: count ==563 [2025-02-15 02:09:20] Production.ERROR: pbx CDR StartTime 2025-02-14 23:09:06 - End Time 2025-02-15 02:09:06 [2025-02-15 02:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477920', 'tblTempUsageDetail_20' ) start [2025-02-15 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477920', 'tblTempUsageDetail_20' ) end [2025-02-15 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477920', 'tblTempVendorCDR_20' ) start [2025-02-15 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477920', 'tblTempVendorCDR_20' ) end [2025-02-15 02:09:20] Production.INFO: ProcessCDR(1,14477920,1,1,2) [2025-02-15 02:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477920', 'tblTempUsageDetail_20' ) start [2025-02-15 02:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477920', 'tblTempUsageDetail_20' ) end [2025-02-15 02:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:09:24] Production.INFO: ==24289== Releasing lock... [2025-02-15 02:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:09:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:10:06 [end_date_ymd] => 2025-02-15 02:10:06 [RateCDR] => 1 ) [2025-02-15 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-14 23:10:06' and `end` < '2025-02-15 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-15 02:10:19] Production.INFO: count ==571 [2025-02-15 02:10:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:10:06 - End Time 2025-02-15 02:10:06 [2025-02-15 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477926', 'tblTempUsageDetail_20' ) start [2025-02-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477926', 'tblTempUsageDetail_20' ) end [2025-02-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477926', 'tblTempVendorCDR_20' ) start [2025-02-15 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477926', 'tblTempVendorCDR_20' ) end [2025-02-15 02:10:19] Production.INFO: ProcessCDR(1,14477926,1,1,2) [2025-02-15 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477926', 'tblTempUsageDetail_20' ) start [2025-02-15 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477926', 'tblTempUsageDetail_20' ) end [2025-02-15 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:10:23] Production.INFO: ==24370== Releasing lock... [2025-02-15 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:10:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:11:06 [end_date_ymd] => 2025-02-15 02:11:06 [RateCDR] => 1 ) [2025-02-15 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-14 23:11:06' and `end` < '2025-02-15 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-15 02:11:19] Production.INFO: count ==586 [2025-02-15 02:11:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:11:06 - End Time 2025-02-15 02:11:06 [2025-02-15 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477931', 'tblTempUsageDetail_20' ) start [2025-02-15 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477931', 'tblTempUsageDetail_20' ) end [2025-02-15 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477931', 'tblTempVendorCDR_20' ) start [2025-02-15 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477931', 'tblTempVendorCDR_20' ) end [2025-02-15 02:11:19] Production.INFO: ProcessCDR(1,14477931,1,1,2) [2025-02-15 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477931', 'tblTempUsageDetail_20' ) start [2025-02-15 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477931', 'tblTempUsageDetail_20' ) end [2025-02-15 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:11:22] Production.INFO: ==24458== Releasing lock... [2025-02-15 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:11:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:12:05 [end_date_ymd] => 2025-02-15 02:12:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:12:05' and `end` < '2025-02-15 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-15 02:12:21] Production.INFO: count ==582 [2025-02-15 02:12:21] Production.ERROR: pbx CDR StartTime 2025-02-14 23:12:05 - End Time 2025-02-15 02:12:05 [2025-02-15 02:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477936', 'tblTempUsageDetail_20' ) start [2025-02-15 02:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477936', 'tblTempUsageDetail_20' ) end [2025-02-15 02:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477936', 'tblTempVendorCDR_20' ) start [2025-02-15 02:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477936', 'tblTempVendorCDR_20' ) end [2025-02-15 02:12:21] Production.INFO: ProcessCDR(1,14477936,1,1,2) [2025-02-15 02:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477936', 'tblTempUsageDetail_20' ) start [2025-02-15 02:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477936', 'tblTempUsageDetail_20' ) end [2025-02-15 02:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:12:25] Production.INFO: ==24542== Releasing lock... [2025-02-15 02:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:12:25] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:13:06 [end_date_ymd] => 2025-02-15 02:13:06 [RateCDR] => 1 ) [2025-02-15 02: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-14 23:13:06' and `end` < '2025-02-15 02: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-15 02:13:19] Production.INFO: count ==579 [2025-02-15 02:13:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:13:06 - End Time 2025-02-15 02:13:06 [2025-02-15 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477941', 'tblTempUsageDetail_20' ) start [2025-02-15 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477941', 'tblTempUsageDetail_20' ) end [2025-02-15 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477941', 'tblTempVendorCDR_20' ) start [2025-02-15 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477941', 'tblTempVendorCDR_20' ) end [2025-02-15 02:13:19] Production.INFO: ProcessCDR(1,14477941,1,1,2) [2025-02-15 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477941', 'tblTempUsageDetail_20' ) start [2025-02-15 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477941', 'tblTempUsageDetail_20' ) end [2025-02-15 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:13:22] Production.INFO: ==24631== Releasing lock... [2025-02-15 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:13:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:14:05 [end_date_ymd] => 2025-02-15 02:14:05 [RateCDR] => 1 ) [2025-02-15 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:14:05' and `end` < '2025-02-15 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:14:18] Production.INFO: count ==579 [2025-02-15 02:14:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:14:05 - End Time 2025-02-15 02:14:05 [2025-02-15 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477946', 'tblTempUsageDetail_20' ) start [2025-02-15 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477946', 'tblTempUsageDetail_20' ) end [2025-02-15 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477946', 'tblTempVendorCDR_20' ) start [2025-02-15 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477946', 'tblTempVendorCDR_20' ) end [2025-02-15 02:14:18] Production.INFO: ProcessCDR(1,14477946,1,1,2) [2025-02-15 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477946', 'tblTempUsageDetail_20' ) start [2025-02-15 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477946', 'tblTempUsageDetail_20' ) end [2025-02-15 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:14:22] Production.INFO: ==24716== Releasing lock... [2025-02-15 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:14:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:15:06 [end_date_ymd] => 2025-02-15 02:15:06 [RateCDR] => 1 ) [2025-02-15 02: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-14 23:15:06' and `end` < '2025-02-15 02: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-15 02:15:19] Production.INFO: count ==575 [2025-02-15 02:15:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:15:06 - End Time 2025-02-15 02:15:06 [2025-02-15 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477951', 'tblTempUsageDetail_20' ) start [2025-02-15 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477951', 'tblTempUsageDetail_20' ) end [2025-02-15 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477951', 'tblTempVendorCDR_20' ) start [2025-02-15 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477951', 'tblTempVendorCDR_20' ) end [2025-02-15 02:15:19] Production.INFO: ProcessCDR(1,14477951,1,1,2) [2025-02-15 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477951', 'tblTempUsageDetail_20' ) start [2025-02-15 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477951', 'tblTempUsageDetail_20' ) end [2025-02-15 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:15:22] Production.INFO: ==24804== Releasing lock... [2025-02-15 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:15:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:16:05 [end_date_ymd] => 2025-02-15 02:16:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:16:05' and `end` < '2025-02-15 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-15 02:16:18] Production.INFO: count ==575 [2025-02-15 02:16:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:16:05 - End Time 2025-02-15 02:16:05 [2025-02-15 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477956', 'tblTempUsageDetail_20' ) start [2025-02-15 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477956', 'tblTempUsageDetail_20' ) end [2025-02-15 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477956', 'tblTempVendorCDR_20' ) start [2025-02-15 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477956', 'tblTempVendorCDR_20' ) end [2025-02-15 02:16:18] Production.INFO: ProcessCDR(1,14477956,1,1,2) [2025-02-15 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477956', 'tblTempUsageDetail_20' ) start [2025-02-15 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477956', 'tblTempUsageDetail_20' ) end [2025-02-15 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:16:22] Production.INFO: ==24892== Releasing lock... [2025-02-15 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:17:05 [end_date_ymd] => 2025-02-15 02:17:05 [RateCDR] => 1 ) [2025-02-15 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:17:05' and `end` < '2025-02-15 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:17:21] Production.INFO: count ==575 [2025-02-15 02:17:21] Production.ERROR: pbx CDR StartTime 2025-02-14 23:17:05 - End Time 2025-02-15 02:17:05 [2025-02-15 02:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477961', 'tblTempUsageDetail_20' ) start [2025-02-15 02:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477961', 'tblTempUsageDetail_20' ) end [2025-02-15 02:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477961', 'tblTempVendorCDR_20' ) start [2025-02-15 02:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477961', 'tblTempVendorCDR_20' ) end [2025-02-15 02:17:21] Production.INFO: ProcessCDR(1,14477961,1,1,2) [2025-02-15 02:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477961', 'tblTempUsageDetail_20' ) start [2025-02-15 02:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477961', 'tblTempUsageDetail_20' ) end [2025-02-15 02:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:17:24] Production.INFO: ==24977== Releasing lock... [2025-02-15 02:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:17:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:18:04 [end_date_ymd] => 2025-02-15 02:18:04 [RateCDR] => 1 ) [2025-02-15 02: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-14 23:18:04' and `end` < '2025-02-15 02: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-15 02:18:19] Production.INFO: count ==571 [2025-02-15 02:18:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:18:04 - End Time 2025-02-15 02:18:04 [2025-02-15 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477966', 'tblTempUsageDetail_20' ) start [2025-02-15 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477966', 'tblTempUsageDetail_20' ) end [2025-02-15 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477966', 'tblTempVendorCDR_20' ) start [2025-02-15 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477966', 'tblTempVendorCDR_20' ) end [2025-02-15 02:18:19] Production.INFO: ProcessCDR(1,14477966,1,1,2) [2025-02-15 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477966', 'tblTempUsageDetail_20' ) start [2025-02-15 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477966', 'tblTempUsageDetail_20' ) end [2025-02-15 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:18:22] Production.INFO: ==25063== Releasing lock... [2025-02-15 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:18:22] Production.INFO: 33 MB #Memory Used# [2025-02-15 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:19:05 [end_date_ymd] => 2025-02-15 02:19:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:19:05' and `end` < '2025-02-15 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:19:19] Production.INFO: count ==570 [2025-02-15 02:19:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:19:05 - End Time 2025-02-15 02:19:05 [2025-02-15 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477971', 'tblTempUsageDetail_20' ) start [2025-02-15 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477971', 'tblTempUsageDetail_20' ) end [2025-02-15 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477971', 'tblTempVendorCDR_20' ) start [2025-02-15 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477971', 'tblTempVendorCDR_20' ) end [2025-02-15 02:19:19] Production.INFO: ProcessCDR(1,14477971,1,1,2) [2025-02-15 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477971', 'tblTempUsageDetail_20' ) start [2025-02-15 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477971', 'tblTempUsageDetail_20' ) end [2025-02-15 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:19:22] Production.INFO: ==25192== Releasing lock... [2025-02-15 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:19:22] Production.INFO: 33 MB #Memory Used# [2025-02-15 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:20:05 [end_date_ymd] => 2025-02-15 02:20:05 [RateCDR] => 1 ) [2025-02-15 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:20:05' and `end` < '2025-02-15 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:20:18] Production.INFO: count ==575 [2025-02-15 02:20:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:20:05 - End Time 2025-02-15 02:20:05 [2025-02-15 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477977', 'tblTempUsageDetail_20' ) start [2025-02-15 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477977', 'tblTempUsageDetail_20' ) end [2025-02-15 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477977', 'tblTempVendorCDR_20' ) start [2025-02-15 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477977', 'tblTempVendorCDR_20' ) end [2025-02-15 02:20:19] Production.INFO: ProcessCDR(1,14477977,1,1,2) [2025-02-15 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477977', 'tblTempUsageDetail_20' ) start [2025-02-15 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477977', 'tblTempUsageDetail_20' ) end [2025-02-15 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:20:22] Production.INFO: ==25273== Releasing lock... [2025-02-15 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:20:22] Production.INFO: 33 MB #Memory Used# [2025-02-15 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:21:06 [end_date_ymd] => 2025-02-15 02:21:06 [RateCDR] => 1 ) [2025-02-15 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-14 23:21:06' and `end` < '2025-02-15 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-15 02:21:20] Production.INFO: count ==578 [2025-02-15 02:21:20] Production.ERROR: pbx CDR StartTime 2025-02-14 23:21:06 - End Time 2025-02-15 02:21:06 [2025-02-15 02:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477982', 'tblTempUsageDetail_20' ) start [2025-02-15 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477982', 'tblTempUsageDetail_20' ) end [2025-02-15 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477982', 'tblTempVendorCDR_20' ) start [2025-02-15 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477982', 'tblTempVendorCDR_20' ) end [2025-02-15 02:21:20] Production.INFO: ProcessCDR(1,14477982,1,1,2) [2025-02-15 02:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477982', 'tblTempUsageDetail_20' ) start [2025-02-15 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477982', 'tblTempUsageDetail_20' ) end [2025-02-15 02:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:21:23] Production.INFO: ==25363== Releasing lock... [2025-02-15 02:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:21:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:22:05 [end_date_ymd] => 2025-02-15 02:22:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:22:05' and `end` < '2025-02-15 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-15 02:22:18] Production.INFO: count ==576 [2025-02-15 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:22:05 - End Time 2025-02-15 02:22:05 [2025-02-15 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477987', 'tblTempUsageDetail_20' ) start [2025-02-15 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477987', 'tblTempUsageDetail_20' ) end [2025-02-15 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477987', 'tblTempVendorCDR_20' ) start [2025-02-15 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477987', 'tblTempVendorCDR_20' ) end [2025-02-15 02:22:18] Production.INFO: ProcessCDR(1,14477987,1,1,2) [2025-02-15 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477987', 'tblTempUsageDetail_20' ) start [2025-02-15 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477987', 'tblTempUsageDetail_20' ) end [2025-02-15 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:22:21] Production.INFO: ==25443== Releasing lock... [2025-02-15 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:22:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:23:05 [end_date_ymd] => 2025-02-15 02:23:05 [RateCDR] => 1 ) [2025-02-15 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:23:05' and `end` < '2025-02-15 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:23:19] Production.INFO: count ==576 [2025-02-15 02:23:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:23:05 - End Time 2025-02-15 02:23:05 [2025-02-15 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477992', 'tblTempUsageDetail_20' ) start [2025-02-15 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477992', 'tblTempUsageDetail_20' ) end [2025-02-15 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477992', 'tblTempVendorCDR_20' ) start [2025-02-15 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477992', 'tblTempVendorCDR_20' ) end [2025-02-15 02:23:19] Production.INFO: ProcessCDR(1,14477992,1,1,2) [2025-02-15 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477992', 'tblTempUsageDetail_20' ) start [2025-02-15 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477992', 'tblTempUsageDetail_20' ) end [2025-02-15 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:23:22] Production.INFO: ==25530== Releasing lock... [2025-02-15 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:23:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:24:05 [end_date_ymd] => 2025-02-15 02:24:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:24:05' and `end` < '2025-02-15 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-15 02:24:18] Production.INFO: count ==576 [2025-02-15 02:24:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:24:05 - End Time 2025-02-15 02:24:05 [2025-02-15 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477997', 'tblTempUsageDetail_20' ) start [2025-02-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14477997', 'tblTempUsageDetail_20' ) end [2025-02-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477997', 'tblTempVendorCDR_20' ) start [2025-02-15 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14477997', 'tblTempVendorCDR_20' ) end [2025-02-15 02:24:18] Production.INFO: ProcessCDR(1,14477997,1,1,2) [2025-02-15 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14477997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14477997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14477997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14477997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477997', 'tblTempUsageDetail_20' ) start [2025-02-15 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14477997', 'tblTempUsageDetail_20' ) end [2025-02-15 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:24:21] Production.INFO: ==25617== Releasing lock... [2025-02-15 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:24:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:25:05 [end_date_ymd] => 2025-02-15 02:25:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:25:05' and `end` < '2025-02-15 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-15 02:25:18] Production.INFO: count ==576 [2025-02-15 02:25:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:25:05 - End Time 2025-02-15 02:25:05 [2025-02-15 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478002', 'tblTempUsageDetail_20' ) start [2025-02-15 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478002', 'tblTempUsageDetail_20' ) end [2025-02-15 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478002', 'tblTempVendorCDR_20' ) start [2025-02-15 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478002', 'tblTempVendorCDR_20' ) end [2025-02-15 02:25:19] Production.INFO: ProcessCDR(1,14478002,1,1,2) [2025-02-15 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478002', 'tblTempUsageDetail_20' ) start [2025-02-15 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478002', 'tblTempUsageDetail_20' ) end [2025-02-15 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:25:22] Production.INFO: ==25703== Releasing lock... [2025-02-15 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:25:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:26:05 [end_date_ymd] => 2025-02-15 02:26:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:26:05' and `end` < '2025-02-15 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-15 02:26:19] Production.INFO: count ==574 [2025-02-15 02:26:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:26:05 - End Time 2025-02-15 02:26:05 [2025-02-15 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478007', 'tblTempUsageDetail_20' ) start [2025-02-15 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478007', 'tblTempUsageDetail_20' ) end [2025-02-15 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478007', 'tblTempVendorCDR_20' ) start [2025-02-15 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478007', 'tblTempVendorCDR_20' ) end [2025-02-15 02:26:19] Production.INFO: ProcessCDR(1,14478007,1,1,2) [2025-02-15 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478007', 'tblTempUsageDetail_20' ) start [2025-02-15 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478007', 'tblTempUsageDetail_20' ) end [2025-02-15 02:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:26:23] Production.INFO: ==25795== Releasing lock... [2025-02-15 02:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:26:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:27:05 [end_date_ymd] => 2025-02-15 02:27:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:27:05' and `end` < '2025-02-15 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-15 02:27:18] Production.INFO: count ==574 [2025-02-15 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:27:05 - End Time 2025-02-15 02:27:05 [2025-02-15 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478012', 'tblTempUsageDetail_20' ) start [2025-02-15 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478012', 'tblTempUsageDetail_20' ) end [2025-02-15 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478012', 'tblTempVendorCDR_20' ) start [2025-02-15 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478012', 'tblTempVendorCDR_20' ) end [2025-02-15 02:27:18] Production.INFO: ProcessCDR(1,14478012,1,1,2) [2025-02-15 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478012', 'tblTempUsageDetail_20' ) start [2025-02-15 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478012', 'tblTempUsageDetail_20' ) end [2025-02-15 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:27:21] Production.INFO: ==25874== Releasing lock... [2025-02-15 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:28:05 [end_date_ymd] => 2025-02-15 02:28:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:28:05' and `end` < '2025-02-15 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-15 02:28:19] Production.INFO: count ==574 [2025-02-15 02:28:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:28:05 - End Time 2025-02-15 02:28:05 [2025-02-15 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478017', 'tblTempUsageDetail_20' ) start [2025-02-15 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478017', 'tblTempUsageDetail_20' ) end [2025-02-15 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478017', 'tblTempVendorCDR_20' ) start [2025-02-15 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478017', 'tblTempVendorCDR_20' ) end [2025-02-15 02:28:19] Production.INFO: ProcessCDR(1,14478017,1,1,2) [2025-02-15 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478017', 'tblTempUsageDetail_20' ) start [2025-02-15 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478017', 'tblTempUsageDetail_20' ) end [2025-02-15 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:28:22] Production.INFO: ==25951== Releasing lock... [2025-02-15 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:28:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:29:05 [end_date_ymd] => 2025-02-15 02:29:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:29:05' and `end` < '2025-02-15 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-15 02:29:19] Production.INFO: count ==573 [2025-02-15 02:29:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:29:05 - End Time 2025-02-15 02:29:05 [2025-02-15 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478022', 'tblTempUsageDetail_20' ) start [2025-02-15 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478022', 'tblTempUsageDetail_20' ) end [2025-02-15 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478022', 'tblTempVendorCDR_20' ) start [2025-02-15 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478022', 'tblTempVendorCDR_20' ) end [2025-02-15 02:29:19] Production.INFO: ProcessCDR(1,14478022,1,1,2) [2025-02-15 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478022', 'tblTempUsageDetail_20' ) start [2025-02-15 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478022', 'tblTempUsageDetail_20' ) end [2025-02-15 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:29:22] Production.INFO: ==26027== Releasing lock... [2025-02-15 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:29:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 02:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:30:07 [end_date_ymd] => 2025-02-15 02:30:07 [RateCDR] => 1 ) [2025-02-15 02: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-14 23:30:07' and `end` < '2025-02-15 02: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-15 02:30:20] Production.INFO: count ==583 [2025-02-15 02:30:20] Production.ERROR: pbx CDR StartTime 2025-02-14 23:30:07 - End Time 2025-02-15 02:30:07 [2025-02-15 02:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478028', 'tblTempUsageDetail_20' ) start [2025-02-15 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478028', 'tblTempUsageDetail_20' ) end [2025-02-15 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478028', 'tblTempVendorCDR_20' ) start [2025-02-15 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478028', 'tblTempVendorCDR_20' ) end [2025-02-15 02:30:20] Production.INFO: ProcessCDR(1,14478028,1,1,2) [2025-02-15 02:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478028', 'tblTempUsageDetail_20' ) start [2025-02-15 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478028', 'tblTempUsageDetail_20' ) end [2025-02-15 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:30:23] Production.INFO: ==26108== Releasing lock... [2025-02-15 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:30:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:31:05 [end_date_ymd] => 2025-02-15 02:31:05 [RateCDR] => 1 ) [2025-02-15 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:31:05' and `end` < '2025-02-15 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:31:18] Production.INFO: count ==586 [2025-02-15 02:31:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:31:05 - End Time 2025-02-15 02:31:05 [2025-02-15 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478033', 'tblTempUsageDetail_20' ) start [2025-02-15 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478033', 'tblTempUsageDetail_20' ) end [2025-02-15 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478033', 'tblTempVendorCDR_20' ) start [2025-02-15 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478033', 'tblTempVendorCDR_20' ) end [2025-02-15 02:31:19] Production.INFO: ProcessCDR(1,14478033,1,1,2) [2025-02-15 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478033', 'tblTempUsageDetail_20' ) start [2025-02-15 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478033', 'tblTempUsageDetail_20' ) end [2025-02-15 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:31:22] Production.INFO: ==26184== Releasing lock... [2025-02-15 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:31:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:32:06 [end_date_ymd] => 2025-02-15 02:32:06 [RateCDR] => 1 ) [2025-02-15 02:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:32:06' and `end` < '2025-02-15 02: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-15 02:32:20] Production.INFO: count ==585 [2025-02-15 02:32:20] Production.ERROR: pbx CDR StartTime 2025-02-14 23:32:06 - End Time 2025-02-15 02:32:06 [2025-02-15 02:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478038', 'tblTempUsageDetail_20' ) start [2025-02-15 02:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478038', 'tblTempUsageDetail_20' ) end [2025-02-15 02:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478038', 'tblTempVendorCDR_20' ) start [2025-02-15 02:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478038', 'tblTempVendorCDR_20' ) end [2025-02-15 02:32:20] Production.INFO: ProcessCDR(1,14478038,1,1,2) [2025-02-15 02:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478038', 'tblTempUsageDetail_20' ) start [2025-02-15 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478038', 'tblTempUsageDetail_20' ) end [2025-02-15 02:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:32:23] Production.INFO: ==26260== Releasing lock... [2025-02-15 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:32:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:33:05 [end_date_ymd] => 2025-02-15 02:33:05 [RateCDR] => 1 ) [2025-02-15 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:33:05' and `end` < '2025-02-15 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:33:18] Production.INFO: count ==578 [2025-02-15 02:33:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:33:05 - End Time 2025-02-15 02:33:05 [2025-02-15 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478043', 'tblTempUsageDetail_20' ) start [2025-02-15 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478043', 'tblTempUsageDetail_20' ) end [2025-02-15 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478043', 'tblTempVendorCDR_20' ) start [2025-02-15 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478043', 'tblTempVendorCDR_20' ) end [2025-02-15 02:33:18] Production.INFO: ProcessCDR(1,14478043,1,1,2) [2025-02-15 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478043', 'tblTempUsageDetail_20' ) start [2025-02-15 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478043', 'tblTempUsageDetail_20' ) end [2025-02-15 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:33:21] Production.INFO: ==26339== Releasing lock... [2025-02-15 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:33:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:34:05 [end_date_ymd] => 2025-02-15 02:34:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:34:05' and `end` < '2025-02-15 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-15 02:34:18] Production.INFO: count ==577 [2025-02-15 02:34:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:34:05 - End Time 2025-02-15 02:34:05 [2025-02-15 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478048', 'tblTempUsageDetail_20' ) start [2025-02-15 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478048', 'tblTempUsageDetail_20' ) end [2025-02-15 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478048', 'tblTempVendorCDR_20' ) start [2025-02-15 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478048', 'tblTempVendorCDR_20' ) end [2025-02-15 02:34:18] Production.INFO: ProcessCDR(1,14478048,1,1,2) [2025-02-15 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478048', 'tblTempUsageDetail_20' ) start [2025-02-15 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478048', 'tblTempUsageDetail_20' ) end [2025-02-15 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:34:22] Production.INFO: ==26415== Releasing lock... [2025-02-15 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:35:06 [end_date_ymd] => 2025-02-15 02:35:06 [RateCDR] => 1 ) [2025-02-15 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:35:06' and `end` < '2025-02-15 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:35:19] Production.INFO: count ==577 [2025-02-15 02:35:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:35:06 - End Time 2025-02-15 02:35:06 [2025-02-15 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478053', 'tblTempUsageDetail_20' ) start [2025-02-15 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478053', 'tblTempUsageDetail_20' ) end [2025-02-15 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478053', 'tblTempVendorCDR_20' ) start [2025-02-15 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478053', 'tblTempVendorCDR_20' ) end [2025-02-15 02:35:19] Production.INFO: ProcessCDR(1,14478053,1,1,2) [2025-02-15 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478053', 'tblTempUsageDetail_20' ) start [2025-02-15 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478053', 'tblTempUsageDetail_20' ) end [2025-02-15 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:35:22] Production.INFO: ==26528== Releasing lock... [2025-02-15 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:35:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:36:05 [end_date_ymd] => 2025-02-15 02:36:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:36:05' and `end` < '2025-02-15 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-15 02:36:19] Production.INFO: count ==576 [2025-02-15 02:36:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:36:05 - End Time 2025-02-15 02:36:05 [2025-02-15 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478058', 'tblTempUsageDetail_20' ) start [2025-02-15 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478058', 'tblTempUsageDetail_20' ) end [2025-02-15 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478058', 'tblTempVendorCDR_20' ) start [2025-02-15 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478058', 'tblTempVendorCDR_20' ) end [2025-02-15 02:36:19] Production.INFO: ProcessCDR(1,14478058,1,1,2) [2025-02-15 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478058', 'tblTempUsageDetail_20' ) start [2025-02-15 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478058', 'tblTempUsageDetail_20' ) end [2025-02-15 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:36:23] Production.INFO: ==26606== Releasing lock... [2025-02-15 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:36:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:37:05 [end_date_ymd] => 2025-02-15 02:37:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:37:05' and `end` < '2025-02-15 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-15 02:37:19] Production.INFO: count ==579 [2025-02-15 02:37:20] Production.ERROR: pbx CDR StartTime 2025-02-14 23:37:05 - End Time 2025-02-15 02:37:05 [2025-02-15 02:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478063', 'tblTempUsageDetail_20' ) start [2025-02-15 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478063', 'tblTempUsageDetail_20' ) end [2025-02-15 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478063', 'tblTempVendorCDR_20' ) start [2025-02-15 02:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478063', 'tblTempVendorCDR_20' ) end [2025-02-15 02:37:20] Production.INFO: ProcessCDR(1,14478063,1,1,2) [2025-02-15 02:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478063', 'tblTempUsageDetail_20' ) start [2025-02-15 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478063', 'tblTempUsageDetail_20' ) end [2025-02-15 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:37:23] Production.INFO: ==26678== Releasing lock... [2025-02-15 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:37:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-15 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:38:05 [end_date_ymd] => 2025-02-15 02:38:05 [RateCDR] => 1 ) [2025-02-15 02: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-14 23:38:05' and `end` < '2025-02-15 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-15 02:38:19] Production.INFO: count ==577 [2025-02-15 02:38:20] Production.ERROR: pbx CDR StartTime 2025-02-14 23:38:05 - End Time 2025-02-15 02:38:05 [2025-02-15 02:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478068', 'tblTempUsageDetail_20' ) start [2025-02-15 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478068', 'tblTempUsageDetail_20' ) end [2025-02-15 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478068', 'tblTempVendorCDR_20' ) start [2025-02-15 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478068', 'tblTempVendorCDR_20' ) end [2025-02-15 02:38:20] Production.INFO: ProcessCDR(1,14478068,1,1,2) [2025-02-15 02:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478068', 'tblTempUsageDetail_20' ) start [2025-02-15 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478068', 'tblTempUsageDetail_20' ) end [2025-02-15 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:38:23] Production.INFO: ==26753== Releasing lock... [2025-02-15 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:38:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:39:05 [end_date_ymd] => 2025-02-15 02:39:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:39:05' and `end` < '2025-02-15 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-15 02:39:18] Production.INFO: count ==576 [2025-02-15 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:39:05 - End Time 2025-02-15 02:39:05 [2025-02-15 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478073', 'tblTempUsageDetail_20' ) start [2025-02-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478073', 'tblTempUsageDetail_20' ) end [2025-02-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478073', 'tblTempVendorCDR_20' ) start [2025-02-15 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478073', 'tblTempVendorCDR_20' ) end [2025-02-15 02:39:18] Production.INFO: ProcessCDR(1,14478073,1,1,2) [2025-02-15 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478073', 'tblTempUsageDetail_20' ) start [2025-02-15 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478073', 'tblTempUsageDetail_20' ) end [2025-02-15 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:39:21] Production.INFO: ==26829== Releasing lock... [2025-02-15 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:40:06 [end_date_ymd] => 2025-02-15 02:40:06 [RateCDR] => 1 ) [2025-02-15 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:40:06' and `end` < '2025-02-15 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:40:20] Production.INFO: count ==491 [2025-02-15 02:40:21] Production.ERROR: pbx CDR StartTime 2025-02-14 23:40:06 - End Time 2025-02-15 02:40:06 [2025-02-15 02:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478079', 'tblTempUsageDetail_20' ) start [2025-02-15 02:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478079', 'tblTempUsageDetail_20' ) end [2025-02-15 02:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478079', 'tblTempVendorCDR_20' ) start [2025-02-15 02:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478079', 'tblTempVendorCDR_20' ) end [2025-02-15 02:40:21] Production.INFO: ProcessCDR(1,14478079,1,1,2) [2025-02-15 02:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478079', 'tblTempUsageDetail_20' ) start [2025-02-15 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478079', 'tblTempUsageDetail_20' ) end [2025-02-15 02:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:40:24] Production.INFO: ==26911== Releasing lock... [2025-02-15 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:40:24] Production.INFO: 31.5 MB #Memory Used# [2025-02-15 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:41:05 [end_date_ymd] => 2025-02-15 02:41:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:41:05' and `end` < '2025-02-15 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-15 02:41:18] Production.INFO: count ==427 [2025-02-15 02:41:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:41:05 - End Time 2025-02-15 02:41:05 [2025-02-15 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478084', 'tblTempUsageDetail_20' ) start [2025-02-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478084', 'tblTempUsageDetail_20' ) end [2025-02-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478084', 'tblTempVendorCDR_20' ) start [2025-02-15 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478084', 'tblTempVendorCDR_20' ) end [2025-02-15 02:41:18] Production.INFO: ProcessCDR(1,14478084,1,1,2) [2025-02-15 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478084', 'tblTempUsageDetail_20' ) start [2025-02-15 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478084', 'tblTempUsageDetail_20' ) end [2025-02-15 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:41:22] Production.INFO: ==26992== Releasing lock... [2025-02-15 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:41:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:42:06 [end_date_ymd] => 2025-02-15 02:42:06 [RateCDR] => 1 ) [2025-02-15 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-14 23:42:06' and `end` < '2025-02-15 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-15 02:42:19] Production.INFO: count ==427 [2025-02-15 02:42:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:42:06 - End Time 2025-02-15 02:42:06 [2025-02-15 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478089', 'tblTempUsageDetail_20' ) start [2025-02-15 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478089', 'tblTempUsageDetail_20' ) end [2025-02-15 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478089', 'tblTempVendorCDR_20' ) start [2025-02-15 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478089', 'tblTempVendorCDR_20' ) end [2025-02-15 02:42:19] Production.INFO: ProcessCDR(1,14478089,1,1,2) [2025-02-15 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478089', 'tblTempUsageDetail_20' ) start [2025-02-15 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478089', 'tblTempUsageDetail_20' ) end [2025-02-15 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:42:23] Production.INFO: ==27067== Releasing lock... [2025-02-15 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:42:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:43:05 [end_date_ymd] => 2025-02-15 02:43:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:43:05' and `end` < '2025-02-15 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-15 02:43:18] Production.INFO: count ==427 [2025-02-15 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:43:05 - End Time 2025-02-15 02:43:05 [2025-02-15 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478094', 'tblTempUsageDetail_20' ) start [2025-02-15 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478094', 'tblTempUsageDetail_20' ) end [2025-02-15 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478094', 'tblTempVendorCDR_20' ) start [2025-02-15 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478094', 'tblTempVendorCDR_20' ) end [2025-02-15 02:43:18] Production.INFO: ProcessCDR(1,14478094,1,1,2) [2025-02-15 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478094', 'tblTempUsageDetail_20' ) start [2025-02-15 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478094', 'tblTempUsageDetail_20' ) end [2025-02-15 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:43:22] Production.INFO: ==27142== Releasing lock... [2025-02-15 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:44:05 [end_date_ymd] => 2025-02-15 02:44:05 [RateCDR] => 1 ) [2025-02-15 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:44:05' and `end` < '2025-02-15 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:44:19] Production.INFO: count ==427 [2025-02-15 02:44:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:44:05 - End Time 2025-02-15 02:44:05 [2025-02-15 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478099', 'tblTempUsageDetail_20' ) start [2025-02-15 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478099', 'tblTempUsageDetail_20' ) end [2025-02-15 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478099', 'tblTempVendorCDR_20' ) start [2025-02-15 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478099', 'tblTempVendorCDR_20' ) end [2025-02-15 02:44:19] Production.INFO: ProcessCDR(1,14478099,1,1,2) [2025-02-15 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478099', 'tblTempUsageDetail_20' ) start [2025-02-15 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478099', 'tblTempUsageDetail_20' ) end [2025-02-15 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:44:22] Production.INFO: ==27219== Releasing lock... [2025-02-15 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:45:05 [end_date_ymd] => 2025-02-15 02:45:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:45:05' and `end` < '2025-02-15 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-15 02:45:18] Production.INFO: count ==427 [2025-02-15 02:45:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:45:05 - End Time 2025-02-15 02:45:05 [2025-02-15 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478104', 'tblTempUsageDetail_20' ) start [2025-02-15 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478104', 'tblTempUsageDetail_20' ) end [2025-02-15 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478104', 'tblTempVendorCDR_20' ) start [2025-02-15 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478104', 'tblTempVendorCDR_20' ) end [2025-02-15 02:45:18] Production.INFO: ProcessCDR(1,14478104,1,1,2) [2025-02-15 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478104', 'tblTempUsageDetail_20' ) start [2025-02-15 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478104', 'tblTempUsageDetail_20' ) end [2025-02-15 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:45:21] Production.INFO: ==27305== Releasing lock... [2025-02-15 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:46:05 [end_date_ymd] => 2025-02-15 02:46:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:46:05' and `end` < '2025-02-15 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-15 02:46:19] Production.INFO: count ==427 [2025-02-15 02:46:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:46:05 - End Time 2025-02-15 02:46:05 [2025-02-15 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478109', 'tblTempUsageDetail_20' ) start [2025-02-15 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478109', 'tblTempUsageDetail_20' ) end [2025-02-15 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478109', 'tblTempVendorCDR_20' ) start [2025-02-15 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478109', 'tblTempVendorCDR_20' ) end [2025-02-15 02:46:19] Production.INFO: ProcessCDR(1,14478109,1,1,2) [2025-02-15 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478109', 'tblTempUsageDetail_20' ) start [2025-02-15 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478109', 'tblTempUsageDetail_20' ) end [2025-02-15 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:46:22] Production.INFO: ==27381== Releasing lock... [2025-02-15 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:46:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:47:05 [end_date_ymd] => 2025-02-15 02:47:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:47:05' and `end` < '2025-02-15 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-15 02:47:18] Production.INFO: count ==426 [2025-02-15 02:47:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:47:05 - End Time 2025-02-15 02:47:05 [2025-02-15 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478114', 'tblTempUsageDetail_20' ) start [2025-02-15 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478114', 'tblTempUsageDetail_20' ) end [2025-02-15 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478114', 'tblTempVendorCDR_20' ) start [2025-02-15 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478114', 'tblTempVendorCDR_20' ) end [2025-02-15 02:47:18] Production.INFO: ProcessCDR(1,14478114,1,1,2) [2025-02-15 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478114', 'tblTempUsageDetail_20' ) start [2025-02-15 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478114', 'tblTempUsageDetail_20' ) end [2025-02-15 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:47:21] Production.INFO: ==27453== Releasing lock... [2025-02-15 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:48:05 [end_date_ymd] => 2025-02-15 02:48:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:48:05' and `end` < '2025-02-15 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-15 02:48:19] Production.INFO: count ==426 [2025-02-15 02:48:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:48:05 - End Time 2025-02-15 02:48:05 [2025-02-15 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478119', 'tblTempUsageDetail_20' ) start [2025-02-15 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478119', 'tblTempUsageDetail_20' ) end [2025-02-15 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478119', 'tblTempVendorCDR_20' ) start [2025-02-15 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478119', 'tblTempVendorCDR_20' ) end [2025-02-15 02:48:19] Production.INFO: ProcessCDR(1,14478119,1,1,2) [2025-02-15 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478119', 'tblTempUsageDetail_20' ) start [2025-02-15 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478119', 'tblTempUsageDetail_20' ) end [2025-02-15 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:48:22] Production.INFO: ==27534== Releasing lock... [2025-02-15 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:48:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:49:04 [end_date_ymd] => 2025-02-15 02:49:04 [RateCDR] => 1 ) [2025-02-15 02: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-14 23:49:04' and `end` < '2025-02-15 02: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-15 02:49:17] Production.INFO: count ==427 [2025-02-15 02:49:17] Production.ERROR: pbx CDR StartTime 2025-02-14 23:49:04 - End Time 2025-02-15 02:49:04 [2025-02-15 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478124', 'tblTempUsageDetail_20' ) start [2025-02-15 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478124', 'tblTempUsageDetail_20' ) end [2025-02-15 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478124', 'tblTempVendorCDR_20' ) start [2025-02-15 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478124', 'tblTempVendorCDR_20' ) end [2025-02-15 02:49:17] Production.INFO: ProcessCDR(1,14478124,1,1,2) [2025-02-15 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478124', 'tblTempUsageDetail_20' ) start [2025-02-15 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478124', 'tblTempUsageDetail_20' ) end [2025-02-15 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:49:22] Production.INFO: ==27617== Releasing lock... [2025-02-15 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:49:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:50:06 [end_date_ymd] => 2025-02-15 02:50:06 [RateCDR] => 1 ) [2025-02-15 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-14 23:50:06' and `end` < '2025-02-15 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-15 02:50:19] Production.INFO: count ==431 [2025-02-15 02:50:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:50:06 - End Time 2025-02-15 02:50:06 [2025-02-15 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478130', 'tblTempUsageDetail_20' ) start [2025-02-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478130', 'tblTempUsageDetail_20' ) end [2025-02-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478130', 'tblTempVendorCDR_20' ) start [2025-02-15 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478130', 'tblTempVendorCDR_20' ) end [2025-02-15 02:50:19] Production.INFO: ProcessCDR(1,14478130,1,1,2) [2025-02-15 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478130', 'tblTempUsageDetail_20' ) start [2025-02-15 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478130', 'tblTempUsageDetail_20' ) end [2025-02-15 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:50:23] Production.INFO: ==27739== Releasing lock... [2025-02-15 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:50:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:51:04 [end_date_ymd] => 2025-02-15 02:51:04 [RateCDR] => 1 ) [2025-02-15 02:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:51:04' and `end` < '2025-02-15 02:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:51:18] Production.INFO: count ==431 [2025-02-15 02:51:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:51:04 - End Time 2025-02-15 02:51:04 [2025-02-15 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478135', 'tblTempUsageDetail_20' ) start [2025-02-15 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478135', 'tblTempUsageDetail_20' ) end [2025-02-15 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478135', 'tblTempVendorCDR_20' ) start [2025-02-15 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478135', 'tblTempVendorCDR_20' ) end [2025-02-15 02:51:18] Production.INFO: ProcessCDR(1,14478135,1,1,2) [2025-02-15 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478135', 'tblTempUsageDetail_20' ) start [2025-02-15 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478135', 'tblTempUsageDetail_20' ) end [2025-02-15 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:51:21] Production.INFO: ==27827== Releasing lock... [2025-02-15 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:52:05 [end_date_ymd] => 2025-02-15 02:52:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:52:05' and `end` < '2025-02-15 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-15 02:52:18] Production.INFO: count ==430 [2025-02-15 02:52:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:52:05 - End Time 2025-02-15 02:52:05 [2025-02-15 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478140', 'tblTempUsageDetail_20' ) start [2025-02-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478140', 'tblTempUsageDetail_20' ) end [2025-02-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478140', 'tblTempVendorCDR_20' ) start [2025-02-15 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478140', 'tblTempVendorCDR_20' ) end [2025-02-15 02:52:18] Production.INFO: ProcessCDR(1,14478140,1,1,2) [2025-02-15 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478140', 'tblTempUsageDetail_20' ) start [2025-02-15 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478140', 'tblTempUsageDetail_20' ) end [2025-02-15 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:52:22] Production.INFO: ==27911== Releasing lock... [2025-02-15 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:53:06 [end_date_ymd] => 2025-02-15 02:53:06 [RateCDR] => 1 ) [2025-02-15 02: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-14 23:53:06' and `end` < '2025-02-15 02: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-15 02:53:19] Production.INFO: count ==431 [2025-02-15 02:53:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:53:06 - End Time 2025-02-15 02:53:06 [2025-02-15 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478145', 'tblTempUsageDetail_20' ) start [2025-02-15 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478145', 'tblTempUsageDetail_20' ) end [2025-02-15 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478145', 'tblTempVendorCDR_20' ) start [2025-02-15 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478145', 'tblTempVendorCDR_20' ) end [2025-02-15 02:53:19] Production.INFO: ProcessCDR(1,14478145,1,1,2) [2025-02-15 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478145', 'tblTempUsageDetail_20' ) start [2025-02-15 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478145', 'tblTempUsageDetail_20' ) end [2025-02-15 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:53:23] Production.INFO: ==27999== Releasing lock... [2025-02-15 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:53:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:54:05 [end_date_ymd] => 2025-02-15 02:54:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:54:05' and `end` < '2025-02-15 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-15 02:54:18] Production.INFO: count ==431 [2025-02-15 02:54:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:54:05 - End Time 2025-02-15 02:54:05 [2025-02-15 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478150', 'tblTempUsageDetail_20' ) start [2025-02-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478150', 'tblTempUsageDetail_20' ) end [2025-02-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478150', 'tblTempVendorCDR_20' ) start [2025-02-15 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478150', 'tblTempVendorCDR_20' ) end [2025-02-15 02:54:18] Production.INFO: ProcessCDR(1,14478150,1,1,2) [2025-02-15 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478150', 'tblTempUsageDetail_20' ) start [2025-02-15 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478150', 'tblTempUsageDetail_20' ) end [2025-02-15 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:54:21] Production.INFO: ==28088== Releasing lock... [2025-02-15 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:55:06 [end_date_ymd] => 2025-02-15 02:55:06 [RateCDR] => 1 ) [2025-02-15 02:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:55:06' and `end` < '2025-02-15 02:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:55:19] Production.INFO: count ==431 [2025-02-15 02:55:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:55:06 - End Time 2025-02-15 02:55:06 [2025-02-15 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478155', 'tblTempUsageDetail_20' ) start [2025-02-15 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478155', 'tblTempUsageDetail_20' ) end [2025-02-15 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478155', 'tblTempVendorCDR_20' ) start [2025-02-15 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478155', 'tblTempVendorCDR_20' ) end [2025-02-15 02:55:19] Production.INFO: ProcessCDR(1,14478155,1,1,2) [2025-02-15 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478155', 'tblTempUsageDetail_20' ) start [2025-02-15 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478155', 'tblTempUsageDetail_20' ) end [2025-02-15 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:55:22] Production.INFO: ==28172== Releasing lock... [2025-02-15 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:55:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:56:05 [end_date_ymd] => 2025-02-15 02:56:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:56:05' and `end` < '2025-02-15 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-15 02:56:19] Production.INFO: count ==431 [2025-02-15 02:56:19] Production.ERROR: pbx CDR StartTime 2025-02-14 23:56:05 - End Time 2025-02-15 02:56:05 [2025-02-15 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478160', 'tblTempUsageDetail_20' ) start [2025-02-15 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478160', 'tblTempUsageDetail_20' ) end [2025-02-15 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478160', 'tblTempVendorCDR_20' ) start [2025-02-15 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478160', 'tblTempVendorCDR_20' ) end [2025-02-15 02:56:19] Production.INFO: ProcessCDR(1,14478160,1,1,2) [2025-02-15 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478160', 'tblTempUsageDetail_20' ) start [2025-02-15 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478160', 'tblTempUsageDetail_20' ) end [2025-02-15 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:56:22] Production.INFO: ==28257== Releasing lock... [2025-02-15 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:56:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:57:05 [end_date_ymd] => 2025-02-15 02:57:05 [RateCDR] => 1 ) [2025-02-15 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-14 23:57:05' and `end` < '2025-02-15 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 02:57:20] Production.INFO: count ==431 [2025-02-15 02:57:20] Production.ERROR: pbx CDR StartTime 2025-02-14 23:57:05 - End Time 2025-02-15 02:57:05 [2025-02-15 02:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478165', 'tblTempUsageDetail_20' ) start [2025-02-15 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478165', 'tblTempUsageDetail_20' ) end [2025-02-15 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478165', 'tblTempVendorCDR_20' ) start [2025-02-15 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478165', 'tblTempVendorCDR_20' ) end [2025-02-15 02:57:20] Production.INFO: ProcessCDR(1,14478165,1,1,2) [2025-02-15 02:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478165', 'tblTempUsageDetail_20' ) start [2025-02-15 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478165', 'tblTempUsageDetail_20' ) end [2025-02-15 02:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:57:23] Production.INFO: ==28337== Releasing lock... [2025-02-15 02:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:57:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:58:05 [end_date_ymd] => 2025-02-15 02:58:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:58:05' and `end` < '2025-02-15 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-15 02:58:17] Production.INFO: count ==431 [2025-02-15 02:58:17] Production.ERROR: pbx CDR StartTime 2025-02-14 23:58:05 - End Time 2025-02-15 02:58:05 [2025-02-15 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478170', 'tblTempUsageDetail_20' ) start [2025-02-15 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478170', 'tblTempUsageDetail_20' ) end [2025-02-15 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478170', 'tblTempVendorCDR_20' ) start [2025-02-15 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478170', 'tblTempVendorCDR_20' ) end [2025-02-15 02:58:18] Production.INFO: ProcessCDR(1,14478170,1,1,2) [2025-02-15 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478170', 'tblTempUsageDetail_20' ) start [2025-02-15 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478170', 'tblTempUsageDetail_20' ) end [2025-02-15 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:58:21] Production.INFO: ==28425== Releasing lock... [2025-02-15 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-14 23:59:05 [end_date_ymd] => 2025-02-15 02:59:05 [RateCDR] => 1 ) [2025-02-15 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-14 23:59:05' and `end` < '2025-02-15 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-15 02:59:18] Production.INFO: count ==431 [2025-02-15 02:59:18] Production.ERROR: pbx CDR StartTime 2025-02-14 23:59:05 - End Time 2025-02-15 02:59:05 [2025-02-15 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478175', 'tblTempUsageDetail_20' ) start [2025-02-15 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478175', 'tblTempUsageDetail_20' ) end [2025-02-15 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478175', 'tblTempVendorCDR_20' ) start [2025-02-15 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478175', 'tblTempVendorCDR_20' ) end [2025-02-15 02:59:18] Production.INFO: ProcessCDR(1,14478175,1,1,2) [2025-02-15 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478175', 'tblTempUsageDetail_20' ) start [2025-02-15 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478175', 'tblTempUsageDetail_20' ) end [2025-02-15 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 02:59:22] Production.INFO: ==28511== Releasing lock... [2025-02-15 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 02:59:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:00:05 [end_date_ymd] => 2025-02-15 03:00:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:00:05' and `end` < '2025-02-15 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-15 03:00:18] Production.INFO: count ==435 [2025-02-15 03:00:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:00:05 - End Time 2025-02-15 03:00:05 [2025-02-15 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478180', 'tblTempUsageDetail_20' ) start [2025-02-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478180', 'tblTempUsageDetail_20' ) end [2025-02-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478180', 'tblTempVendorCDR_20' ) start [2025-02-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478180', 'tblTempVendorCDR_20' ) end [2025-02-15 03:00:18] Production.INFO: ProcessCDR(1,14478180,1,1,2) [2025-02-15 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478180', 'tblTempUsageDetail_20' ) start [2025-02-15 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478180', 'tblTempUsageDetail_20' ) end [2025-02-15 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:00:21] Production.INFO: ==28597== Releasing lock... [2025-02-15 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:00:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:01:06 [end_date_ymd] => 2025-02-15 03:01:06 [RateCDR] => 1 ) [2025-02-15 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:01:06' and `end` < '2025-02-15 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:01:19] Production.INFO: count ==431 [2025-02-15 03:01:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:01:06 - End Time 2025-02-15 03:01:06 [2025-02-15 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478186', 'tblTempUsageDetail_20' ) start [2025-02-15 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478186', 'tblTempUsageDetail_20' ) end [2025-02-15 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478186', 'tblTempVendorCDR_20' ) start [2025-02-15 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478186', 'tblTempVendorCDR_20' ) end [2025-02-15 03:01:19] Production.INFO: ProcessCDR(1,14478186,1,1,2) [2025-02-15 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478186', 'tblTempUsageDetail_20' ) start [2025-02-15 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478186', 'tblTempUsageDetail_20' ) end [2025-02-15 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:01:22] Production.INFO: ==28696== Releasing lock... [2025-02-15 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:01:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:02:05 [end_date_ymd] => 2025-02-15 03:02:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:02:05' and `end` < '2025-02-15 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-15 03:02:18] Production.INFO: count ==430 [2025-02-15 03:02:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:02:05 - End Time 2025-02-15 03:02:05 [2025-02-15 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478191', 'tblTempUsageDetail_20' ) start [2025-02-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478191', 'tblTempUsageDetail_20' ) end [2025-02-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478191', 'tblTempVendorCDR_20' ) start [2025-02-15 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478191', 'tblTempVendorCDR_20' ) end [2025-02-15 03:02:18] Production.INFO: ProcessCDR(1,14478191,1,1,2) [2025-02-15 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478191', 'tblTempUsageDetail_20' ) start [2025-02-15 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478191', 'tblTempUsageDetail_20' ) end [2025-02-15 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:02:21] Production.INFO: ==28852== Releasing lock... [2025-02-15 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:02:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:03:06 [end_date_ymd] => 2025-02-15 03:03:06 [RateCDR] => 1 ) [2025-02-15 03: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-15 00:03:06' and `end` < '2025-02-15 03: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-15 03:03:19] Production.INFO: count ==424 [2025-02-15 03:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:03:06 - End Time 2025-02-15 03:03:06 [2025-02-15 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478196', 'tblTempUsageDetail_20' ) start [2025-02-15 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478196', 'tblTempUsageDetail_20' ) end [2025-02-15 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478196', 'tblTempVendorCDR_20' ) start [2025-02-15 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478196', 'tblTempVendorCDR_20' ) end [2025-02-15 03:03:19] Production.INFO: ProcessCDR(1,14478196,1,1,2) [2025-02-15 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478196', 'tblTempUsageDetail_20' ) start [2025-02-15 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478196', 'tblTempUsageDetail_20' ) end [2025-02-15 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:03:22] Production.INFO: ==28933== Releasing lock... [2025-02-15 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:03:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:04:05 [end_date_ymd] => 2025-02-15 03:04:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:04:05' and `end` < '2025-02-15 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-15 03:04:18] Production.INFO: count ==429 [2025-02-15 03:04:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:04:05 - End Time 2025-02-15 03:04:05 [2025-02-15 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478201', 'tblTempUsageDetail_20' ) start [2025-02-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478201', 'tblTempUsageDetail_20' ) end [2025-02-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478201', 'tblTempVendorCDR_20' ) start [2025-02-15 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478201', 'tblTempVendorCDR_20' ) end [2025-02-15 03:04:18] Production.INFO: ProcessCDR(1,14478201,1,1,2) [2025-02-15 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478201', 'tblTempUsageDetail_20' ) start [2025-02-15 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478201', 'tblTempUsageDetail_20' ) end [2025-02-15 03:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:04:23] Production.INFO: ==29014== Releasing lock... [2025-02-15 03:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:04:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:05:06 [end_date_ymd] => 2025-02-15 03:05:06 [RateCDR] => 1 ) [2025-02-15 03: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-15 00:05:06' and `end` < '2025-02-15 03: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-15 03:05:19] Production.INFO: count ==428 [2025-02-15 03:05:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:05:06 - End Time 2025-02-15 03:05:06 [2025-02-15 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478206', 'tblTempUsageDetail_20' ) start [2025-02-15 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478206', 'tblTempUsageDetail_20' ) end [2025-02-15 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478206', 'tblTempVendorCDR_20' ) start [2025-02-15 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478206', 'tblTempVendorCDR_20' ) end [2025-02-15 03:05:19] Production.INFO: ProcessCDR(1,14478206,1,1,2) [2025-02-15 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478206', 'tblTempUsageDetail_20' ) start [2025-02-15 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478206', 'tblTempUsageDetail_20' ) end [2025-02-15 03:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:05:23] Production.INFO: ==29130== Releasing lock... [2025-02-15 03:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:05:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:06:05 [end_date_ymd] => 2025-02-15 03:06:05 [RateCDR] => 1 ) [2025-02-15 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:06:05' and `end` < '2025-02-15 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:06:18] Production.INFO: count ==429 [2025-02-15 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:06:05 - End Time 2025-02-15 03:06:05 [2025-02-15 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478211', 'tblTempUsageDetail_20' ) start [2025-02-15 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478211', 'tblTempUsageDetail_20' ) end [2025-02-15 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478211', 'tblTempVendorCDR_20' ) start [2025-02-15 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478211', 'tblTempVendorCDR_20' ) end [2025-02-15 03:06:18] Production.INFO: ProcessCDR(1,14478211,1,1,2) [2025-02-15 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478211', 'tblTempUsageDetail_20' ) start [2025-02-15 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478211', 'tblTempUsageDetail_20' ) end [2025-02-15 03:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:06:23] Production.INFO: ==29290== Releasing lock... [2025-02-15 03:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:06:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:07:05 [end_date_ymd] => 2025-02-15 03:07:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:07:05' and `end` < '2025-02-15 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-15 03:07:18] Production.INFO: count ==429 [2025-02-15 03:07:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:07:05 - End Time 2025-02-15 03:07:05 [2025-02-15 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478216', 'tblTempUsageDetail_20' ) start [2025-02-15 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478216', 'tblTempUsageDetail_20' ) end [2025-02-15 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478216', 'tblTempVendorCDR_20' ) start [2025-02-15 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478216', 'tblTempVendorCDR_20' ) end [2025-02-15 03:07:18] Production.INFO: ProcessCDR(1,14478216,1,1,2) [2025-02-15 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478216', 'tblTempUsageDetail_20' ) start [2025-02-15 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478216', 'tblTempUsageDetail_20' ) end [2025-02-15 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:07:21] Production.INFO: ==29369== Releasing lock... [2025-02-15 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:08:06 [end_date_ymd] => 2025-02-15 03:08:06 [RateCDR] => 1 ) [2025-02-15 03: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-15 00:08:06' and `end` < '2025-02-15 03: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-15 03:08:20] Production.INFO: count ==429 [2025-02-15 03:08:20] Production.ERROR: pbx CDR StartTime 2025-02-15 00:08:06 - End Time 2025-02-15 03:08:06 [2025-02-15 03:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478221', 'tblTempUsageDetail_20' ) start [2025-02-15 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478221', 'tblTempUsageDetail_20' ) end [2025-02-15 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478221', 'tblTempVendorCDR_20' ) start [2025-02-15 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478221', 'tblTempVendorCDR_20' ) end [2025-02-15 03:08:20] Production.INFO: ProcessCDR(1,14478221,1,1,2) [2025-02-15 03:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478221', 'tblTempUsageDetail_20' ) start [2025-02-15 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478221', 'tblTempUsageDetail_20' ) end [2025-02-15 03:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:08:23] Production.INFO: ==29457== Releasing lock... [2025-02-15 03:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:08:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:09:05 [end_date_ymd] => 2025-02-15 03:09:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:09:05' and `end` < '2025-02-15 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-15 03:09:18] Production.INFO: count ==425 [2025-02-15 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:09:05 - End Time 2025-02-15 03:09:05 [2025-02-15 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478226', 'tblTempUsageDetail_20' ) start [2025-02-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478226', 'tblTempUsageDetail_20' ) end [2025-02-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478226', 'tblTempVendorCDR_20' ) start [2025-02-15 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478226', 'tblTempVendorCDR_20' ) end [2025-02-15 03:09:18] Production.INFO: ProcessCDR(1,14478226,1,1,2) [2025-02-15 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478226', 'tblTempUsageDetail_20' ) start [2025-02-15 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478226', 'tblTempUsageDetail_20' ) end [2025-02-15 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:09:22] Production.INFO: ==29615== Releasing lock... [2025-02-15 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:09:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:10:06 [end_date_ymd] => 2025-02-15 03:10:06 [RateCDR] => 1 ) [2025-02-15 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:10:06' and `end` < '2025-02-15 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:10:20] Production.INFO: count ==421 [2025-02-15 03:10:20] Production.ERROR: pbx CDR StartTime 2025-02-15 00:10:06 - End Time 2025-02-15 03:10:06 [2025-02-15 03:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478232', 'tblTempUsageDetail_20' ) start [2025-02-15 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478232', 'tblTempUsageDetail_20' ) end [2025-02-15 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478232', 'tblTempVendorCDR_20' ) start [2025-02-15 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478232', 'tblTempVendorCDR_20' ) end [2025-02-15 03:10:20] Production.INFO: ProcessCDR(1,14478232,1,1,2) [2025-02-15 03:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478232', 'tblTempUsageDetail_20' ) start [2025-02-15 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478232', 'tblTempUsageDetail_20' ) end [2025-02-15 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:10:23] Production.INFO: ==29698== Releasing lock... [2025-02-15 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:10:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:11:05 [end_date_ymd] => 2025-02-15 03:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:11:05' and `end` < '2025-02-15 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-15 03:11:18] Production.INFO: count ==406 [2025-02-15 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:11:05 - End Time 2025-02-15 03:11:05 [2025-02-15 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478237', 'tblTempUsageDetail_20' ) start [2025-02-15 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478237', 'tblTempUsageDetail_20' ) end [2025-02-15 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478237', 'tblTempVendorCDR_20' ) start [2025-02-15 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478237', 'tblTempVendorCDR_20' ) end [2025-02-15 03:11:18] Production.INFO: ProcessCDR(1,14478237,1,1,2) [2025-02-15 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478237', 'tblTempUsageDetail_20' ) start [2025-02-15 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478237', 'tblTempUsageDetail_20' ) end [2025-02-15 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:11:22] Production.INFO: ==29780== Releasing lock... [2025-02-15 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:11:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:12:05 [end_date_ymd] => 2025-02-15 03:12:05 [RateCDR] => 1 ) [2025-02-15 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:12:05' and `end` < '2025-02-15 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:12:18] Production.INFO: count ==406 [2025-02-15 03:12:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:12:05 - End Time 2025-02-15 03:12:05 [2025-02-15 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478242', 'tblTempUsageDetail_20' ) start [2025-02-15 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478242', 'tblTempUsageDetail_20' ) end [2025-02-15 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478242', 'tblTempVendorCDR_20' ) start [2025-02-15 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478242', 'tblTempVendorCDR_20' ) end [2025-02-15 03:12:18] Production.INFO: ProcessCDR(1,14478242,1,1,2) [2025-02-15 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478242', 'tblTempUsageDetail_20' ) start [2025-02-15 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478242', 'tblTempUsageDetail_20' ) end [2025-02-15 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:12:22] Production.INFO: ==29868== Releasing lock... [2025-02-15 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:12:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:13:05 [end_date_ymd] => 2025-02-15 03:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:13:05' and `end` < '2025-02-15 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-15 03:13:18] Production.INFO: count ==406 [2025-02-15 03:13:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:13:05 - End Time 2025-02-15 03:13:05 [2025-02-15 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478247', 'tblTempUsageDetail_20' ) start [2025-02-15 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478247', 'tblTempUsageDetail_20' ) end [2025-02-15 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478247', 'tblTempVendorCDR_20' ) start [2025-02-15 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478247', 'tblTempVendorCDR_20' ) end [2025-02-15 03:13:18] Production.INFO: ProcessCDR(1,14478247,1,1,2) [2025-02-15 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478247', 'tblTempUsageDetail_20' ) start [2025-02-15 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478247', 'tblTempUsageDetail_20' ) end [2025-02-15 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:13:21] Production.INFO: ==30026== Releasing lock... [2025-02-15 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:14:05 [end_date_ymd] => 2025-02-15 03:14:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:14:05' and `end` < '2025-02-15 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-15 03:14:19] Production.INFO: count ==405 [2025-02-15 03:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:14:05 - End Time 2025-02-15 03:14:05 [2025-02-15 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478252', 'tblTempUsageDetail_20' ) start [2025-02-15 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478252', 'tblTempUsageDetail_20' ) end [2025-02-15 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478252', 'tblTempVendorCDR_20' ) start [2025-02-15 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478252', 'tblTempVendorCDR_20' ) end [2025-02-15 03:14:19] Production.INFO: ProcessCDR(1,14478252,1,1,2) [2025-02-15 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478252', 'tblTempUsageDetail_20' ) start [2025-02-15 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478252', 'tblTempUsageDetail_20' ) end [2025-02-15 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:14:22] Production.INFO: ==30106== Releasing lock... [2025-02-15 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:15:05 [end_date_ymd] => 2025-02-15 03:15:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:15:05' and `end` < '2025-02-15 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-15 03:15:18] Production.INFO: count ==400 [2025-02-15 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:15:05 - End Time 2025-02-15 03:15:05 [2025-02-15 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478257', 'tblTempUsageDetail_20' ) start [2025-02-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478257', 'tblTempUsageDetail_20' ) end [2025-02-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478257', 'tblTempVendorCDR_20' ) start [2025-02-15 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478257', 'tblTempVendorCDR_20' ) end [2025-02-15 03:15:18] Production.INFO: ProcessCDR(1,14478257,1,1,2) [2025-02-15 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478257', 'tblTempUsageDetail_20' ) start [2025-02-15 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478257', 'tblTempUsageDetail_20' ) end [2025-02-15 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:15:21] Production.INFO: ==30191== Releasing lock... [2025-02-15 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:16:05 [end_date_ymd] => 2025-02-15 03:16:05 [RateCDR] => 1 ) [2025-02-15 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:16:05' and `end` < '2025-02-15 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:16:18] Production.INFO: count ==400 [2025-02-15 03:16:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:16:05 - End Time 2025-02-15 03:16:05 [2025-02-15 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478262', 'tblTempUsageDetail_20' ) start [2025-02-15 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478262', 'tblTempUsageDetail_20' ) end [2025-02-15 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478262', 'tblTempVendorCDR_20' ) start [2025-02-15 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478262', 'tblTempVendorCDR_20' ) end [2025-02-15 03:16:18] Production.INFO: ProcessCDR(1,14478262,1,1,2) [2025-02-15 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478262', 'tblTempUsageDetail_20' ) start [2025-02-15 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478262', 'tblTempUsageDetail_20' ) end [2025-02-15 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:16:21] Production.INFO: ==30277== Releasing lock... [2025-02-15 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:17:05 [end_date_ymd] => 2025-02-15 03:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:17:05' and `end` < '2025-02-15 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-15 03:17:18] Production.INFO: count ==397 [2025-02-15 03:17:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:17:05 - End Time 2025-02-15 03:17:05 [2025-02-15 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478267', 'tblTempUsageDetail_20' ) start [2025-02-15 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478267', 'tblTempUsageDetail_20' ) end [2025-02-15 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478267', 'tblTempVendorCDR_20' ) start [2025-02-15 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478267', 'tblTempVendorCDR_20' ) end [2025-02-15 03:17:18] Production.INFO: ProcessCDR(1,14478267,1,1,2) [2025-02-15 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478267', 'tblTempUsageDetail_20' ) start [2025-02-15 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478267', 'tblTempUsageDetail_20' ) end [2025-02-15 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:17:21] Production.INFO: ==30435== Releasing lock... [2025-02-15 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:18:05 [end_date_ymd] => 2025-02-15 03:18:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:18:05' and `end` < '2025-02-15 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-15 03:18:18] Production.INFO: count ==396 [2025-02-15 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:18:05 - End Time 2025-02-15 03:18:05 [2025-02-15 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478272', 'tblTempUsageDetail_20' ) start [2025-02-15 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478272', 'tblTempUsageDetail_20' ) end [2025-02-15 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478272', 'tblTempVendorCDR_20' ) start [2025-02-15 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478272', 'tblTempVendorCDR_20' ) end [2025-02-15 03:18:18] Production.INFO: ProcessCDR(1,14478272,1,1,2) [2025-02-15 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478272', 'tblTempUsageDetail_20' ) start [2025-02-15 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478272', 'tblTempUsageDetail_20' ) end [2025-02-15 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:18:21] Production.INFO: ==30519== Releasing lock... [2025-02-15 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:19:04 [end_date_ymd] => 2025-02-15 03:19:04 [RateCDR] => 1 ) [2025-02-15 03: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-15 00:19:04' and `end` < '2025-02-15 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:19:18] Production.INFO: count ==396 [2025-02-15 03:19:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:19:04 - End Time 2025-02-15 03:19:04 [2025-02-15 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478277', 'tblTempUsageDetail_20' ) start [2025-02-15 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478277', 'tblTempUsageDetail_20' ) end [2025-02-15 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478277', 'tblTempVendorCDR_20' ) start [2025-02-15 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478277', 'tblTempVendorCDR_20' ) end [2025-02-15 03:19:18] Production.INFO: ProcessCDR(1,14478277,1,1,2) [2025-02-15 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478277', 'tblTempUsageDetail_20' ) start [2025-02-15 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478277', 'tblTempUsageDetail_20' ) end [2025-02-15 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:19:21] Production.INFO: ==30602== Releasing lock... [2025-02-15 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:20:06 [end_date_ymd] => 2025-02-15 03:20:06 [RateCDR] => 1 ) [2025-02-15 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:20:06' and `end` < '2025-02-15 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:20:20] Production.INFO: count ==395 [2025-02-15 03:20:20] Production.ERROR: pbx CDR StartTime 2025-02-15 00:20:06 - End Time 2025-02-15 03:20:06 [2025-02-15 03:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478283', 'tblTempUsageDetail_20' ) start [2025-02-15 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478283', 'tblTempUsageDetail_20' ) end [2025-02-15 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478283', 'tblTempVendorCDR_20' ) start [2025-02-15 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478283', 'tblTempVendorCDR_20' ) end [2025-02-15 03:20:20] Production.INFO: ProcessCDR(1,14478283,1,1,2) [2025-02-15 03:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478283', 'tblTempUsageDetail_20' ) start [2025-02-15 03:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478283', 'tblTempUsageDetail_20' ) end [2025-02-15 03:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:20:24] Production.INFO: ==30691== Releasing lock... [2025-02-15 03:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:20:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:21:05 [end_date_ymd] => 2025-02-15 03:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:21:05' and `end` < '2025-02-15 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-15 03:21:19] Production.INFO: count ==389 [2025-02-15 03:21:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:21:05 - End Time 2025-02-15 03:21:05 [2025-02-15 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478288', 'tblTempUsageDetail_20' ) start [2025-02-15 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478288', 'tblTempUsageDetail_20' ) end [2025-02-15 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478288', 'tblTempVendorCDR_20' ) start [2025-02-15 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478288', 'tblTempVendorCDR_20' ) end [2025-02-15 03:21:19] Production.INFO: ProcessCDR(1,14478288,1,1,2) [2025-02-15 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478288', 'tblTempUsageDetail_20' ) start [2025-02-15 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478288', 'tblTempUsageDetail_20' ) end [2025-02-15 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:21:22] Production.INFO: ==30776== Releasing lock... [2025-02-15 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:21:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:22:05 [end_date_ymd] => 2025-02-15 03:22:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:22:05' and `end` < '2025-02-15 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-15 03:22:19] Production.INFO: count ==387 [2025-02-15 03:22:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:22:05 - End Time 2025-02-15 03:22:05 [2025-02-15 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478293', 'tblTempUsageDetail_20' ) start [2025-02-15 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478293', 'tblTempUsageDetail_20' ) end [2025-02-15 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478293', 'tblTempVendorCDR_20' ) start [2025-02-15 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478293', 'tblTempVendorCDR_20' ) end [2025-02-15 03:22:19] Production.INFO: ProcessCDR(1,14478293,1,1,2) [2025-02-15 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478293', 'tblTempUsageDetail_20' ) start [2025-02-15 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478293', 'tblTempUsageDetail_20' ) end [2025-02-15 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:22:22] Production.INFO: ==30898== Releasing lock... [2025-02-15 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:22:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:23:06 [end_date_ymd] => 2025-02-15 03:23:06 [RateCDR] => 1 ) [2025-02-15 03:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:23:06' and `end` < '2025-02-15 03:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:23:19] Production.INFO: count ==386 [2025-02-15 03:23:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:23:06 - End Time 2025-02-15 03:23:06 [2025-02-15 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478298', 'tblTempUsageDetail_20' ) start [2025-02-15 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478298', 'tblTempUsageDetail_20' ) end [2025-02-15 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478298', 'tblTempVendorCDR_20' ) start [2025-02-15 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478298', 'tblTempVendorCDR_20' ) end [2025-02-15 03:23:19] Production.INFO: ProcessCDR(1,14478298,1,1,2) [2025-02-15 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478298', 'tblTempUsageDetail_20' ) start [2025-02-15 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478298', 'tblTempUsageDetail_20' ) end [2025-02-15 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:23:22] Production.INFO: ==30979== Releasing lock... [2025-02-15 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:23:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:24:05 [end_date_ymd] => 2025-02-15 03:24:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:24:05' and `end` < '2025-02-15 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-15 03:24:18] Production.INFO: count ==385 [2025-02-15 03:24:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:24:05 - End Time 2025-02-15 03:24:05 [2025-02-15 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478303', 'tblTempUsageDetail_20' ) start [2025-02-15 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478303', 'tblTempUsageDetail_20' ) end [2025-02-15 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478303', 'tblTempVendorCDR_20' ) start [2025-02-15 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478303', 'tblTempVendorCDR_20' ) end [2025-02-15 03:24:18] Production.INFO: ProcessCDR(1,14478303,1,1,2) [2025-02-15 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478303', 'tblTempUsageDetail_20' ) start [2025-02-15 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478303', 'tblTempUsageDetail_20' ) end [2025-02-15 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:24:22] Production.INFO: ==31057== Releasing lock... [2025-02-15 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:25:05 [end_date_ymd] => 2025-02-15 03:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:25:05' and `end` < '2025-02-15 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-15 03:25:18] Production.INFO: count ==385 [2025-02-15 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:25:05 - End Time 2025-02-15 03:25:05 [2025-02-15 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478308', 'tblTempUsageDetail_20' ) start [2025-02-15 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478308', 'tblTempUsageDetail_20' ) end [2025-02-15 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478308', 'tblTempVendorCDR_20' ) start [2025-02-15 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478308', 'tblTempVendorCDR_20' ) end [2025-02-15 03:25:18] Production.INFO: ProcessCDR(1,14478308,1,1,2) [2025-02-15 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478308', 'tblTempUsageDetail_20' ) start [2025-02-15 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478308', 'tblTempUsageDetail_20' ) end [2025-02-15 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:25:21] Production.INFO: ==31134== Releasing lock... [2025-02-15 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:26:04 [end_date_ymd] => 2025-02-15 03:26:04 [RateCDR] => 1 ) [2025-02-15 03:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:26:04' and `end` < '2025-02-15 03:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:26:17] Production.INFO: count ==385 [2025-02-15 03:26:17] Production.ERROR: pbx CDR StartTime 2025-02-15 00:26:04 - End Time 2025-02-15 03:26:04 [2025-02-15 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478313', 'tblTempUsageDetail_20' ) start [2025-02-15 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478313', 'tblTempUsageDetail_20' ) end [2025-02-15 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478313', 'tblTempVendorCDR_20' ) start [2025-02-15 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478313', 'tblTempVendorCDR_20' ) end [2025-02-15 03:26:17] Production.INFO: ProcessCDR(1,14478313,1,1,2) [2025-02-15 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478313', 'tblTempUsageDetail_20' ) start [2025-02-15 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478313', 'tblTempUsageDetail_20' ) end [2025-02-15 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:26:21] Production.INFO: ==31214== Releasing lock... [2025-02-15 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:27:05 [end_date_ymd] => 2025-02-15 03:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:27:05' and `end` < '2025-02-15 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-15 03:27:19] Production.INFO: count ==383 [2025-02-15 03:27:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:27:05 - End Time 2025-02-15 03:27:05 [2025-02-15 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478318', 'tblTempUsageDetail_20' ) start [2025-02-15 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478318', 'tblTempUsageDetail_20' ) end [2025-02-15 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478318', 'tblTempVendorCDR_20' ) start [2025-02-15 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478318', 'tblTempVendorCDR_20' ) end [2025-02-15 03:27:19] Production.INFO: ProcessCDR(1,14478318,1,1,2) [2025-02-15 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478318', 'tblTempUsageDetail_20' ) start [2025-02-15 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478318', 'tblTempUsageDetail_20' ) end [2025-02-15 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:27:22] Production.INFO: ==31294== Releasing lock... [2025-02-15 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:27:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:28:06 [end_date_ymd] => 2025-02-15 03:28:06 [RateCDR] => 1 ) [2025-02-15 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-15 00:28:06' and `end` < '2025-02-15 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-15 03:28:19] Production.INFO: count ==383 [2025-02-15 03:28:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:28:06 - End Time 2025-02-15 03:28:06 [2025-02-15 03:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478323', 'tblTempUsageDetail_20' ) start [2025-02-15 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478323', 'tblTempUsageDetail_20' ) end [2025-02-15 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478323', 'tblTempVendorCDR_20' ) start [2025-02-15 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478323', 'tblTempVendorCDR_20' ) end [2025-02-15 03:28:19] Production.INFO: ProcessCDR(1,14478323,1,1,2) [2025-02-15 03:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478323', 'tblTempUsageDetail_20' ) start [2025-02-15 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478323', 'tblTempUsageDetail_20' ) end [2025-02-15 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:28:22] Production.INFO: ==31370== Releasing lock... [2025-02-15 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:28:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:29:05 [end_date_ymd] => 2025-02-15 03:29:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:29:05' and `end` < '2025-02-15 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-15 03:29:18] Production.INFO: count ==382 [2025-02-15 03:29:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:29:05 - End Time 2025-02-15 03:29:05 [2025-02-15 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478328', 'tblTempUsageDetail_20' ) start [2025-02-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478328', 'tblTempUsageDetail_20' ) end [2025-02-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478328', 'tblTempVendorCDR_20' ) start [2025-02-15 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478328', 'tblTempVendorCDR_20' ) end [2025-02-15 03:29:18] Production.INFO: ProcessCDR(1,14478328,1,1,2) [2025-02-15 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478328', 'tblTempUsageDetail_20' ) start [2025-02-15 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478328', 'tblTempUsageDetail_20' ) end [2025-02-15 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:29:22] Production.INFO: ==31445== Releasing lock... [2025-02-15 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:29:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:30:05 [end_date_ymd] => 2025-02-15 03:30:05 [RateCDR] => 1 ) [2025-02-15 03: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-15 00:30:05' and `end` < '2025-02-15 03: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-15 03:30:18] Production.INFO: count ==380 [2025-02-15 03:30:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:30:05 - End Time 2025-02-15 03:30:05 [2025-02-15 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478334', 'tblTempUsageDetail_20' ) start [2025-02-15 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478334', 'tblTempUsageDetail_20' ) end [2025-02-15 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478334', 'tblTempVendorCDR_20' ) start [2025-02-15 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478334', 'tblTempVendorCDR_20' ) end [2025-02-15 03:30:18] Production.INFO: ProcessCDR(1,14478334,1,1,2) [2025-02-15 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478334', 'tblTempUsageDetail_20' ) start [2025-02-15 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478334', 'tblTempUsageDetail_20' ) end [2025-02-15 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:30:22] Production.INFO: ==31526== Releasing lock... [2025-02-15 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:31:06 [end_date_ymd] => 2025-02-15 03:31:06 [RateCDR] => 1 ) [2025-02-15 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:31:06' and `end` < '2025-02-15 03:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:31:19] Production.INFO: count ==354 [2025-02-15 03:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:31:06 - End Time 2025-02-15 03:31:06 [2025-02-15 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478339', 'tblTempUsageDetail_20' ) start [2025-02-15 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478339', 'tblTempUsageDetail_20' ) end [2025-02-15 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478339', 'tblTempVendorCDR_20' ) start [2025-02-15 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478339', 'tblTempVendorCDR_20' ) end [2025-02-15 03:31:19] Production.INFO: ProcessCDR(1,14478339,1,1,2) [2025-02-15 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478339', 'tblTempUsageDetail_20' ) start [2025-02-15 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478339', 'tblTempUsageDetail_20' ) end [2025-02-15 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:31:23] Production.INFO: ==31608== Releasing lock... [2025-02-15 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:31:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:32:05 [end_date_ymd] => 2025-02-15 03:32:05 [RateCDR] => 1 ) [2025-02-15 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:32:05' and `end` < '2025-02-15 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-15 03:32:19] Production.INFO: count ==354 [2025-02-15 03:32:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:32:05 - End Time 2025-02-15 03:32:05 [2025-02-15 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478344', 'tblTempUsageDetail_20' ) start [2025-02-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478344', 'tblTempUsageDetail_20' ) end [2025-02-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478344', 'tblTempVendorCDR_20' ) start [2025-02-15 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478344', 'tblTempVendorCDR_20' ) end [2025-02-15 03:32:19] Production.INFO: ProcessCDR(1,14478344,1,1,2) [2025-02-15 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478344', 'tblTempUsageDetail_20' ) start [2025-02-15 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478344', 'tblTempUsageDetail_20' ) end [2025-02-15 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:32:22] Production.INFO: ==31686== Releasing lock... [2025-02-15 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:33:05 [end_date_ymd] => 2025-02-15 03:33:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:33:05' and `end` < '2025-02-15 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-15 03:33:18] Production.INFO: count ==354 [2025-02-15 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:33:05 - End Time 2025-02-15 03:33:05 [2025-02-15 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478349', 'tblTempUsageDetail_20' ) start [2025-02-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478349', 'tblTempUsageDetail_20' ) end [2025-02-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478349', 'tblTempVendorCDR_20' ) start [2025-02-15 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478349', 'tblTempVendorCDR_20' ) end [2025-02-15 03:33:18] Production.INFO: ProcessCDR(1,14478349,1,1,2) [2025-02-15 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478349', 'tblTempUsageDetail_20' ) start [2025-02-15 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478349', 'tblTempUsageDetail_20' ) end [2025-02-15 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:33:22] Production.INFO: ==31759== Releasing lock... [2025-02-15 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:33:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:34:05 [end_date_ymd] => 2025-02-15 03:34:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:34:05' and `end` < '2025-02-15 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-15 03:34:18] Production.INFO: count ==354 [2025-02-15 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:34:05 - End Time 2025-02-15 03:34:05 [2025-02-15 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478354', 'tblTempUsageDetail_20' ) start [2025-02-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478354', 'tblTempUsageDetail_20' ) end [2025-02-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478354', 'tblTempVendorCDR_20' ) start [2025-02-15 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478354', 'tblTempVendorCDR_20' ) end [2025-02-15 03:34:18] Production.INFO: ProcessCDR(1,14478354,1,1,2) [2025-02-15 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478354', 'tblTempUsageDetail_20' ) start [2025-02-15 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478354', 'tblTempUsageDetail_20' ) end [2025-02-15 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:34:22] Production.INFO: ==31835== Releasing lock... [2025-02-15 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:35:05 [end_date_ymd] => 2025-02-15 03:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:35:05' and `end` < '2025-02-15 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-15 03:35:19] Production.INFO: count ==354 [2025-02-15 03:35:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:35:05 - End Time 2025-02-15 03:35:05 [2025-02-15 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478359', 'tblTempUsageDetail_20' ) start [2025-02-15 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478359', 'tblTempUsageDetail_20' ) end [2025-02-15 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478359', 'tblTempVendorCDR_20' ) start [2025-02-15 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478359', 'tblTempVendorCDR_20' ) end [2025-02-15 03:35:19] Production.INFO: ProcessCDR(1,14478359,1,1,2) [2025-02-15 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478359', 'tblTempUsageDetail_20' ) start [2025-02-15 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478359', 'tblTempUsageDetail_20' ) end [2025-02-15 03:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:35:23] Production.INFO: ==31910== Releasing lock... [2025-02-15 03:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:35:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:36:05 [end_date_ymd] => 2025-02-15 03:36:05 [RateCDR] => 1 ) [2025-02-15 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:36:05' and `end` < '2025-02-15 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:36:18] Production.INFO: count ==354 [2025-02-15 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:36:05 - End Time 2025-02-15 03:36:05 [2025-02-15 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478364', 'tblTempUsageDetail_20' ) start [2025-02-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478364', 'tblTempUsageDetail_20' ) end [2025-02-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478364', 'tblTempVendorCDR_20' ) start [2025-02-15 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478364', 'tblTempVendorCDR_20' ) end [2025-02-15 03:36:18] Production.INFO: ProcessCDR(1,14478364,1,1,2) [2025-02-15 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478364', 'tblTempUsageDetail_20' ) start [2025-02-15 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478364', 'tblTempUsageDetail_20' ) end [2025-02-15 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:36:22] Production.INFO: ==31983== Releasing lock... [2025-02-15 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:37:05 [end_date_ymd] => 2025-02-15 03:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:37:05' and `end` < '2025-02-15 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-15 03:37:20] Production.INFO: count ==355 [2025-02-15 03:37:20] Production.ERROR: pbx CDR StartTime 2025-02-15 00:37:05 - End Time 2025-02-15 03:37:05 [2025-02-15 03:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478369', 'tblTempUsageDetail_20' ) start [2025-02-15 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478369', 'tblTempUsageDetail_20' ) end [2025-02-15 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478369', 'tblTempVendorCDR_20' ) start [2025-02-15 03:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478369', 'tblTempVendorCDR_20' ) end [2025-02-15 03:37:20] Production.INFO: ProcessCDR(1,14478369,1,1,2) [2025-02-15 03:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478369', 'tblTempUsageDetail_20' ) start [2025-02-15 03:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478369', 'tblTempUsageDetail_20' ) end [2025-02-15 03:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:37:25] Production.INFO: ==32060== Releasing lock... [2025-02-15 03:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:37:25] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:38:05 [end_date_ymd] => 2025-02-15 03:38:05 [RateCDR] => 1 ) [2025-02-15 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:38:05' and `end` < '2025-02-15 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:38:20] Production.INFO: count ==355 [2025-02-15 03:38:20] Production.ERROR: pbx CDR StartTime 2025-02-15 00:38:05 - End Time 2025-02-15 03:38:05 [2025-02-15 03:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478374', 'tblTempUsageDetail_20' ) start [2025-02-15 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478374', 'tblTempUsageDetail_20' ) end [2025-02-15 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478374', 'tblTempVendorCDR_20' ) start [2025-02-15 03:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478374', 'tblTempVendorCDR_20' ) end [2025-02-15 03:38:20] Production.INFO: ProcessCDR(1,14478374,1,1,2) [2025-02-15 03:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478374', 'tblTempUsageDetail_20' ) start [2025-02-15 03:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478374', 'tblTempUsageDetail_20' ) end [2025-02-15 03:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:38:24] Production.INFO: ==32173== Releasing lock... [2025-02-15 03:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:38:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:39:05 [end_date_ymd] => 2025-02-15 03:39:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:39:05' and `end` < '2025-02-15 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-15 03:39:18] Production.INFO: count ==355 [2025-02-15 03:39:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:39:05 - End Time 2025-02-15 03:39:05 [2025-02-15 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478379', 'tblTempUsageDetail_20' ) start [2025-02-15 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478379', 'tblTempUsageDetail_20' ) end [2025-02-15 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478379', 'tblTempVendorCDR_20' ) start [2025-02-15 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478379', 'tblTempVendorCDR_20' ) end [2025-02-15 03:39:18] Production.INFO: ProcessCDR(1,14478379,1,1,2) [2025-02-15 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478379', 'tblTempUsageDetail_20' ) start [2025-02-15 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478379', 'tblTempUsageDetail_20' ) end [2025-02-15 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:39:21] Production.INFO: ==32243== Releasing lock... [2025-02-15 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:40:07 [end_date_ymd] => 2025-02-15 03:40:07 [RateCDR] => 1 ) [2025-02-15 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:40:07' and `end` < '2025-02-15 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:40:20] Production.INFO: count ==348 [2025-02-15 03:40:20] Production.ERROR: pbx CDR StartTime 2025-02-15 00:40:07 - End Time 2025-02-15 03:40:07 [2025-02-15 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478385', 'tblTempUsageDetail_20' ) start [2025-02-15 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478385', 'tblTempUsageDetail_20' ) end [2025-02-15 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478385', 'tblTempVendorCDR_20' ) start [2025-02-15 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478385', 'tblTempVendorCDR_20' ) end [2025-02-15 03:40:20] Production.INFO: ProcessCDR(1,14478385,1,1,2) [2025-02-15 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478385', 'tblTempUsageDetail_20' ) start [2025-02-15 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478385', 'tblTempUsageDetail_20' ) end [2025-02-15 03:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:40:24] Production.INFO: ==32320== Releasing lock... [2025-02-15 03:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:40:24] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:41:05 [end_date_ymd] => 2025-02-15 03:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:41:05' and `end` < '2025-02-15 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-15 03:41:19] Production.INFO: count ==346 [2025-02-15 03:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:41:05 - End Time 2025-02-15 03:41:05 [2025-02-15 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478390', 'tblTempUsageDetail_20' ) start [2025-02-15 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478390', 'tblTempUsageDetail_20' ) end [2025-02-15 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478390', 'tblTempVendorCDR_20' ) start [2025-02-15 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478390', 'tblTempVendorCDR_20' ) end [2025-02-15 03:41:19] Production.INFO: ProcessCDR(1,14478390,1,1,2) [2025-02-15 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478390', 'tblTempUsageDetail_20' ) start [2025-02-15 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478390', 'tblTempUsageDetail_20' ) end [2025-02-15 03:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:41:23] Production.INFO: ==32393== Releasing lock... [2025-02-15 03:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:41:23] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:42:06 [end_date_ymd] => 2025-02-15 03:42:06 [RateCDR] => 1 ) [2025-02-15 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-15 00:42:06' and `end` < '2025-02-15 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-15 03:42:19] Production.INFO: count ==346 [2025-02-15 03:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:42:06 - End Time 2025-02-15 03:42:06 [2025-02-15 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478395', 'tblTempUsageDetail_20' ) start [2025-02-15 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478395', 'tblTempUsageDetail_20' ) end [2025-02-15 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478395', 'tblTempVendorCDR_20' ) start [2025-02-15 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478395', 'tblTempVendorCDR_20' ) end [2025-02-15 03:42:19] Production.INFO: ProcessCDR(1,14478395,1,1,2) [2025-02-15 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478395', 'tblTempUsageDetail_20' ) start [2025-02-15 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478395', 'tblTempUsageDetail_20' ) end [2025-02-15 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:42:22] Production.INFO: ==32487== Releasing lock... [2025-02-15 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:42:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:43:05 [end_date_ymd] => 2025-02-15 03:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:43:05' and `end` < '2025-02-15 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-15 03:43:18] Production.INFO: count ==346 [2025-02-15 03:43:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:43:05 - End Time 2025-02-15 03:43:05 [2025-02-15 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478400', 'tblTempUsageDetail_20' ) start [2025-02-15 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478400', 'tblTempUsageDetail_20' ) end [2025-02-15 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478400', 'tblTempVendorCDR_20' ) start [2025-02-15 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478400', 'tblTempVendorCDR_20' ) end [2025-02-15 03:43:18] Production.INFO: ProcessCDR(1,14478400,1,1,2) [2025-02-15 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478400', 'tblTempUsageDetail_20' ) start [2025-02-15 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478400', 'tblTempUsageDetail_20' ) end [2025-02-15 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:43:22] Production.INFO: ==32579== Releasing lock... [2025-02-15 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:43:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:44:06 [end_date_ymd] => 2025-02-15 03:44:06 [RateCDR] => 1 ) [2025-02-15 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-15 00:44:06' and `end` < '2025-02-15 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-15 03:44:20] Production.INFO: count ==346 [2025-02-15 03:44:21] Production.ERROR: pbx CDR StartTime 2025-02-15 00:44:06 - End Time 2025-02-15 03:44:06 [2025-02-15 03:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478405', 'tblTempUsageDetail_20' ) start [2025-02-15 03:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478405', 'tblTempUsageDetail_20' ) end [2025-02-15 03:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478405', 'tblTempVendorCDR_20' ) start [2025-02-15 03:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478405', 'tblTempVendorCDR_20' ) end [2025-02-15 03:44:21] Production.INFO: ProcessCDR(1,14478405,1,1,2) [2025-02-15 03:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478405', 'tblTempUsageDetail_20' ) start [2025-02-15 03:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478405', 'tblTempUsageDetail_20' ) end [2025-02-15 03:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:44:24] Production.INFO: ==32653== Releasing lock... [2025-02-15 03:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:44:24] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:45:05 [end_date_ymd] => 2025-02-15 03:45:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:45:05' and `end` < '2025-02-15 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-15 03:45:18] Production.INFO: count ==346 [2025-02-15 03:45:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:45:05 - End Time 2025-02-15 03:45:05 [2025-02-15 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478410', 'tblTempUsageDetail_20' ) start [2025-02-15 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478410', 'tblTempUsageDetail_20' ) end [2025-02-15 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478410', 'tblTempVendorCDR_20' ) start [2025-02-15 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478410', 'tblTempVendorCDR_20' ) end [2025-02-15 03:45:18] Production.INFO: ProcessCDR(1,14478410,1,1,2) [2025-02-15 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478410', 'tblTempUsageDetail_20' ) start [2025-02-15 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478410', 'tblTempUsageDetail_20' ) end [2025-02-15 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:45:21] Production.INFO: ==32726== Releasing lock... [2025-02-15 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:45:21] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:46:06 [end_date_ymd] => 2025-02-15 03:46:06 [RateCDR] => 1 ) [2025-02-15 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-15 00:46:06' and `end` < '2025-02-15 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-15 03:46:19] Production.INFO: count ==346 [2025-02-15 03:46:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:46:06 - End Time 2025-02-15 03:46:06 [2025-02-15 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478415', 'tblTempUsageDetail_20' ) start [2025-02-15 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478415', 'tblTempUsageDetail_20' ) end [2025-02-15 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478415', 'tblTempVendorCDR_20' ) start [2025-02-15 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478415', 'tblTempVendorCDR_20' ) end [2025-02-15 03:46:19] Production.INFO: ProcessCDR(1,14478415,1,1,2) [2025-02-15 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478415', 'tblTempUsageDetail_20' ) start [2025-02-15 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478415', 'tblTempUsageDetail_20' ) end [2025-02-15 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:46:22] Production.INFO: ==339== Releasing lock... [2025-02-15 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:46:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:47:05 [end_date_ymd] => 2025-02-15 03:47:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:47:05' and `end` < '2025-02-15 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-15 03:47:19] Production.INFO: count ==343 [2025-02-15 03:47:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:47:05 - End Time 2025-02-15 03:47:05 [2025-02-15 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478420', 'tblTempUsageDetail_20' ) start [2025-02-15 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478420', 'tblTempUsageDetail_20' ) end [2025-02-15 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478420', 'tblTempVendorCDR_20' ) start [2025-02-15 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478420', 'tblTempVendorCDR_20' ) end [2025-02-15 03:47:19] Production.INFO: ProcessCDR(1,14478420,1,1,2) [2025-02-15 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478420', 'tblTempUsageDetail_20' ) start [2025-02-15 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478420', 'tblTempUsageDetail_20' ) end [2025-02-15 03:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:47:23] Production.INFO: ==428== Releasing lock... [2025-02-15 03:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:47:23] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:48:05 [end_date_ymd] => 2025-02-15 03:48:05 [RateCDR] => 1 ) [2025-02-15 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:48:05' and `end` < '2025-02-15 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:48:18] Production.INFO: count ==341 [2025-02-15 03:48:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:48:05 - End Time 2025-02-15 03:48:05 [2025-02-15 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478425', 'tblTempUsageDetail_20' ) start [2025-02-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478425', 'tblTempUsageDetail_20' ) end [2025-02-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478425', 'tblTempVendorCDR_20' ) start [2025-02-15 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478425', 'tblTempVendorCDR_20' ) end [2025-02-15 03:48:18] Production.INFO: ProcessCDR(1,14478425,1,1,2) [2025-02-15 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478425', 'tblTempUsageDetail_20' ) start [2025-02-15 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478425', 'tblTempUsageDetail_20' ) end [2025-02-15 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:48:22] Production.INFO: ==508== Releasing lock... [2025-02-15 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:48:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:49:05 [end_date_ymd] => 2025-02-15 03:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:49:05' and `end` < '2025-02-15 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-15 03:49:18] Production.INFO: count ==343 [2025-02-15 03:49:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:49:05 - End Time 2025-02-15 03:49:05 [2025-02-15 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478430', 'tblTempUsageDetail_20' ) start [2025-02-15 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478430', 'tblTempUsageDetail_20' ) end [2025-02-15 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478430', 'tblTempVendorCDR_20' ) start [2025-02-15 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478430', 'tblTempVendorCDR_20' ) end [2025-02-15 03:49:18] Production.INFO: ProcessCDR(1,14478430,1,1,2) [2025-02-15 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478430', 'tblTempUsageDetail_20' ) start [2025-02-15 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478430', 'tblTempUsageDetail_20' ) end [2025-02-15 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:49:22] Production.INFO: ==589== Releasing lock... [2025-02-15 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:49:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:50:06 [end_date_ymd] => 2025-02-15 03:50:06 [RateCDR] => 1 ) [2025-02-15 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:50:06' and `end` < '2025-02-15 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:50:19] Production.INFO: count ==345 [2025-02-15 03:50:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:50:06 - End Time 2025-02-15 03:50:06 [2025-02-15 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478436', 'tblTempUsageDetail_20' ) start [2025-02-15 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478436', 'tblTempUsageDetail_20' ) end [2025-02-15 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478436', 'tblTempVendorCDR_20' ) start [2025-02-15 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478436', 'tblTempVendorCDR_20' ) end [2025-02-15 03:50:19] Production.INFO: ProcessCDR(1,14478436,1,1,2) [2025-02-15 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478436', 'tblTempUsageDetail_20' ) start [2025-02-15 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478436', 'tblTempUsageDetail_20' ) end [2025-02-15 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:50:23] Production.INFO: ==691== Releasing lock... [2025-02-15 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:50:23] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:51:05 [end_date_ymd] => 2025-02-15 03:51:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:51:05' and `end` < '2025-02-15 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-15 03:51:18] Production.INFO: count ==322 [2025-02-15 03:51:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:51:05 - End Time 2025-02-15 03:51:05 [2025-02-15 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478441', 'tblTempUsageDetail_20' ) start [2025-02-15 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478441', 'tblTempUsageDetail_20' ) end [2025-02-15 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478441', 'tblTempVendorCDR_20' ) start [2025-02-15 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478441', 'tblTempVendorCDR_20' ) end [2025-02-15 03:51:18] Production.INFO: ProcessCDR(1,14478441,1,1,2) [2025-02-15 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478441', 'tblTempUsageDetail_20' ) start [2025-02-15 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478441', 'tblTempUsageDetail_20' ) end [2025-02-15 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:51:22] Production.INFO: ==788== Releasing lock... [2025-02-15 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:51:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:52:05 [end_date_ymd] => 2025-02-15 03:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:52:05' and `end` < '2025-02-15 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-15 03:52:18] Production.INFO: count ==322 [2025-02-15 03:52:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:52:05 - End Time 2025-02-15 03:52:05 [2025-02-15 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478446', 'tblTempUsageDetail_20' ) start [2025-02-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478446', 'tblTempUsageDetail_20' ) end [2025-02-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478446', 'tblTempVendorCDR_20' ) start [2025-02-15 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478446', 'tblTempVendorCDR_20' ) end [2025-02-15 03:52:18] Production.INFO: ProcessCDR(1,14478446,1,1,2) [2025-02-15 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478446', 'tblTempUsageDetail_20' ) start [2025-02-15 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478446', 'tblTempUsageDetail_20' ) end [2025-02-15 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:52:22] Production.INFO: ==863== Releasing lock... [2025-02-15 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:52:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:53:06 [end_date_ymd] => 2025-02-15 03:53:06 [RateCDR] => 1 ) [2025-02-15 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:53:06' and `end` < '2025-02-15 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:53:19] Production.INFO: count ==325 [2025-02-15 03:53:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:53:06 - End Time 2025-02-15 03:53:06 [2025-02-15 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478451', 'tblTempUsageDetail_20' ) start [2025-02-15 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478451', 'tblTempUsageDetail_20' ) end [2025-02-15 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478451', 'tblTempVendorCDR_20' ) start [2025-02-15 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478451', 'tblTempVendorCDR_20' ) end [2025-02-15 03:53:19] Production.INFO: ProcessCDR(1,14478451,1,1,2) [2025-02-15 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478451', 'tblTempUsageDetail_20' ) start [2025-02-15 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478451', 'tblTempUsageDetail_20' ) end [2025-02-15 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:53:22] Production.INFO: ==986== Releasing lock... [2025-02-15 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:53:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:54:05 [end_date_ymd] => 2025-02-15 03:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:54:05' and `end` < '2025-02-15 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-15 03:54:19] Production.INFO: count ==325 [2025-02-15 03:54:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:54:05 - End Time 2025-02-15 03:54:05 [2025-02-15 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478456', 'tblTempUsageDetail_20' ) start [2025-02-15 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478456', 'tblTempUsageDetail_20' ) end [2025-02-15 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478456', 'tblTempVendorCDR_20' ) start [2025-02-15 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478456', 'tblTempVendorCDR_20' ) end [2025-02-15 03:54:19] Production.INFO: ProcessCDR(1,14478456,1,1,2) [2025-02-15 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478456', 'tblTempUsageDetail_20' ) start [2025-02-15 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478456', 'tblTempUsageDetail_20' ) end [2025-02-15 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:54:23] Production.INFO: ==1062== Releasing lock... [2025-02-15 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:54:23] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:55:05 [end_date_ymd] => 2025-02-15 03:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:55:05' and `end` < '2025-02-15 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-15 03:55:18] Production.INFO: count ==325 [2025-02-15 03:55:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:55:05 - End Time 2025-02-15 03:55:05 [2025-02-15 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478461', 'tblTempUsageDetail_20' ) start [2025-02-15 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478461', 'tblTempUsageDetail_20' ) end [2025-02-15 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478461', 'tblTempVendorCDR_20' ) start [2025-02-15 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478461', 'tblTempVendorCDR_20' ) end [2025-02-15 03:55:18] Production.INFO: ProcessCDR(1,14478461,1,1,2) [2025-02-15 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478461', 'tblTempUsageDetail_20' ) start [2025-02-15 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478461', 'tblTempUsageDetail_20' ) end [2025-02-15 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:55:22] Production.INFO: ==1142== Releasing lock... [2025-02-15 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:55:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:56:05 [end_date_ymd] => 2025-02-15 03:56:05 [RateCDR] => 1 ) [2025-02-15 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:56:05' and `end` < '2025-02-15 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:56:19] Production.INFO: count ==325 [2025-02-15 03:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:56:05 - End Time 2025-02-15 03:56:05 [2025-02-15 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478466', 'tblTempUsageDetail_20' ) start [2025-02-15 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478466', 'tblTempUsageDetail_20' ) end [2025-02-15 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478466', 'tblTempVendorCDR_20' ) start [2025-02-15 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478466', 'tblTempVendorCDR_20' ) end [2025-02-15 03:56:19] Production.INFO: ProcessCDR(1,14478466,1,1,2) [2025-02-15 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478466', 'tblTempUsageDetail_20' ) start [2025-02-15 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478466', 'tblTempUsageDetail_20' ) end [2025-02-15 03:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:56:23] Production.INFO: ==1225== Releasing lock... [2025-02-15 03:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:56:23] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:57:05 [end_date_ymd] => 2025-02-15 03:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 00:57:05' and `end` < '2025-02-15 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-15 03:57:19] Production.INFO: count ==325 [2025-02-15 03:57:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:57:05 - End Time 2025-02-15 03:57:05 [2025-02-15 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478471', 'tblTempUsageDetail_20' ) start [2025-02-15 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478471', 'tblTempUsageDetail_20' ) end [2025-02-15 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478471', 'tblTempVendorCDR_20' ) start [2025-02-15 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478471', 'tblTempVendorCDR_20' ) end [2025-02-15 03:57:19] Production.INFO: ProcessCDR(1,14478471,1,1,2) [2025-02-15 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478471', 'tblTempUsageDetail_20' ) start [2025-02-15 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478471', 'tblTempUsageDetail_20' ) end [2025-02-15 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:57:22] Production.INFO: ==1312== Releasing lock... [2025-02-15 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:57:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:58:05 [end_date_ymd] => 2025-02-15 03:58:05 [RateCDR] => 1 ) [2025-02-15 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:58:05' and `end` < '2025-02-15 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:58:18] Production.INFO: count ==325 [2025-02-15 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-15 00:58:05 - End Time 2025-02-15 03:58:05 [2025-02-15 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478476', 'tblTempUsageDetail_20' ) start [2025-02-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478476', 'tblTempUsageDetail_20' ) end [2025-02-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478476', 'tblTempVendorCDR_20' ) start [2025-02-15 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478476', 'tblTempVendorCDR_20' ) end [2025-02-15 03:58:18] Production.INFO: ProcessCDR(1,14478476,1,1,2) [2025-02-15 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478476', 'tblTempUsageDetail_20' ) start [2025-02-15 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478476', 'tblTempUsageDetail_20' ) end [2025-02-15 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:58:21] Production.INFO: ==1391== Releasing lock... [2025-02-15 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:58:21] Production.INFO: 30 MB #Memory Used# [2025-02-15 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 00:59:06 [end_date_ymd] => 2025-02-15 03:59:06 [RateCDR] => 1 ) [2025-02-15 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 00:59:06' and `end` < '2025-02-15 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 03:59:19] Production.INFO: count ==325 [2025-02-15 03:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 00:59:06 - End Time 2025-02-15 03:59:06 [2025-02-15 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478481', 'tblTempUsageDetail_20' ) start [2025-02-15 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478481', 'tblTempUsageDetail_20' ) end [2025-02-15 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478481', 'tblTempVendorCDR_20' ) start [2025-02-15 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478481', 'tblTempVendorCDR_20' ) end [2025-02-15 03:59:19] Production.INFO: ProcessCDR(1,14478481,1,1,2) [2025-02-15 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478481', 'tblTempUsageDetail_20' ) start [2025-02-15 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478481', 'tblTempUsageDetail_20' ) end [2025-02-15 03:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 03:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 03:59:23] Production.INFO: ==1464== Releasing lock... [2025-02-15 03:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 03:59:23] Production.INFO: 30 MB #Memory Used# [2025-02-15 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:00:06 [end_date_ymd] => 2025-02-15 04:00:06 [RateCDR] => 1 ) [2025-02-15 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:00:06' and `end` < '2025-02-15 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:00:19] Production.INFO: count ==321 [2025-02-15 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:00:06 - End Time 2025-02-15 04:00:06 [2025-02-15 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478487', 'tblTempUsageDetail_20' ) start [2025-02-15 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478487', 'tblTempUsageDetail_20' ) end [2025-02-15 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478487', 'tblTempVendorCDR_20' ) start [2025-02-15 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478487', 'tblTempVendorCDR_20' ) end [2025-02-15 04:00:19] Production.INFO: ProcessCDR(1,14478487,1,1,2) [2025-02-15 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478487', 'tblTempUsageDetail_20' ) start [2025-02-15 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478487', 'tblTempUsageDetail_20' ) end [2025-02-15 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:00:24] Production.INFO: ==1586== Releasing lock... [2025-02-15 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:00:24] Production.INFO: 30 MB #Memory Used# [2025-02-15 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:01:06 [end_date_ymd] => 2025-02-15 04:01:06 [RateCDR] => 1 ) [2025-02-15 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:01:06' and `end` < '2025-02-15 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:01:19] Production.INFO: count ==298 [2025-02-15 04:01:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:01:06 - End Time 2025-02-15 04:01:06 [2025-02-15 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478493', 'tblTempUsageDetail_20' ) start [2025-02-15 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478493', 'tblTempUsageDetail_20' ) end [2025-02-15 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478493', 'tblTempVendorCDR_20' ) start [2025-02-15 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478493', 'tblTempVendorCDR_20' ) end [2025-02-15 04:01:19] Production.INFO: ProcessCDR(1,14478493,1,1,2) [2025-02-15 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478493', 'tblTempUsageDetail_20' ) start [2025-02-15 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478493', 'tblTempUsageDetail_20' ) end [2025-02-15 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:01:23] Production.INFO: ==1675== Releasing lock... [2025-02-15 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:01:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:02:05 [end_date_ymd] => 2025-02-15 04:02:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:02:05' and `end` < '2025-02-15 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-15 04:02:18] Production.INFO: count ==297 [2025-02-15 04:02:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:02:05 - End Time 2025-02-15 04:02:05 [2025-02-15 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478498', 'tblTempUsageDetail_20' ) start [2025-02-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478498', 'tblTempUsageDetail_20' ) end [2025-02-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478498', 'tblTempVendorCDR_20' ) start [2025-02-15 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478498', 'tblTempVendorCDR_20' ) end [2025-02-15 04:02:18] Production.INFO: ProcessCDR(1,14478498,1,1,2) [2025-02-15 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478498', 'tblTempUsageDetail_20' ) start [2025-02-15 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478498', 'tblTempUsageDetail_20' ) end [2025-02-15 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:02:21] Production.INFO: ==1748== Releasing lock... [2025-02-15 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:03:05 [end_date_ymd] => 2025-02-15 04:03:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:03:05' and `end` < '2025-02-15 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-15 04:03:20] Production.INFO: count ==297 [2025-02-15 04:03:20] Production.ERROR: pbx CDR StartTime 2025-02-15 01:03:05 - End Time 2025-02-15 04:03:05 [2025-02-15 04:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478503', 'tblTempUsageDetail_20' ) start [2025-02-15 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478503', 'tblTempUsageDetail_20' ) end [2025-02-15 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478503', 'tblTempVendorCDR_20' ) start [2025-02-15 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478503', 'tblTempVendorCDR_20' ) end [2025-02-15 04:03:20] Production.INFO: ProcessCDR(1,14478503,1,1,2) [2025-02-15 04:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478503', 'tblTempUsageDetail_20' ) start [2025-02-15 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478503', 'tblTempUsageDetail_20' ) end [2025-02-15 04:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:03:23] Production.INFO: ==1827== Releasing lock... [2025-02-15 04:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:03:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:04:05 [end_date_ymd] => 2025-02-15 04:04:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:04:05' and `end` < '2025-02-15 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-15 04:04:18] Production.INFO: count ==296 [2025-02-15 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:04:05 - End Time 2025-02-15 04:04:05 [2025-02-15 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478508', 'tblTempUsageDetail_20' ) start [2025-02-15 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478508', 'tblTempUsageDetail_20' ) end [2025-02-15 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478508', 'tblTempVendorCDR_20' ) start [2025-02-15 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478508', 'tblTempVendorCDR_20' ) end [2025-02-15 04:04:18] Production.INFO: ProcessCDR(1,14478508,1,1,2) [2025-02-15 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478508', 'tblTempUsageDetail_20' ) start [2025-02-15 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478508', 'tblTempUsageDetail_20' ) end [2025-02-15 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:04:21] Production.INFO: ==1909== Releasing lock... [2025-02-15 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:05:05 [end_date_ymd] => 2025-02-15 04:05:05 [RateCDR] => 1 ) [2025-02-15 04:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:05:05' and `end` < '2025-02-15 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:05:19] Production.INFO: count ==296 [2025-02-15 04:05:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:05:05 - End Time 2025-02-15 04:05:05 [2025-02-15 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478513', 'tblTempUsageDetail_20' ) start [2025-02-15 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478513', 'tblTempUsageDetail_20' ) end [2025-02-15 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478513', 'tblTempVendorCDR_20' ) start [2025-02-15 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478513', 'tblTempVendorCDR_20' ) end [2025-02-15 04:05:19] Production.INFO: ProcessCDR(1,14478513,1,1,2) [2025-02-15 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478513', 'tblTempUsageDetail_20' ) start [2025-02-15 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478513', 'tblTempUsageDetail_20' ) end [2025-02-15 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:05:22] Production.INFO: ==1982== Releasing lock... [2025-02-15 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:06:05 [end_date_ymd] => 2025-02-15 04:06:05 [RateCDR] => 1 ) [2025-02-15 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:06:05' and `end` < '2025-02-15 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:06:18] Production.INFO: count ==296 [2025-02-15 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:06:05 - End Time 2025-02-15 04:06:05 [2025-02-15 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478518', 'tblTempUsageDetail_20' ) start [2025-02-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478518', 'tblTempUsageDetail_20' ) end [2025-02-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478518', 'tblTempVendorCDR_20' ) start [2025-02-15 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478518', 'tblTempVendorCDR_20' ) end [2025-02-15 04:06:18] Production.INFO: ProcessCDR(1,14478518,1,1,2) [2025-02-15 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478518', 'tblTempUsageDetail_20' ) start [2025-02-15 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478518', 'tblTempUsageDetail_20' ) end [2025-02-15 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:06:21] Production.INFO: ==2078== Releasing lock... [2025-02-15 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:07:06 [end_date_ymd] => 2025-02-15 04:07:06 [RateCDR] => 1 ) [2025-02-15 04: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-15 01:07:06' and `end` < '2025-02-15 04: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-15 04:07:19] Production.INFO: count ==292 [2025-02-15 04:07:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:07:06 - End Time 2025-02-15 04:07:06 [2025-02-15 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478523', 'tblTempUsageDetail_20' ) start [2025-02-15 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478523', 'tblTempUsageDetail_20' ) end [2025-02-15 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478523', 'tblTempVendorCDR_20' ) start [2025-02-15 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478523', 'tblTempVendorCDR_20' ) end [2025-02-15 04:07:19] Production.INFO: ProcessCDR(1,14478523,1,1,2) [2025-02-15 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478523', 'tblTempUsageDetail_20' ) start [2025-02-15 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478523', 'tblTempUsageDetail_20' ) end [2025-02-15 04:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:07:23] Production.INFO: ==2168== Releasing lock... [2025-02-15 04:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:07:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:08:05 [end_date_ymd] => 2025-02-15 04:08:05 [RateCDR] => 1 ) [2025-02-15 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:08:05' and `end` < '2025-02-15 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:08:18] Production.INFO: count ==288 [2025-02-15 04:08:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:08:05 - End Time 2025-02-15 04:08:05 [2025-02-15 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478528', 'tblTempUsageDetail_20' ) start [2025-02-15 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478528', 'tblTempUsageDetail_20' ) end [2025-02-15 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478528', 'tblTempVendorCDR_20' ) start [2025-02-15 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478528', 'tblTempVendorCDR_20' ) end [2025-02-15 04:08:18] Production.INFO: ProcessCDR(1,14478528,1,1,2) [2025-02-15 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478528', 'tblTempUsageDetail_20' ) start [2025-02-15 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478528', 'tblTempUsageDetail_20' ) end [2025-02-15 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:08:21] Production.INFO: ==2253== Releasing lock... [2025-02-15 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:09:06 [end_date_ymd] => 2025-02-15 04:09:06 [RateCDR] => 1 ) [2025-02-15 04:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:09:06' and `end` < '2025-02-15 04:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:09:20] Production.INFO: count ==286 [2025-02-15 04:09:20] Production.ERROR: pbx CDR StartTime 2025-02-15 01:09:06 - End Time 2025-02-15 04:09:06 [2025-02-15 04:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478533', 'tblTempUsageDetail_20' ) start [2025-02-15 04:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478533', 'tblTempUsageDetail_20' ) end [2025-02-15 04:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478533', 'tblTempVendorCDR_20' ) start [2025-02-15 04:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478533', 'tblTempVendorCDR_20' ) end [2025-02-15 04:09:20] Production.INFO: ProcessCDR(1,14478533,1,1,2) [2025-02-15 04:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478533', 'tblTempUsageDetail_20' ) start [2025-02-15 04:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478533', 'tblTempUsageDetail_20' ) end [2025-02-15 04:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:09:23] Production.INFO: ==2389== Releasing lock... [2025-02-15 04:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:09:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:10:06 [end_date_ymd] => 2025-02-15 04:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 01:10:06' and `end` < '2025-02-15 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-15 04:10:19] Production.INFO: count ==278 [2025-02-15 04:10:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:10:06 - End Time 2025-02-15 04:10:06 [2025-02-15 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478539', 'tblTempUsageDetail_20' ) start [2025-02-15 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478539', 'tblTempUsageDetail_20' ) end [2025-02-15 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478539', 'tblTempVendorCDR_20' ) start [2025-02-15 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478539', 'tblTempVendorCDR_20' ) end [2025-02-15 04:10:19] Production.INFO: ProcessCDR(1,14478539,1,1,2) [2025-02-15 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478539', 'tblTempUsageDetail_20' ) start [2025-02-15 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478539', 'tblTempUsageDetail_20' ) end [2025-02-15 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:10:22] Production.INFO: ==2484== Releasing lock... [2025-02-15 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:11:05 [end_date_ymd] => 2025-02-15 04:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:11:05' and `end` < '2025-02-15 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-15 04:11:19] Production.INFO: count ==257 [2025-02-15 04:11:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:11:05 - End Time 2025-02-15 04:11:05 [2025-02-15 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478544', 'tblTempUsageDetail_20' ) start [2025-02-15 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478544', 'tblTempUsageDetail_20' ) end [2025-02-15 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478544', 'tblTempVendorCDR_20' ) start [2025-02-15 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478544', 'tblTempVendorCDR_20' ) end [2025-02-15 04:11:19] Production.INFO: ProcessCDR(1,14478544,1,1,2) [2025-02-15 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478544', 'tblTempUsageDetail_20' ) start [2025-02-15 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478544', 'tblTempUsageDetail_20' ) end [2025-02-15 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:11:22] Production.INFO: ==2563== Releasing lock... [2025-02-15 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:12:05 [end_date_ymd] => 2025-02-15 04:12:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:12:05' and `end` < '2025-02-15 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-15 04:12:18] Production.INFO: count ==257 [2025-02-15 04:12:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:12:05 - End Time 2025-02-15 04:12:05 [2025-02-15 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478549', 'tblTempUsageDetail_20' ) start [2025-02-15 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478549', 'tblTempUsageDetail_20' ) end [2025-02-15 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478549', 'tblTempVendorCDR_20' ) start [2025-02-15 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478549', 'tblTempVendorCDR_20' ) end [2025-02-15 04:12:18] Production.INFO: ProcessCDR(1,14478549,1,1,2) [2025-02-15 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478549', 'tblTempUsageDetail_20' ) start [2025-02-15 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478549', 'tblTempUsageDetail_20' ) end [2025-02-15 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:12:21] Production.INFO: ==2638== Releasing lock... [2025-02-15 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:13:05 [end_date_ymd] => 2025-02-15 04:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:13:05' and `end` < '2025-02-15 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-15 04:13:18] Production.INFO: count ==258 [2025-02-15 04:13:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:13:05 - End Time 2025-02-15 04:13:05 [2025-02-15 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478554', 'tblTempUsageDetail_20' ) start [2025-02-15 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478554', 'tblTempUsageDetail_20' ) end [2025-02-15 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478554', 'tblTempVendorCDR_20' ) start [2025-02-15 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478554', 'tblTempVendorCDR_20' ) end [2025-02-15 04:13:18] Production.INFO: ProcessCDR(1,14478554,1,1,2) [2025-02-15 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478554', 'tblTempUsageDetail_20' ) start [2025-02-15 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478554', 'tblTempUsageDetail_20' ) end [2025-02-15 04:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:13:23] Production.INFO: ==2715== Releasing lock... [2025-02-15 04:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:13:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:14:04 [end_date_ymd] => 2025-02-15 04:14:04 [RateCDR] => 1 ) [2025-02-15 04: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-15 01:14:04' and `end` < '2025-02-15 04: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-15 04:14:18] Production.INFO: count ==256 [2025-02-15 04:14:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:14:04 - End Time 2025-02-15 04:14:04 [2025-02-15 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478559', 'tblTempUsageDetail_20' ) start [2025-02-15 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478559', 'tblTempUsageDetail_20' ) end [2025-02-15 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478559', 'tblTempVendorCDR_20' ) start [2025-02-15 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478559', 'tblTempVendorCDR_20' ) end [2025-02-15 04:14:18] Production.INFO: ProcessCDR(1,14478559,1,1,2) [2025-02-15 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478559', 'tblTempUsageDetail_20' ) start [2025-02-15 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478559', 'tblTempUsageDetail_20' ) end [2025-02-15 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:14:21] Production.INFO: ==2793== Releasing lock... [2025-02-15 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:15:05 [end_date_ymd] => 2025-02-15 04:15:05 [RateCDR] => 1 ) [2025-02-15 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:15:05' and `end` < '2025-02-15 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:15:18] Production.INFO: count ==256 [2025-02-15 04:15:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:15:05 - End Time 2025-02-15 04:15:05 [2025-02-15 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478564', 'tblTempUsageDetail_20' ) start [2025-02-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478564', 'tblTempUsageDetail_20' ) end [2025-02-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478564', 'tblTempVendorCDR_20' ) start [2025-02-15 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478564', 'tblTempVendorCDR_20' ) end [2025-02-15 04:15:18] Production.INFO: ProcessCDR(1,14478564,1,1,2) [2025-02-15 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478564', 'tblTempUsageDetail_20' ) start [2025-02-15 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478564', 'tblTempUsageDetail_20' ) end [2025-02-15 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:15:21] Production.INFO: ==2869== Releasing lock... [2025-02-15 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:16:05 [end_date_ymd] => 2025-02-15 04:16:05 [RateCDR] => 1 ) [2025-02-15 04:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:16:05' and `end` < '2025-02-15 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-15 04:16:19] Production.INFO: count ==257 [2025-02-15 04:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:16:05 - End Time 2025-02-15 04:16:05 [2025-02-15 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478569', 'tblTempUsageDetail_20' ) start [2025-02-15 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478569', 'tblTempUsageDetail_20' ) end [2025-02-15 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478569', 'tblTempVendorCDR_20' ) start [2025-02-15 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478569', 'tblTempVendorCDR_20' ) end [2025-02-15 04:16:19] Production.INFO: ProcessCDR(1,14478569,1,1,2) [2025-02-15 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478569', 'tblTempUsageDetail_20' ) start [2025-02-15 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478569', 'tblTempUsageDetail_20' ) end [2025-02-15 04:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:16:23] Production.INFO: ==2949== Releasing lock... [2025-02-15 04:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:16:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:17:05 [end_date_ymd] => 2025-02-15 04:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:17:05' and `end` < '2025-02-15 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-15 04:17:18] Production.INFO: count ==257 [2025-02-15 04:17:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:17:05 - End Time 2025-02-15 04:17:05 [2025-02-15 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478574', 'tblTempUsageDetail_20' ) start [2025-02-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478574', 'tblTempUsageDetail_20' ) end [2025-02-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478574', 'tblTempVendorCDR_20' ) start [2025-02-15 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478574', 'tblTempVendorCDR_20' ) end [2025-02-15 04:17:18] Production.INFO: ProcessCDR(1,14478574,1,1,2) [2025-02-15 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478574', 'tblTempUsageDetail_20' ) start [2025-02-15 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478574', 'tblTempUsageDetail_20' ) end [2025-02-15 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:17:21] Production.INFO: ==3024== Releasing lock... [2025-02-15 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:18:05 [end_date_ymd] => 2025-02-15 04:18:05 [RateCDR] => 1 ) [2025-02-15 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:18:05' and `end` < '2025-02-15 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:18:18] Production.INFO: count ==257 [2025-02-15 04:18:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:18:05 - End Time 2025-02-15 04:18:05 [2025-02-15 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478578', 'tblTempUsageDetail_20' ) start [2025-02-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478578', 'tblTempUsageDetail_20' ) end [2025-02-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478578', 'tblTempVendorCDR_20' ) start [2025-02-15 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478578', 'tblTempVendorCDR_20' ) end [2025-02-15 04:18:18] Production.INFO: ProcessCDR(1,14478578,1,1,2) [2025-02-15 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478578', 'tblTempUsageDetail_20' ) start [2025-02-15 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478578', 'tblTempUsageDetail_20' ) end [2025-02-15 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:18:21] Production.INFO: ==3112== Releasing lock... [2025-02-15 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:19:05 [end_date_ymd] => 2025-02-15 04:19:05 [RateCDR] => 1 ) [2025-02-15 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:19:05' and `end` < '2025-02-15 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:19:18] Production.INFO: count ==260 [2025-02-15 04:19:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:19:05 - End Time 2025-02-15 04:19:05 [2025-02-15 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478584', 'tblTempUsageDetail_20' ) start [2025-02-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478584', 'tblTempUsageDetail_20' ) end [2025-02-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478584', 'tblTempVendorCDR_20' ) start [2025-02-15 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478584', 'tblTempVendorCDR_20' ) end [2025-02-15 04:19:18] Production.INFO: ProcessCDR(1,14478584,1,1,2) [2025-02-15 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478584', 'tblTempUsageDetail_20' ) start [2025-02-15 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478584', 'tblTempUsageDetail_20' ) end [2025-02-15 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:19:21] Production.INFO: ==3188== Releasing lock... [2025-02-15 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:20:06 [end_date_ymd] => 2025-02-15 04:20:06 [RateCDR] => 1 ) [2025-02-15 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:20:06' and `end` < '2025-02-15 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:20:19] Production.INFO: count ==256 [2025-02-15 04:20:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:20:06 - End Time 2025-02-15 04:20:06 [2025-02-15 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478590', 'tblTempUsageDetail_20' ) start [2025-02-15 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478590', 'tblTempUsageDetail_20' ) end [2025-02-15 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478590', 'tblTempVendorCDR_20' ) start [2025-02-15 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478590', 'tblTempVendorCDR_20' ) end [2025-02-15 04:20:20] Production.INFO: ProcessCDR(1,14478590,1,1,2) [2025-02-15 04:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478590', 'tblTempUsageDetail_20' ) start [2025-02-15 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478590', 'tblTempUsageDetail_20' ) end [2025-02-15 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:20:23] Production.INFO: ==3274== Releasing lock... [2025-02-15 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:20:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:21:05 [end_date_ymd] => 2025-02-15 04:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:21:05' and `end` < '2025-02-15 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-15 04:21:18] Production.INFO: count ==242 [2025-02-15 04:21:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:21:05 - End Time 2025-02-15 04:21:05 [2025-02-15 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478595', 'tblTempUsageDetail_20' ) start [2025-02-15 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478595', 'tblTempUsageDetail_20' ) end [2025-02-15 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478595', 'tblTempVendorCDR_20' ) start [2025-02-15 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478595', 'tblTempVendorCDR_20' ) end [2025-02-15 04:21:18] Production.INFO: ProcessCDR(1,14478595,1,1,2) [2025-02-15 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478595', 'tblTempUsageDetail_20' ) start [2025-02-15 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478595', 'tblTempUsageDetail_20' ) end [2025-02-15 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:21:21] Production.INFO: ==3353== Releasing lock... [2025-02-15 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:21:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:22:05 [end_date_ymd] => 2025-02-15 04:22:05 [RateCDR] => 1 ) [2025-02-15 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:22:05' and `end` < '2025-02-15 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:22:18] Production.INFO: count ==242 [2025-02-15 04:22:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:22:05 - End Time 2025-02-15 04:22:05 [2025-02-15 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478600', 'tblTempUsageDetail_20' ) start [2025-02-15 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478600', 'tblTempUsageDetail_20' ) end [2025-02-15 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478600', 'tblTempVendorCDR_20' ) start [2025-02-15 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478600', 'tblTempVendorCDR_20' ) end [2025-02-15 04:22:19] Production.INFO: ProcessCDR(1,14478600,1,1,2) [2025-02-15 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478600', 'tblTempUsageDetail_20' ) start [2025-02-15 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478600', 'tblTempUsageDetail_20' ) end [2025-02-15 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:22:22] Production.INFO: ==3432== Releasing lock... [2025-02-15 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:23:04 [end_date_ymd] => 2025-02-15 04:23:04 [RateCDR] => 1 ) [2025-02-15 04: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-15 01:23:04' and `end` < '2025-02-15 04: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-15 04:23:17] Production.INFO: count ==242 [2025-02-15 04:23:17] Production.ERROR: pbx CDR StartTime 2025-02-15 01:23:04 - End Time 2025-02-15 04:23:04 [2025-02-15 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478605', 'tblTempUsageDetail_20' ) start [2025-02-15 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478605', 'tblTempUsageDetail_20' ) end [2025-02-15 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478605', 'tblTempVendorCDR_20' ) start [2025-02-15 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478605', 'tblTempVendorCDR_20' ) end [2025-02-15 04:23:18] Production.INFO: ProcessCDR(1,14478605,1,1,2) [2025-02-15 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478605', 'tblTempUsageDetail_20' ) start [2025-02-15 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478605', 'tblTempUsageDetail_20' ) end [2025-02-15 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:23:21] Production.INFO: ==3506== Releasing lock... [2025-02-15 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:24:05 [end_date_ymd] => 2025-02-15 04:24:05 [RateCDR] => 1 ) [2025-02-15 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:24:05' and `end` < '2025-02-15 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:24:19] Production.INFO: count ==242 [2025-02-15 04:24:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:24:05 - End Time 2025-02-15 04:24:05 [2025-02-15 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478610', 'tblTempUsageDetail_20' ) start [2025-02-15 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478610', 'tblTempUsageDetail_20' ) end [2025-02-15 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478610', 'tblTempVendorCDR_20' ) start [2025-02-15 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478610', 'tblTempVendorCDR_20' ) end [2025-02-15 04:24:19] Production.INFO: ProcessCDR(1,14478610,1,1,2) [2025-02-15 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478610', 'tblTempUsageDetail_20' ) start [2025-02-15 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478610', 'tblTempUsageDetail_20' ) end [2025-02-15 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:24:22] Production.INFO: ==3621== Releasing lock... [2025-02-15 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:25:04 [end_date_ymd] => 2025-02-15 04:25:04 [RateCDR] => 1 ) [2025-02-15 04: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-15 01:25:04' and `end` < '2025-02-15 04: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-15 04:25:18] Production.INFO: count ==242 [2025-02-15 04:25:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:25:04 - End Time 2025-02-15 04:25:04 [2025-02-15 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478615', 'tblTempUsageDetail_20' ) start [2025-02-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478615', 'tblTempUsageDetail_20' ) end [2025-02-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478615', 'tblTempVendorCDR_20' ) start [2025-02-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478615', 'tblTempVendorCDR_20' ) end [2025-02-15 04:25:18] Production.INFO: ProcessCDR(1,14478615,1,1,2) [2025-02-15 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478615', 'tblTempUsageDetail_20' ) start [2025-02-15 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478615', 'tblTempUsageDetail_20' ) end [2025-02-15 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:25:21] Production.INFO: ==3698== Releasing lock... [2025-02-15 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:26:05 [end_date_ymd] => 2025-02-15 04:26:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:26:05' and `end` < '2025-02-15 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-15 04:26:19] Production.INFO: count ==242 [2025-02-15 04:26:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:26:05 - End Time 2025-02-15 04:26:05 [2025-02-15 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478620', 'tblTempUsageDetail_20' ) start [2025-02-15 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478620', 'tblTempUsageDetail_20' ) end [2025-02-15 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478620', 'tblTempVendorCDR_20' ) start [2025-02-15 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478620', 'tblTempVendorCDR_20' ) end [2025-02-15 04:26:19] Production.INFO: ProcessCDR(1,14478620,1,1,2) [2025-02-15 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478620', 'tblTempUsageDetail_20' ) start [2025-02-15 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478620', 'tblTempUsageDetail_20' ) end [2025-02-15 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:26:22] Production.INFO: ==3772== Releasing lock... [2025-02-15 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:27:05 [end_date_ymd] => 2025-02-15 04:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:27:05' and `end` < '2025-02-15 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-15 04:27:18] Production.INFO: count ==242 [2025-02-15 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:27:05 - End Time 2025-02-15 04:27:05 [2025-02-15 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478625', 'tblTempUsageDetail_20' ) start [2025-02-15 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478625', 'tblTempUsageDetail_20' ) end [2025-02-15 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478625', 'tblTempVendorCDR_20' ) start [2025-02-15 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478625', 'tblTempVendorCDR_20' ) end [2025-02-15 04:27:18] Production.INFO: ProcessCDR(1,14478625,1,1,2) [2025-02-15 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478625', 'tblTempUsageDetail_20' ) start [2025-02-15 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478625', 'tblTempUsageDetail_20' ) end [2025-02-15 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:27:21] Production.INFO: ==3848== Releasing lock... [2025-02-15 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:28:05 [end_date_ymd] => 2025-02-15 04:28:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:28:05' and `end` < '2025-02-15 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-15 04:28:18] Production.INFO: count ==242 [2025-02-15 04:28:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:28:05 - End Time 2025-02-15 04:28:05 [2025-02-15 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478630', 'tblTempUsageDetail_20' ) start [2025-02-15 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478630', 'tblTempUsageDetail_20' ) end [2025-02-15 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478630', 'tblTempVendorCDR_20' ) start [2025-02-15 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478630', 'tblTempVendorCDR_20' ) end [2025-02-15 04:28:18] Production.INFO: ProcessCDR(1,14478630,1,1,2) [2025-02-15 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478630', 'tblTempUsageDetail_20' ) start [2025-02-15 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478630', 'tblTempUsageDetail_20' ) end [2025-02-15 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:28:21] Production.INFO: ==3920== Releasing lock... [2025-02-15 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:29:05 [end_date_ymd] => 2025-02-15 04:29:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:29:05' and `end` < '2025-02-15 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-15 04:29:18] Production.INFO: count ==242 [2025-02-15 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:29:05 - End Time 2025-02-15 04:29:05 [2025-02-15 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478635', 'tblTempUsageDetail_20' ) start [2025-02-15 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478635', 'tblTempUsageDetail_20' ) end [2025-02-15 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478635', 'tblTempVendorCDR_20' ) start [2025-02-15 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478635', 'tblTempVendorCDR_20' ) end [2025-02-15 04:29:18] Production.INFO: ProcessCDR(1,14478635,1,1,2) [2025-02-15 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478635', 'tblTempUsageDetail_20' ) start [2025-02-15 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478635', 'tblTempUsageDetail_20' ) end [2025-02-15 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:29:21] Production.INFO: ==4001== Releasing lock... [2025-02-15 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:30:06 [end_date_ymd] => 2025-02-15 04:30:06 [RateCDR] => 1 ) [2025-02-15 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-15 01:30:06' and `end` < '2025-02-15 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-15 04:30:19] Production.INFO: count ==240 [2025-02-15 04:30:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:30:06 - End Time 2025-02-15 04:30:06 [2025-02-15 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478641', 'tblTempUsageDetail_20' ) start [2025-02-15 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478641', 'tblTempUsageDetail_20' ) end [2025-02-15 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478641', 'tblTempVendorCDR_20' ) start [2025-02-15 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478641', 'tblTempVendorCDR_20' ) end [2025-02-15 04:30:19] Production.INFO: ProcessCDR(1,14478641,1,1,2) [2025-02-15 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478641', 'tblTempUsageDetail_20' ) start [2025-02-15 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478641', 'tblTempUsageDetail_20' ) end [2025-02-15 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:30:22] Production.INFO: ==4075== Releasing lock... [2025-02-15 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:31:04 [end_date_ymd] => 2025-02-15 04:31:04 [RateCDR] => 1 ) [2025-02-15 04: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-15 01:31:04' and `end` < '2025-02-15 04: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-15 04:31:17] Production.INFO: count ==237 [2025-02-15 04:31:17] Production.ERROR: pbx CDR StartTime 2025-02-15 01:31:04 - End Time 2025-02-15 04:31:04 [2025-02-15 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478647', 'tblTempUsageDetail_20' ) start [2025-02-15 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478647', 'tblTempUsageDetail_20' ) end [2025-02-15 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478647', 'tblTempVendorCDR_20' ) start [2025-02-15 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478647', 'tblTempVendorCDR_20' ) end [2025-02-15 04:31:17] Production.INFO: ProcessCDR(1,14478647,1,1,2) [2025-02-15 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478647', 'tblTempUsageDetail_20' ) start [2025-02-15 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478647', 'tblTempUsageDetail_20' ) end [2025-02-15 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:31:21] Production.INFO: ==4155== Releasing lock... [2025-02-15 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:32:05 [end_date_ymd] => 2025-02-15 04:32:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:32:05' and `end` < '2025-02-15 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-15 04:32:18] Production.INFO: count ==236 [2025-02-15 04:32:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:32:05 - End Time 2025-02-15 04:32:05 [2025-02-15 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478652', 'tblTempUsageDetail_20' ) start [2025-02-15 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478652', 'tblTempUsageDetail_20' ) end [2025-02-15 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478652', 'tblTempVendorCDR_20' ) start [2025-02-15 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478652', 'tblTempVendorCDR_20' ) end [2025-02-15 04:32:18] Production.INFO: ProcessCDR(1,14478652,1,1,2) [2025-02-15 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478652', 'tblTempUsageDetail_20' ) start [2025-02-15 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478652', 'tblTempUsageDetail_20' ) end [2025-02-15 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:32:22] Production.INFO: ==4344== Releasing lock... [2025-02-15 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:33:05 [end_date_ymd] => 2025-02-15 04:33:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:33:05' and `end` < '2025-02-15 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-15 04:33:19] Production.INFO: count ==232 [2025-02-15 04:33:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:33:05 - End Time 2025-02-15 04:33:05 [2025-02-15 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478657', 'tblTempUsageDetail_20' ) start [2025-02-15 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478657', 'tblTempUsageDetail_20' ) end [2025-02-15 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478657', 'tblTempVendorCDR_20' ) start [2025-02-15 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478657', 'tblTempVendorCDR_20' ) end [2025-02-15 04:33:19] Production.INFO: ProcessCDR(1,14478657,1,1,2) [2025-02-15 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478657', 'tblTempUsageDetail_20' ) start [2025-02-15 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478657', 'tblTempUsageDetail_20' ) end [2025-02-15 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:33:22] Production.INFO: ==4416== Releasing lock... [2025-02-15 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:34:05 [end_date_ymd] => 2025-02-15 04:34:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:34:05' and `end` < '2025-02-15 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-15 04:34:18] Production.INFO: count ==228 [2025-02-15 04:34:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:34:05 - End Time 2025-02-15 04:34:05 [2025-02-15 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478662', 'tblTempUsageDetail_20' ) start [2025-02-15 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478662', 'tblTempUsageDetail_20' ) end [2025-02-15 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478662', 'tblTempVendorCDR_20' ) start [2025-02-15 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478662', 'tblTempVendorCDR_20' ) end [2025-02-15 04:34:18] Production.INFO: ProcessCDR(1,14478662,1,1,2) [2025-02-15 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478662', 'tblTempUsageDetail_20' ) start [2025-02-15 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478662', 'tblTempUsageDetail_20' ) end [2025-02-15 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:34:21] Production.INFO: ==4492== Releasing lock... [2025-02-15 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:35:05 [end_date_ymd] => 2025-02-15 04:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:35:05' and `end` < '2025-02-15 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-15 04:35:18] Production.INFO: count ==226 [2025-02-15 04:35:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:35:05 - End Time 2025-02-15 04:35:05 [2025-02-15 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478667', 'tblTempUsageDetail_20' ) start [2025-02-15 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478667', 'tblTempUsageDetail_20' ) end [2025-02-15 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478667', 'tblTempVendorCDR_20' ) start [2025-02-15 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478667', 'tblTempVendorCDR_20' ) end [2025-02-15 04:35:18] Production.INFO: ProcessCDR(1,14478667,1,1,2) [2025-02-15 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478667', 'tblTempUsageDetail_20' ) start [2025-02-15 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478667', 'tblTempUsageDetail_20' ) end [2025-02-15 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:35:22] Production.INFO: ==4569== Releasing lock... [2025-02-15 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:35:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:36:05 [end_date_ymd] => 2025-02-15 04:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:36:05' and `end` < '2025-02-15 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-15 04:36:19] Production.INFO: count ==226 [2025-02-15 04:36:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:36:05 - End Time 2025-02-15 04:36:05 [2025-02-15 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478672', 'tblTempUsageDetail_20' ) start [2025-02-15 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478672', 'tblTempUsageDetail_20' ) end [2025-02-15 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478672', 'tblTempVendorCDR_20' ) start [2025-02-15 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478672', 'tblTempVendorCDR_20' ) end [2025-02-15 04:36:19] Production.INFO: ProcessCDR(1,14478672,1,1,2) [2025-02-15 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478672', 'tblTempUsageDetail_20' ) start [2025-02-15 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478672', 'tblTempUsageDetail_20' ) end [2025-02-15 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:36:22] Production.INFO: ==4651== Releasing lock... [2025-02-15 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:37:05 [end_date_ymd] => 2025-02-15 04:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:37:05' and `end` < '2025-02-15 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:37:19] Production.INFO: count ==224 [2025-02-15 04:37:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:37:05 - End Time 2025-02-15 04:37:05 [2025-02-15 04:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478677', 'tblTempUsageDetail_20' ) start [2025-02-15 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478677', 'tblTempUsageDetail_20' ) end [2025-02-15 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478677', 'tblTempVendorCDR_20' ) start [2025-02-15 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478677', 'tblTempVendorCDR_20' ) end [2025-02-15 04:37:19] Production.INFO: ProcessCDR(1,14478677,1,1,2) [2025-02-15 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478677', 'tblTempUsageDetail_20' ) start [2025-02-15 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478677', 'tblTempUsageDetail_20' ) end [2025-02-15 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:37:22] Production.INFO: ==4725== Releasing lock... [2025-02-15 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:38:05 [end_date_ymd] => 2025-02-15 04:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:38:05' and `end` < '2025-02-15 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-15 04:38:19] Production.INFO: count ==224 [2025-02-15 04:38:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:38:05 - End Time 2025-02-15 04:38:05 [2025-02-15 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478682', 'tblTempUsageDetail_20' ) start [2025-02-15 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478682', 'tblTempUsageDetail_20' ) end [2025-02-15 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478682', 'tblTempVendorCDR_20' ) start [2025-02-15 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478682', 'tblTempVendorCDR_20' ) end [2025-02-15 04:38:19] Production.INFO: ProcessCDR(1,14478682,1,1,2) [2025-02-15 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478682', 'tblTempUsageDetail_20' ) start [2025-02-15 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478682', 'tblTempUsageDetail_20' ) end [2025-02-15 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:38:22] Production.INFO: ==4799== Releasing lock... [2025-02-15 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:38:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:39:06 [end_date_ymd] => 2025-02-15 04:39:06 [RateCDR] => 1 ) [2025-02-15 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-15 01:39:06' and `end` < '2025-02-15 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-15 04:39:19] Production.INFO: count ==224 [2025-02-15 04:39:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:39:06 - End Time 2025-02-15 04:39:06 [2025-02-15 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478687', 'tblTempUsageDetail_20' ) start [2025-02-15 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478687', 'tblTempUsageDetail_20' ) end [2025-02-15 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478687', 'tblTempVendorCDR_20' ) start [2025-02-15 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478687', 'tblTempVendorCDR_20' ) end [2025-02-15 04:39:19] Production.INFO: ProcessCDR(1,14478687,1,1,2) [2025-02-15 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478687', 'tblTempUsageDetail_20' ) start [2025-02-15 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478687', 'tblTempUsageDetail_20' ) end [2025-02-15 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:39:22] Production.INFO: ==4872== Releasing lock... [2025-02-15 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:40:05 [end_date_ymd] => 2025-02-15 04:40:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:40:05' and `end` < '2025-02-15 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-15 04:40:18] Production.INFO: count ==220 [2025-02-15 04:40:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:40:05 - End Time 2025-02-15 04:40:05 [2025-02-15 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478692', 'tblTempUsageDetail_20' ) start [2025-02-15 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478692', 'tblTempUsageDetail_20' ) end [2025-02-15 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478692', 'tblTempVendorCDR_20' ) start [2025-02-15 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478692', 'tblTempVendorCDR_20' ) end [2025-02-15 04:40:18] Production.INFO: ProcessCDR(1,14478692,1,1,2) [2025-02-15 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478692', 'tblTempUsageDetail_20' ) start [2025-02-15 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478692', 'tblTempUsageDetail_20' ) end [2025-02-15 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:40:22] Production.INFO: ==4984== Releasing lock... [2025-02-15 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:41:05 [end_date_ymd] => 2025-02-15 04:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:41:05' and `end` < '2025-02-15 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-15 04:41:19] Production.INFO: count ==204 [2025-02-15 04:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:41:05 - End Time 2025-02-15 04:41:05 [2025-02-15 04:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478698', 'tblTempUsageDetail_20' ) start [2025-02-15 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478698', 'tblTempUsageDetail_20' ) end [2025-02-15 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478698', 'tblTempVendorCDR_20' ) start [2025-02-15 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478698', 'tblTempVendorCDR_20' ) end [2025-02-15 04:41:19] Production.INFO: ProcessCDR(1,14478698,1,1,2) [2025-02-15 04:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478698', 'tblTempUsageDetail_20' ) start [2025-02-15 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478698', 'tblTempUsageDetail_20' ) end [2025-02-15 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:41:22] Production.INFO: ==5061== Releasing lock... [2025-02-15 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:41:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:42:05 [end_date_ymd] => 2025-02-15 04:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:42:05' and `end` < '2025-02-15 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-15 04:42:20] Production.INFO: count ==204 [2025-02-15 04:42:20] Production.ERROR: pbx CDR StartTime 2025-02-15 01:42:05 - End Time 2025-02-15 04:42:05 [2025-02-15 04:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478703', 'tblTempUsageDetail_20' ) start [2025-02-15 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478703', 'tblTempUsageDetail_20' ) end [2025-02-15 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478703', 'tblTempVendorCDR_20' ) start [2025-02-15 04:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478703', 'tblTempVendorCDR_20' ) end [2025-02-15 04:42:20] Production.INFO: ProcessCDR(1,14478703,1,1,2) [2025-02-15 04:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478703', 'tblTempUsageDetail_20' ) start [2025-02-15 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478703', 'tblTempUsageDetail_20' ) end [2025-02-15 04:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:42:23] Production.INFO: ==5136== Releasing lock... [2025-02-15 04:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:42:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:43:05 [end_date_ymd] => 2025-02-15 04:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:43:05' and `end` < '2025-02-15 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-15 04:43:18] Production.INFO: count ==204 [2025-02-15 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:43:05 - End Time 2025-02-15 04:43:05 [2025-02-15 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478708', 'tblTempUsageDetail_20' ) start [2025-02-15 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478708', 'tblTempUsageDetail_20' ) end [2025-02-15 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478708', 'tblTempVendorCDR_20' ) start [2025-02-15 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478708', 'tblTempVendorCDR_20' ) end [2025-02-15 04:43:18] Production.INFO: ProcessCDR(1,14478708,1,1,2) [2025-02-15 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478708', 'tblTempUsageDetail_20' ) start [2025-02-15 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478708', 'tblTempUsageDetail_20' ) end [2025-02-15 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:43:21] Production.INFO: ==5208== Releasing lock... [2025-02-15 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:43:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:44:04 [end_date_ymd] => 2025-02-15 04:44:04 [RateCDR] => 1 ) [2025-02-15 04: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-15 01:44:04' and `end` < '2025-02-15 04: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-15 04:44:18] Production.INFO: count ==204 [2025-02-15 04:44:18] Production.ERROR: pbx CDR StartTime 2025-02-15 01:44:04 - End Time 2025-02-15 04:44:04 [2025-02-15 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478713', 'tblTempUsageDetail_20' ) start [2025-02-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478713', 'tblTempUsageDetail_20' ) end [2025-02-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478713', 'tblTempVendorCDR_20' ) start [2025-02-15 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478713', 'tblTempVendorCDR_20' ) end [2025-02-15 04:44:18] Production.INFO: ProcessCDR(1,14478713,1,1,2) [2025-02-15 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478713', 'tblTempUsageDetail_20' ) start [2025-02-15 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478713', 'tblTempUsageDetail_20' ) end [2025-02-15 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:44:21] Production.INFO: ==5280== Releasing lock... [2025-02-15 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:44:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:45:05 [end_date_ymd] => 2025-02-15 04:45:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:45:05' and `end` < '2025-02-15 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-15 04:45:19] Production.INFO: count ==204 [2025-02-15 04:45:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:45:05 - End Time 2025-02-15 04:45:05 [2025-02-15 04:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478718', 'tblTempUsageDetail_20' ) start [2025-02-15 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478718', 'tblTempUsageDetail_20' ) end [2025-02-15 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478718', 'tblTempVendorCDR_20' ) start [2025-02-15 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478718', 'tblTempVendorCDR_20' ) end [2025-02-15 04:45:19] Production.INFO: ProcessCDR(1,14478718,1,1,2) [2025-02-15 04:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478718', 'tblTempUsageDetail_20' ) start [2025-02-15 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478718', 'tblTempUsageDetail_20' ) end [2025-02-15 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:45:22] Production.INFO: ==5351== Releasing lock... [2025-02-15 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:45:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:46:05 [end_date_ymd] => 2025-02-15 04:46:05 [RateCDR] => 1 ) [2025-02-15 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:46:05' and `end` < '2025-02-15 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:46:34] Production.INFO: count ==204 [2025-02-15 04:46:34] Production.ERROR: pbx CDR StartTime 2025-02-15 01:46:05 - End Time 2025-02-15 04:46:05 [2025-02-15 04:46:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478723', 'tblTempUsageDetail_20' ) start [2025-02-15 04:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478723', 'tblTempUsageDetail_20' ) end [2025-02-15 04:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478723', 'tblTempVendorCDR_20' ) start [2025-02-15 04:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478723', 'tblTempVendorCDR_20' ) end [2025-02-15 04:46:34] Production.INFO: ProcessCDR(1,14478723,1,1,2) [2025-02-15 04:46:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:46:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:46:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:46:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:46:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478723', 'tblTempUsageDetail_20' ) start [2025-02-15 04:46:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478723', 'tblTempUsageDetail_20' ) end [2025-02-15 04:46:37] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:46:37] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:46:38] Production.INFO: ==5421== Releasing lock... [2025-02-15 04:46:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:46:38] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:47:06 [end_date_ymd] => 2025-02-15 04:47:06 [RateCDR] => 1 ) [2025-02-15 04: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-15 01:47:06' and `end` < '2025-02-15 04: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-15 04:47:21] Production.INFO: count ==204 [2025-02-15 04:47:21] Production.ERROR: pbx CDR StartTime 2025-02-15 01:47:06 - End Time 2025-02-15 04:47:06 [2025-02-15 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478728', 'tblTempUsageDetail_20' ) start [2025-02-15 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478728', 'tblTempUsageDetail_20' ) end [2025-02-15 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478728', 'tblTempVendorCDR_20' ) start [2025-02-15 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478728', 'tblTempVendorCDR_20' ) end [2025-02-15 04:47:21] Production.INFO: ProcessCDR(1,14478728,1,1,2) [2025-02-15 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478728', 'tblTempUsageDetail_20' ) start [2025-02-15 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478728', 'tblTempUsageDetail_20' ) end [2025-02-15 04:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:47:24] Production.INFO: ==5495== Releasing lock... [2025-02-15 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:47:24] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:48:04 [end_date_ymd] => 2025-02-15 04:48:04 [RateCDR] => 1 ) [2025-02-15 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-15 01:48:04' and `end` < '2025-02-15 04: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-15 04:48:20] Production.INFO: count ==204 [2025-02-15 04:48:20] Production.ERROR: pbx CDR StartTime 2025-02-15 01:48:04 - End Time 2025-02-15 04:48:04 [2025-02-15 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478733', 'tblTempUsageDetail_20' ) start [2025-02-15 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478733', 'tblTempUsageDetail_20' ) end [2025-02-15 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478733', 'tblTempVendorCDR_20' ) start [2025-02-15 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478733', 'tblTempVendorCDR_20' ) end [2025-02-15 04:48:20] Production.INFO: ProcessCDR(1,14478733,1,1,2) [2025-02-15 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478733', 'tblTempUsageDetail_20' ) start [2025-02-15 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478733', 'tblTempUsageDetail_20' ) end [2025-02-15 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:48:23] Production.INFO: ==5569== Releasing lock... [2025-02-15 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:48:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:49:05 [end_date_ymd] => 2025-02-15 04:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:49:05' and `end` < '2025-02-15 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-15 04:49:22] Production.INFO: count ==204 [2025-02-15 04:49:22] Production.ERROR: pbx CDR StartTime 2025-02-15 01:49:05 - End Time 2025-02-15 04:49:05 [2025-02-15 04:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478738', 'tblTempUsageDetail_20' ) start [2025-02-15 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478738', 'tblTempUsageDetail_20' ) end [2025-02-15 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478738', 'tblTempVendorCDR_20' ) start [2025-02-15 04:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478738', 'tblTempVendorCDR_20' ) end [2025-02-15 04:49:22] Production.INFO: ProcessCDR(1,14478738,1,1,2) [2025-02-15 04:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478738', 'tblTempUsageDetail_20' ) start [2025-02-15 04:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478738', 'tblTempUsageDetail_20' ) end [2025-02-15 04:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:49:26] Production.INFO: ==5647== Releasing lock... [2025-02-15 04:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:49:26] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:50:06 [end_date_ymd] => 2025-02-15 04:50:06 [RateCDR] => 1 ) [2025-02-15 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-15 01:50:06' and `end` < '2025-02-15 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-15 04:50:22] Production.INFO: count ==194 [2025-02-15 04:50:22] Production.ERROR: pbx CDR StartTime 2025-02-15 01:50:06 - End Time 2025-02-15 04:50:06 [2025-02-15 04:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478744', 'tblTempUsageDetail_20' ) start [2025-02-15 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478744', 'tblTempUsageDetail_20' ) end [2025-02-15 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478744', 'tblTempVendorCDR_20' ) start [2025-02-15 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478744', 'tblTempVendorCDR_20' ) end [2025-02-15 04:50:22] Production.INFO: ProcessCDR(1,14478744,1,1,2) [2025-02-15 04:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478744', 'tblTempUsageDetail_20' ) start [2025-02-15 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478744', 'tblTempUsageDetail_20' ) end [2025-02-15 04:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:50:25] Production.INFO: ==5720== Releasing lock... [2025-02-15 04:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:50:25] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:51:05 [end_date_ymd] => 2025-02-15 04:51:05 [RateCDR] => 1 ) [2025-02-15 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:51:05' and `end` < '2025-02-15 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:51:20] Production.INFO: count ==192 [2025-02-15 04:51:20] Production.ERROR: pbx CDR StartTime 2025-02-15 01:51:05 - End Time 2025-02-15 04:51:05 [2025-02-15 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478749', 'tblTempUsageDetail_20' ) start [2025-02-15 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478749', 'tblTempUsageDetail_20' ) end [2025-02-15 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478749', 'tblTempVendorCDR_20' ) start [2025-02-15 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478749', 'tblTempVendorCDR_20' ) end [2025-02-15 04:51:20] Production.INFO: ProcessCDR(1,14478749,1,1,2) [2025-02-15 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478749', 'tblTempUsageDetail_20' ) start [2025-02-15 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478749', 'tblTempUsageDetail_20' ) end [2025-02-15 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:51:23] Production.INFO: ==5791== Releasing lock... [2025-02-15 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:51:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:52:05 [end_date_ymd] => 2025-02-15 04:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:52:05' and `end` < '2025-02-15 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-15 04:52:20] Production.INFO: count ==192 [2025-02-15 04:52:20] Production.ERROR: pbx CDR StartTime 2025-02-15 01:52:05 - End Time 2025-02-15 04:52:05 [2025-02-15 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478754', 'tblTempUsageDetail_20' ) start [2025-02-15 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478754', 'tblTempUsageDetail_20' ) end [2025-02-15 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478754', 'tblTempVendorCDR_20' ) start [2025-02-15 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478754', 'tblTempVendorCDR_20' ) end [2025-02-15 04:52:20] Production.INFO: ProcessCDR(1,14478754,1,1,2) [2025-02-15 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478754', 'tblTempUsageDetail_20' ) start [2025-02-15 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478754', 'tblTempUsageDetail_20' ) end [2025-02-15 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:52:23] Production.INFO: ==5860== Releasing lock... [2025-02-15 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:52:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:53:05 [end_date_ymd] => 2025-02-15 04:53:05 [RateCDR] => 1 ) [2025-02-15 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:53:05' and `end` < '2025-02-15 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:53:20] Production.INFO: count ==190 [2025-02-15 04:53:20] Production.ERROR: pbx CDR StartTime 2025-02-15 01:53:05 - End Time 2025-02-15 04:53:05 [2025-02-15 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478759', 'tblTempUsageDetail_20' ) start [2025-02-15 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478759', 'tblTempUsageDetail_20' ) end [2025-02-15 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478759', 'tblTempVendorCDR_20' ) start [2025-02-15 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478759', 'tblTempVendorCDR_20' ) end [2025-02-15 04:53:20] Production.INFO: ProcessCDR(1,14478759,1,1,2) [2025-02-15 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478759', 'tblTempUsageDetail_20' ) start [2025-02-15 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478759', 'tblTempUsageDetail_20' ) end [2025-02-15 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:53:23] Production.INFO: ==5936== Releasing lock... [2025-02-15 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:53:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:54:05 [end_date_ymd] => 2025-02-15 04:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:54:05' and `end` < '2025-02-15 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-15 04:54:19] Production.INFO: count ==190 [2025-02-15 04:54:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:54:05 - End Time 2025-02-15 04:54:05 [2025-02-15 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478764', 'tblTempUsageDetail_20' ) start [2025-02-15 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478764', 'tblTempUsageDetail_20' ) end [2025-02-15 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478764', 'tblTempVendorCDR_20' ) start [2025-02-15 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478764', 'tblTempVendorCDR_20' ) end [2025-02-15 04:54:19] Production.INFO: ProcessCDR(1,14478764,1,1,2) [2025-02-15 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478764', 'tblTempUsageDetail_20' ) start [2025-02-15 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478764', 'tblTempUsageDetail_20' ) end [2025-02-15 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:54:22] Production.INFO: ==6011== Releasing lock... [2025-02-15 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:54:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:55:05 [end_date_ymd] => 2025-02-15 04:55:05 [RateCDR] => 1 ) [2025-02-15 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:55:05' and `end` < '2025-02-15 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:55:20] Production.INFO: count ==187 [2025-02-15 04:55:20] Production.ERROR: pbx CDR StartTime 2025-02-15 01:55:05 - End Time 2025-02-15 04:55:05 [2025-02-15 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478769', 'tblTempUsageDetail_20' ) start [2025-02-15 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478769', 'tblTempUsageDetail_20' ) end [2025-02-15 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478769', 'tblTempVendorCDR_20' ) start [2025-02-15 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478769', 'tblTempVendorCDR_20' ) end [2025-02-15 04:55:20] Production.INFO: ProcessCDR(1,14478769,1,1,2) [2025-02-15 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478769', 'tblTempUsageDetail_20' ) start [2025-02-15 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478769', 'tblTempUsageDetail_20' ) end [2025-02-15 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:55:23] Production.INFO: ==6120== Releasing lock... [2025-02-15 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:55:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:56:06 [end_date_ymd] => 2025-02-15 04:56:06 [RateCDR] => 1 ) [2025-02-15 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:56:06' and `end` < '2025-02-15 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:56:20] Production.INFO: count ==184 [2025-02-15 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-15 01:56:06 - End Time 2025-02-15 04:56:06 [2025-02-15 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478774', 'tblTempUsageDetail_20' ) start [2025-02-15 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478774', 'tblTempUsageDetail_20' ) end [2025-02-15 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478774', 'tblTempVendorCDR_20' ) start [2025-02-15 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478774', 'tblTempVendorCDR_20' ) end [2025-02-15 04:56:20] Production.INFO: ProcessCDR(1,14478774,1,1,2) [2025-02-15 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478774', 'tblTempUsageDetail_20' ) start [2025-02-15 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478774', 'tblTempUsageDetail_20' ) end [2025-02-15 04:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:56:24] Production.INFO: ==6191== Releasing lock... [2025-02-15 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:56:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:57:05 [end_date_ymd] => 2025-02-15 04:57:05 [RateCDR] => 1 ) [2025-02-15 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 01:57:05' and `end` < '2025-02-15 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 04:57:21] Production.INFO: count ==183 [2025-02-15 04:57:21] Production.ERROR: pbx CDR StartTime 2025-02-15 01:57:05 - End Time 2025-02-15 04:57:05 [2025-02-15 04:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478779', 'tblTempUsageDetail_20' ) start [2025-02-15 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478779', 'tblTempUsageDetail_20' ) end [2025-02-15 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478779', 'tblTempVendorCDR_20' ) start [2025-02-15 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478779', 'tblTempVendorCDR_20' ) end [2025-02-15 04:57:21] Production.INFO: ProcessCDR(1,14478779,1,1,2) [2025-02-15 04:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478779', 'tblTempUsageDetail_20' ) start [2025-02-15 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478779', 'tblTempUsageDetail_20' ) end [2025-02-15 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:57:24] Production.INFO: ==6261== Releasing lock... [2025-02-15 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:57:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:58:05 [end_date_ymd] => 2025-02-15 04:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:58:05' and `end` < '2025-02-15 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-15 04:58:19] Production.INFO: count ==187 [2025-02-15 04:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 01:58:05 - End Time 2025-02-15 04:58:05 [2025-02-15 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478784', 'tblTempUsageDetail_20' ) start [2025-02-15 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478784', 'tblTempUsageDetail_20' ) end [2025-02-15 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478784', 'tblTempVendorCDR_20' ) start [2025-02-15 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478784', 'tblTempVendorCDR_20' ) end [2025-02-15 04:58:19] Production.INFO: ProcessCDR(1,14478784,1,1,2) [2025-02-15 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478784', 'tblTempUsageDetail_20' ) start [2025-02-15 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478784', 'tblTempUsageDetail_20' ) end [2025-02-15 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:58:23] Production.INFO: ==6333== Releasing lock... [2025-02-15 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:58:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 01:59:05 [end_date_ymd] => 2025-02-15 04:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 01:59:05' and `end` < '2025-02-15 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-15 04:59:21] Production.INFO: count ==187 [2025-02-15 04:59:21] Production.ERROR: pbx CDR StartTime 2025-02-15 01:59:05 - End Time 2025-02-15 04:59:05 [2025-02-15 04:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478789', 'tblTempUsageDetail_20' ) start [2025-02-15 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478789', 'tblTempUsageDetail_20' ) end [2025-02-15 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478789', 'tblTempVendorCDR_20' ) start [2025-02-15 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478789', 'tblTempVendorCDR_20' ) end [2025-02-15 04:59:21] Production.INFO: ProcessCDR(1,14478789,1,1,2) [2025-02-15 04:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 04:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 04:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478789', 'tblTempUsageDetail_20' ) start [2025-02-15 04:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478789', 'tblTempUsageDetail_20' ) end [2025-02-15 04:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 04:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 04:59:25] Production.INFO: ==6403== Releasing lock... [2025-02-15 04:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 04:59:25] Production.INFO: 29 MB #Memory Used# [2025-02-15 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:00:06 [end_date_ymd] => 2025-02-15 05:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 02:00:06' and `end` < '2025-02-15 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-15 05:00:23] Production.INFO: count ==184 [2025-02-15 05:00:23] Production.ERROR: pbx CDR StartTime 2025-02-15 02:00:06 - End Time 2025-02-15 05:00:06 [2025-02-15 05:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478795', 'tblTempUsageDetail_20' ) start [2025-02-15 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478795', 'tblTempUsageDetail_20' ) end [2025-02-15 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478795', 'tblTempVendorCDR_20' ) start [2025-02-15 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478795', 'tblTempVendorCDR_20' ) end [2025-02-15 05:00:23] Production.INFO: ProcessCDR(1,14478795,1,1,2) [2025-02-15 05:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478795', 'tblTempUsageDetail_20' ) start [2025-02-15 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478795', 'tblTempUsageDetail_20' ) end [2025-02-15 05:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:00:26] Production.INFO: ==6477== Releasing lock... [2025-02-15 05:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:00:26] Production.INFO: 29 MB #Memory Used# [2025-02-15 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:01:05 [end_date_ymd] => 2025-02-15 05:01:05 [RateCDR] => 1 ) [2025-02-15 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:01:05' and `end` < '2025-02-15 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:01:19] Production.INFO: count ==176 [2025-02-15 05:01:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:01:05 - End Time 2025-02-15 05:01:05 [2025-02-15 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478800', 'tblTempUsageDetail_20' ) start [2025-02-15 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478800', 'tblTempUsageDetail_20' ) end [2025-02-15 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478800', 'tblTempVendorCDR_20' ) start [2025-02-15 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478800', 'tblTempVendorCDR_20' ) end [2025-02-15 05:01:19] Production.INFO: ProcessCDR(1,14478800,1,1,2) [2025-02-15 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478800', 'tblTempUsageDetail_20' ) start [2025-02-15 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478800', 'tblTempUsageDetail_20' ) end [2025-02-15 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:01:23] Production.INFO: ==6561== Releasing lock... [2025-02-15 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:01:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:02:06 [end_date_ymd] => 2025-02-15 05:02:06 [RateCDR] => 1 ) [2025-02-15 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:02:06' and `end` < '2025-02-15 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:02:22] Production.INFO: count ==176 [2025-02-15 05:02:22] Production.ERROR: pbx CDR StartTime 2025-02-15 02:02:06 - End Time 2025-02-15 05:02:06 [2025-02-15 05:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478805', 'tblTempUsageDetail_20' ) start [2025-02-15 05:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478805', 'tblTempUsageDetail_20' ) end [2025-02-15 05:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478805', 'tblTempVendorCDR_20' ) start [2025-02-15 05:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478805', 'tblTempVendorCDR_20' ) end [2025-02-15 05:02:22] Production.INFO: ProcessCDR(1,14478805,1,1,2) [2025-02-15 05:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478805', 'tblTempUsageDetail_20' ) start [2025-02-15 05:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478805', 'tblTempUsageDetail_20' ) end [2025-02-15 05:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:02:26] Production.INFO: ==6632== Releasing lock... [2025-02-15 05:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:02:26] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:03:05 [end_date_ymd] => 2025-02-15 05:03:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:03:05' and `end` < '2025-02-15 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-15 05:03:21] Production.INFO: count ==176 [2025-02-15 05:03:21] Production.ERROR: pbx CDR StartTime 2025-02-15 02:03:05 - End Time 2025-02-15 05:03:05 [2025-02-15 05:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478810', 'tblTempUsageDetail_20' ) start [2025-02-15 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478810', 'tblTempUsageDetail_20' ) end [2025-02-15 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478810', 'tblTempVendorCDR_20' ) start [2025-02-15 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478810', 'tblTempVendorCDR_20' ) end [2025-02-15 05:03:21] Production.INFO: ProcessCDR(1,14478810,1,1,2) [2025-02-15 05:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478810', 'tblTempUsageDetail_20' ) start [2025-02-15 05:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478810', 'tblTempUsageDetail_20' ) end [2025-02-15 05:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:03:25] Production.INFO: ==6707== Releasing lock... [2025-02-15 05:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:03:25] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:04:05 [end_date_ymd] => 2025-02-15 05:04:05 [RateCDR] => 1 ) [2025-02-15 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:04:05' and `end` < '2025-02-15 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:04:18] Production.INFO: count ==176 [2025-02-15 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:04:05 - End Time 2025-02-15 05:04:05 [2025-02-15 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478815', 'tblTempUsageDetail_20' ) start [2025-02-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478815', 'tblTempUsageDetail_20' ) end [2025-02-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478815', 'tblTempVendorCDR_20' ) start [2025-02-15 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478815', 'tblTempVendorCDR_20' ) end [2025-02-15 05:04:18] Production.INFO: ProcessCDR(1,14478815,1,1,2) [2025-02-15 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478815', 'tblTempUsageDetail_20' ) start [2025-02-15 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478815', 'tblTempUsageDetail_20' ) end [2025-02-15 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:04:22] Production.INFO: ==6778== Releasing lock... [2025-02-15 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:05:05 [end_date_ymd] => 2025-02-15 05:05:05 [RateCDR] => 1 ) [2025-02-15 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:05:05' and `end` < '2025-02-15 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:05:18] Production.INFO: count ==176 [2025-02-15 05:05:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:05:05 - End Time 2025-02-15 05:05:05 [2025-02-15 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478820', 'tblTempUsageDetail_20' ) start [2025-02-15 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478820', 'tblTempUsageDetail_20' ) end [2025-02-15 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478820', 'tblTempVendorCDR_20' ) start [2025-02-15 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478820', 'tblTempVendorCDR_20' ) end [2025-02-15 05:05:18] Production.INFO: ProcessCDR(1,14478820,1,1,2) [2025-02-15 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478820', 'tblTempUsageDetail_20' ) start [2025-02-15 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478820', 'tblTempUsageDetail_20' ) end [2025-02-15 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:05:21] Production.INFO: ==6847== Releasing lock... [2025-02-15 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:06:05 [end_date_ymd] => 2025-02-15 05:06:05 [RateCDR] => 1 ) [2025-02-15 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:06:05' and `end` < '2025-02-15 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:06:21] Production.INFO: count ==174 [2025-02-15 05:06:21] Production.ERROR: pbx CDR StartTime 2025-02-15 02:06:05 - End Time 2025-02-15 05:06:05 [2025-02-15 05:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478825', 'tblTempUsageDetail_20' ) start [2025-02-15 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478825', 'tblTempUsageDetail_20' ) end [2025-02-15 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478825', 'tblTempVendorCDR_20' ) start [2025-02-15 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478825', 'tblTempVendorCDR_20' ) end [2025-02-15 05:06:21] Production.INFO: ProcessCDR(1,14478825,1,1,2) [2025-02-15 05:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478825', 'tblTempUsageDetail_20' ) start [2025-02-15 05:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478825', 'tblTempUsageDetail_20' ) end [2025-02-15 05:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:06:24] Production.INFO: ==6928== Releasing lock... [2025-02-15 05:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:06:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:07:05 [end_date_ymd] => 2025-02-15 05:07:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:07:05' and `end` < '2025-02-15 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-15 05:07:19] Production.INFO: count ==173 [2025-02-15 05:07:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:07:05 - End Time 2025-02-15 05:07:05 [2025-02-15 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478830', 'tblTempUsageDetail_20' ) start [2025-02-15 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478830', 'tblTempUsageDetail_20' ) end [2025-02-15 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478830', 'tblTempVendorCDR_20' ) start [2025-02-15 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478830', 'tblTempVendorCDR_20' ) end [2025-02-15 05:07:19] Production.INFO: ProcessCDR(1,14478830,1,1,2) [2025-02-15 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478830', 'tblTempUsageDetail_20' ) start [2025-02-15 05:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478830', 'tblTempUsageDetail_20' ) end [2025-02-15 05:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:07:23] Production.INFO: ==6998== Releasing lock... [2025-02-15 05:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:07:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:08:05 [end_date_ymd] => 2025-02-15 05:08:05 [RateCDR] => 1 ) [2025-02-15 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:08:05' and `end` < '2025-02-15 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:08:19] Production.INFO: count ==173 [2025-02-15 05:08:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:08:05 - End Time 2025-02-15 05:08:05 [2025-02-15 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478835', 'tblTempUsageDetail_20' ) start [2025-02-15 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478835', 'tblTempUsageDetail_20' ) end [2025-02-15 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478835', 'tblTempVendorCDR_20' ) start [2025-02-15 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478835', 'tblTempVendorCDR_20' ) end [2025-02-15 05:08:19] Production.INFO: ProcessCDR(1,14478835,1,1,2) [2025-02-15 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478835', 'tblTempUsageDetail_20' ) start [2025-02-15 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478835', 'tblTempUsageDetail_20' ) end [2025-02-15 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:08:22] Production.INFO: ==7074== Releasing lock... [2025-02-15 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:09:05 [end_date_ymd] => 2025-02-15 05:09:05 [RateCDR] => 1 ) [2025-02-15 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:09:05' and `end` < '2025-02-15 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:09:18] Production.INFO: count ==173 [2025-02-15 05:09:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:09:05 - End Time 2025-02-15 05:09:05 [2025-02-15 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478840', 'tblTempUsageDetail_20' ) start [2025-02-15 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478840', 'tblTempUsageDetail_20' ) end [2025-02-15 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478840', 'tblTempVendorCDR_20' ) start [2025-02-15 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478840', 'tblTempVendorCDR_20' ) end [2025-02-15 05:09:18] Production.INFO: ProcessCDR(1,14478840,1,1,2) [2025-02-15 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478840', 'tblTempUsageDetail_20' ) start [2025-02-15 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478840', 'tblTempUsageDetail_20' ) end [2025-02-15 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:09:21] Production.INFO: ==7146== Releasing lock... [2025-02-15 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:10:07 [end_date_ymd] => 2025-02-15 05:10:07 [RateCDR] => 1 ) [2025-02-15 05: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-15 02:10:07' and `end` < '2025-02-15 05: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-15 05:10:20] Production.INFO: count ==171 [2025-02-15 05:10:20] Production.ERROR: pbx CDR StartTime 2025-02-15 02:10:07 - End Time 2025-02-15 05:10:07 [2025-02-15 05:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478846', 'tblTempUsageDetail_20' ) start [2025-02-15 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478846', 'tblTempUsageDetail_20' ) end [2025-02-15 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478846', 'tblTempVendorCDR_20' ) start [2025-02-15 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478846', 'tblTempVendorCDR_20' ) end [2025-02-15 05:10:20] Production.INFO: ProcessCDR(1,14478846,1,1,2) [2025-02-15 05:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478846', 'tblTempUsageDetail_20' ) start [2025-02-15 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478846', 'tblTempUsageDetail_20' ) end [2025-02-15 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:10:23] Production.INFO: ==7218== Releasing lock... [2025-02-15 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:10:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:11:05 [end_date_ymd] => 2025-02-15 05:11:05 [RateCDR] => 1 ) [2025-02-15 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:11:05' and `end` < '2025-02-15 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:11:19] Production.INFO: count ==160 [2025-02-15 05:11:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:11:05 - End Time 2025-02-15 05:11:05 [2025-02-15 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478850', 'tblTempUsageDetail_20' ) start [2025-02-15 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478850', 'tblTempUsageDetail_20' ) end [2025-02-15 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478850', 'tblTempVendorCDR_20' ) start [2025-02-15 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478850', 'tblTempVendorCDR_20' ) end [2025-02-15 05:11:19] Production.INFO: ProcessCDR(1,14478850,1,1,2) [2025-02-15 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478850', 'tblTempUsageDetail_20' ) start [2025-02-15 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478850', 'tblTempUsageDetail_20' ) end [2025-02-15 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:11:22] Production.INFO: ==7331== Releasing lock... [2025-02-15 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:12:05 [end_date_ymd] => 2025-02-15 05:12:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:12:05' and `end` < '2025-02-15 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-15 05:12:18] Production.INFO: count ==160 [2025-02-15 05:12:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:12:05 - End Time 2025-02-15 05:12:05 [2025-02-15 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478856', 'tblTempUsageDetail_20' ) start [2025-02-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478856', 'tblTempUsageDetail_20' ) end [2025-02-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478856', 'tblTempVendorCDR_20' ) start [2025-02-15 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478856', 'tblTempVendorCDR_20' ) end [2025-02-15 05:12:18] Production.INFO: ProcessCDR(1,14478856,1,1,2) [2025-02-15 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478856', 'tblTempUsageDetail_20' ) start [2025-02-15 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478856', 'tblTempUsageDetail_20' ) end [2025-02-15 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:12:22] Production.INFO: ==7402== Releasing lock... [2025-02-15 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:13:05 [end_date_ymd] => 2025-02-15 05:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:13:05' and `end` < '2025-02-15 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-15 05:13:18] Production.INFO: count ==160 [2025-02-15 05:13:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:13:05 - End Time 2025-02-15 05:13:05 [2025-02-15 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478861', 'tblTempUsageDetail_20' ) start [2025-02-15 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478861', 'tblTempUsageDetail_20' ) end [2025-02-15 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478861', 'tblTempVendorCDR_20' ) start [2025-02-15 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478861', 'tblTempVendorCDR_20' ) end [2025-02-15 05:13:18] Production.INFO: ProcessCDR(1,14478861,1,1,2) [2025-02-15 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478861', 'tblTempUsageDetail_20' ) start [2025-02-15 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478861', 'tblTempUsageDetail_20' ) end [2025-02-15 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:13:22] Production.INFO: ==7472== Releasing lock... [2025-02-15 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:14:05 [end_date_ymd] => 2025-02-15 05:14:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:14:05' and `end` < '2025-02-15 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-15 05:14:19] Production.INFO: count ==160 [2025-02-15 05:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:14:05 - End Time 2025-02-15 05:14:05 [2025-02-15 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478866', 'tblTempUsageDetail_20' ) start [2025-02-15 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478866', 'tblTempUsageDetail_20' ) end [2025-02-15 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478866', 'tblTempVendorCDR_20' ) start [2025-02-15 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478866', 'tblTempVendorCDR_20' ) end [2025-02-15 05:14:19] Production.INFO: ProcessCDR(1,14478866,1,1,2) [2025-02-15 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478866', 'tblTempUsageDetail_20' ) start [2025-02-15 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478866', 'tblTempUsageDetail_20' ) end [2025-02-15 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:14:22] Production.INFO: ==7545== Releasing lock... [2025-02-15 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:15:05 [end_date_ymd] => 2025-02-15 05:15:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:15:05' and `end` < '2025-02-15 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-15 05:15:18] Production.INFO: count ==160 [2025-02-15 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:15:05 - End Time 2025-02-15 05:15:05 [2025-02-15 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478871', 'tblTempUsageDetail_20' ) start [2025-02-15 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478871', 'tblTempUsageDetail_20' ) end [2025-02-15 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478871', 'tblTempVendorCDR_20' ) start [2025-02-15 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478871', 'tblTempVendorCDR_20' ) end [2025-02-15 05:15:18] Production.INFO: ProcessCDR(1,14478871,1,1,2) [2025-02-15 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478871', 'tblTempUsageDetail_20' ) start [2025-02-15 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478871', 'tblTempUsageDetail_20' ) end [2025-02-15 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:15:21] Production.INFO: ==7615== Releasing lock... [2025-02-15 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:16:05 [end_date_ymd] => 2025-02-15 05:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:16:05' and `end` < '2025-02-15 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-15 05:16:19] Production.INFO: count ==160 [2025-02-15 05:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:16:05 - End Time 2025-02-15 05:16:05 [2025-02-15 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478876', 'tblTempUsageDetail_20' ) start [2025-02-15 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478876', 'tblTempUsageDetail_20' ) end [2025-02-15 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478876', 'tblTempVendorCDR_20' ) start [2025-02-15 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478876', 'tblTempVendorCDR_20' ) end [2025-02-15 05:16:19] Production.INFO: ProcessCDR(1,14478876,1,1,2) [2025-02-15 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478876', 'tblTempUsageDetail_20' ) start [2025-02-15 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478876', 'tblTempUsageDetail_20' ) end [2025-02-15 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:16:22] Production.INFO: ==7685== Releasing lock... [2025-02-15 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:17:05 [end_date_ymd] => 2025-02-15 05:17:05 [RateCDR] => 1 ) [2025-02-15 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:17:05' and `end` < '2025-02-15 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:17:18] Production.INFO: count ==160 [2025-02-15 05:17:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:17:05 - End Time 2025-02-15 05:17:05 [2025-02-15 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478881', 'tblTempUsageDetail_20' ) start [2025-02-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478881', 'tblTempUsageDetail_20' ) end [2025-02-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478881', 'tblTempVendorCDR_20' ) start [2025-02-15 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478881', 'tblTempVendorCDR_20' ) end [2025-02-15 05:17:18] Production.INFO: ProcessCDR(1,14478881,1,1,2) [2025-02-15 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478881', 'tblTempUsageDetail_20' ) start [2025-02-15 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478881', 'tblTempUsageDetail_20' ) end [2025-02-15 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:17:22] Production.INFO: ==7759== Releasing lock... [2025-02-15 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:17:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:18:05 [end_date_ymd] => 2025-02-15 05:18:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:18:05' and `end` < '2025-02-15 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-15 05:18:18] Production.INFO: count ==160 [2025-02-15 05:18:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:18:05 - End Time 2025-02-15 05:18:05 [2025-02-15 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478886', 'tblTempUsageDetail_20' ) start [2025-02-15 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478886', 'tblTempUsageDetail_20' ) end [2025-02-15 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478886', 'tblTempVendorCDR_20' ) start [2025-02-15 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478886', 'tblTempVendorCDR_20' ) end [2025-02-15 05:18:18] Production.INFO: ProcessCDR(1,14478886,1,1,2) [2025-02-15 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478886', 'tblTempUsageDetail_20' ) start [2025-02-15 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478886', 'tblTempUsageDetail_20' ) end [2025-02-15 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:18:21] Production.INFO: ==7834== Releasing lock... [2025-02-15 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:19:05 [end_date_ymd] => 2025-02-15 05:19:05 [RateCDR] => 1 ) [2025-02-15 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:19:05' and `end` < '2025-02-15 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:19:18] Production.INFO: count ==160 [2025-02-15 05:19:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:19:05 - End Time 2025-02-15 05:19:05 [2025-02-15 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478891', 'tblTempUsageDetail_20' ) start [2025-02-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478891', 'tblTempUsageDetail_20' ) end [2025-02-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478891', 'tblTempVendorCDR_20' ) start [2025-02-15 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478891', 'tblTempVendorCDR_20' ) end [2025-02-15 05:19:18] Production.INFO: ProcessCDR(1,14478891,1,1,2) [2025-02-15 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478891', 'tblTempUsageDetail_20' ) start [2025-02-15 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478891', 'tblTempUsageDetail_20' ) end [2025-02-15 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:19:21] Production.INFO: ==7910== Releasing lock... [2025-02-15 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:20:05 [end_date_ymd] => 2025-02-15 05:20:05 [RateCDR] => 1 ) [2025-02-15 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:20:05' and `end` < '2025-02-15 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:20:19] Production.INFO: count ==159 [2025-02-15 05:20:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:20:05 - End Time 2025-02-15 05:20:05 [2025-02-15 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478897', 'tblTempUsageDetail_20' ) start [2025-02-15 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478897', 'tblTempUsageDetail_20' ) end [2025-02-15 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478897', 'tblTempVendorCDR_20' ) start [2025-02-15 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478897', 'tblTempVendorCDR_20' ) end [2025-02-15 05:20:19] Production.INFO: ProcessCDR(1,14478897,1,1,2) [2025-02-15 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478897', 'tblTempUsageDetail_20' ) start [2025-02-15 05:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478897', 'tblTempUsageDetail_20' ) end [2025-02-15 05:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:20:24] Production.INFO: ==7990== Releasing lock... [2025-02-15 05:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:20:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:21:05 [end_date_ymd] => 2025-02-15 05:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:21:05' and `end` < '2025-02-15 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-15 05:21:18] Production.INFO: count ==155 [2025-02-15 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:21:05 - End Time 2025-02-15 05:21:05 [2025-02-15 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478902', 'tblTempUsageDetail_20' ) start [2025-02-15 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478902', 'tblTempUsageDetail_20' ) end [2025-02-15 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478902', 'tblTempVendorCDR_20' ) start [2025-02-15 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478902', 'tblTempVendorCDR_20' ) end [2025-02-15 05:21:18] Production.INFO: ProcessCDR(1,14478902,1,1,2) [2025-02-15 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478902', 'tblTempUsageDetail_20' ) start [2025-02-15 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478902', 'tblTempUsageDetail_20' ) end [2025-02-15 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:21:21] Production.INFO: ==8064== Releasing lock... [2025-02-15 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:22:05 [end_date_ymd] => 2025-02-15 05:22:05 [RateCDR] => 1 ) [2025-02-15 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:22:05' and `end` < '2025-02-15 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:22:18] Production.INFO: count ==155 [2025-02-15 05:22:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:22:05 - End Time 2025-02-15 05:22:05 [2025-02-15 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478907', 'tblTempUsageDetail_20' ) start [2025-02-15 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478907', 'tblTempUsageDetail_20' ) end [2025-02-15 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478907', 'tblTempVendorCDR_20' ) start [2025-02-15 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478907', 'tblTempVendorCDR_20' ) end [2025-02-15 05:22:18] Production.INFO: ProcessCDR(1,14478907,1,1,2) [2025-02-15 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478907', 'tblTempUsageDetail_20' ) start [2025-02-15 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478907', 'tblTempUsageDetail_20' ) end [2025-02-15 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:22:21] Production.INFO: ==8143== Releasing lock... [2025-02-15 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:23:05 [end_date_ymd] => 2025-02-15 05:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:23:05' and `end` < '2025-02-15 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-15 05:23:18] Production.INFO: count ==156 [2025-02-15 05:23:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:23:05 - End Time 2025-02-15 05:23:05 [2025-02-15 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478912', 'tblTempUsageDetail_20' ) start [2025-02-15 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478912', 'tblTempUsageDetail_20' ) end [2025-02-15 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478912', 'tblTempVendorCDR_20' ) start [2025-02-15 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478912', 'tblTempVendorCDR_20' ) end [2025-02-15 05:23:18] Production.INFO: ProcessCDR(1,14478912,1,1,2) [2025-02-15 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478912', 'tblTempUsageDetail_20' ) start [2025-02-15 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478912', 'tblTempUsageDetail_20' ) end [2025-02-15 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:23:21] Production.INFO: ==8222== Releasing lock... [2025-02-15 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:24:05 [end_date_ymd] => 2025-02-15 05:24:05 [RateCDR] => 1 ) [2025-02-15 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:24:05' and `end` < '2025-02-15 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:24:18] Production.INFO: count ==156 [2025-02-15 05:24:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:24:05 - End Time 2025-02-15 05:24:05 [2025-02-15 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478917', 'tblTempUsageDetail_20' ) start [2025-02-15 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478917', 'tblTempUsageDetail_20' ) end [2025-02-15 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478917', 'tblTempVendorCDR_20' ) start [2025-02-15 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478917', 'tblTempVendorCDR_20' ) end [2025-02-15 05:24:18] Production.INFO: ProcessCDR(1,14478917,1,1,2) [2025-02-15 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478917', 'tblTempUsageDetail_20' ) start [2025-02-15 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478917', 'tblTempUsageDetail_20' ) end [2025-02-15 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:24:21] Production.INFO: ==8291== Releasing lock... [2025-02-15 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:25:05 [end_date_ymd] => 2025-02-15 05:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:25:05' and `end` < '2025-02-15 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-15 05:25:18] Production.INFO: count ==157 [2025-02-15 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:25:05 - End Time 2025-02-15 05:25:05 [2025-02-15 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478922', 'tblTempUsageDetail_20' ) start [2025-02-15 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478922', 'tblTempUsageDetail_20' ) end [2025-02-15 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478922', 'tblTempVendorCDR_20' ) start [2025-02-15 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478922', 'tblTempVendorCDR_20' ) end [2025-02-15 05:25:18] Production.INFO: ProcessCDR(1,14478922,1,1,2) [2025-02-15 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478922', 'tblTempUsageDetail_20' ) start [2025-02-15 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478922', 'tblTempUsageDetail_20' ) end [2025-02-15 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:25:23] Production.INFO: ==8372== Releasing lock... [2025-02-15 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:26:05 [end_date_ymd] => 2025-02-15 05:26:05 [RateCDR] => 1 ) [2025-02-15 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:26:05' and `end` < '2025-02-15 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:26:19] Production.INFO: count ==157 [2025-02-15 05:26:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:26:05 - End Time 2025-02-15 05:26:05 [2025-02-15 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478927', 'tblTempUsageDetail_20' ) start [2025-02-15 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478927', 'tblTempUsageDetail_20' ) end [2025-02-15 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478927', 'tblTempVendorCDR_20' ) start [2025-02-15 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478927', 'tblTempVendorCDR_20' ) end [2025-02-15 05:26:19] Production.INFO: ProcessCDR(1,14478927,1,1,2) [2025-02-15 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478927', 'tblTempUsageDetail_20' ) start [2025-02-15 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478927', 'tblTempUsageDetail_20' ) end [2025-02-15 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:26:22] Production.INFO: ==8493== Releasing lock... [2025-02-15 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:27:05 [end_date_ymd] => 2025-02-15 05:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:27:05' and `end` < '2025-02-15 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-15 05:27:18] Production.INFO: count ==157 [2025-02-15 05:27:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:27:05 - End Time 2025-02-15 05:27:05 [2025-02-15 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478932', 'tblTempUsageDetail_20' ) start [2025-02-15 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478932', 'tblTempUsageDetail_20' ) end [2025-02-15 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478932', 'tblTempVendorCDR_20' ) start [2025-02-15 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478932', 'tblTempVendorCDR_20' ) end [2025-02-15 05:27:18] Production.INFO: ProcessCDR(1,14478932,1,1,2) [2025-02-15 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478932', 'tblTempUsageDetail_20' ) start [2025-02-15 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478932', 'tblTempUsageDetail_20' ) end [2025-02-15 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:27:22] Production.INFO: ==8563== Releasing lock... [2025-02-15 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:27:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:28:05 [end_date_ymd] => 2025-02-15 05:28:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:28:05' and `end` < '2025-02-15 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-15 05:28:18] Production.INFO: count ==157 [2025-02-15 05:28:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:28:05 - End Time 2025-02-15 05:28:05 [2025-02-15 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478937', 'tblTempUsageDetail_20' ) start [2025-02-15 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478937', 'tblTempUsageDetail_20' ) end [2025-02-15 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478937', 'tblTempVendorCDR_20' ) start [2025-02-15 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478937', 'tblTempVendorCDR_20' ) end [2025-02-15 05:28:18] Production.INFO: ProcessCDR(1,14478937,1,1,2) [2025-02-15 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478937', 'tblTempUsageDetail_20' ) start [2025-02-15 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478937', 'tblTempUsageDetail_20' ) end [2025-02-15 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:28:22] Production.INFO: ==8644== Releasing lock... [2025-02-15 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:29:05 [end_date_ymd] => 2025-02-15 05:29:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:29:05' and `end` < '2025-02-15 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-15 05:29:18] Production.INFO: count ==157 [2025-02-15 05:29:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:29:05 - End Time 2025-02-15 05:29:05 [2025-02-15 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478942', 'tblTempUsageDetail_20' ) start [2025-02-15 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478942', 'tblTempUsageDetail_20' ) end [2025-02-15 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478942', 'tblTempVendorCDR_20' ) start [2025-02-15 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478942', 'tblTempVendorCDR_20' ) end [2025-02-15 05:29:18] Production.INFO: ProcessCDR(1,14478942,1,1,2) [2025-02-15 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478942', 'tblTempUsageDetail_20' ) start [2025-02-15 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478942', 'tblTempUsageDetail_20' ) end [2025-02-15 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:29:21] Production.INFO: ==8728== Releasing lock... [2025-02-15 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:30:06 [end_date_ymd] => 2025-02-15 05:30:06 [RateCDR] => 1 ) [2025-02-15 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-15 02:30:06' and `end` < '2025-02-15 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-15 05:30:19] Production.INFO: count ==152 [2025-02-15 05:30:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:30:06 - End Time 2025-02-15 05:30:06 [2025-02-15 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478947', 'tblTempUsageDetail_20' ) start [2025-02-15 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478947', 'tblTempUsageDetail_20' ) end [2025-02-15 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478947', 'tblTempVendorCDR_20' ) start [2025-02-15 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478947', 'tblTempVendorCDR_20' ) end [2025-02-15 05:30:19] Production.INFO: ProcessCDR(1,14478947,1,1,2) [2025-02-15 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478947', 'tblTempUsageDetail_20' ) start [2025-02-15 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478947', 'tblTempUsageDetail_20' ) end [2025-02-15 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:30:22] Production.INFO: ==8808== Releasing lock... [2025-02-15 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:31:05 [end_date_ymd] => 2025-02-15 05:31:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:31:05' and `end` < '2025-02-15 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-15 05:31:18] Production.INFO: count ==146 [2025-02-15 05:31:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:31:05 - End Time 2025-02-15 05:31:05 [2025-02-15 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478953', 'tblTempUsageDetail_20' ) start [2025-02-15 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478953', 'tblTempUsageDetail_20' ) end [2025-02-15 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478953', 'tblTempVendorCDR_20' ) start [2025-02-15 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478953', 'tblTempVendorCDR_20' ) end [2025-02-15 05:31:18] Production.INFO: ProcessCDR(1,14478953,1,1,2) [2025-02-15 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478953', 'tblTempUsageDetail_20' ) start [2025-02-15 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478953', 'tblTempUsageDetail_20' ) end [2025-02-15 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:31:21] Production.INFO: ==8886== Releasing lock... [2025-02-15 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:32:05 [end_date_ymd] => 2025-02-15 05:32:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:32:05' and `end` < '2025-02-15 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-15 05:32:18] Production.INFO: count ==146 [2025-02-15 05:32:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:32:05 - End Time 2025-02-15 05:32:05 [2025-02-15 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478958', 'tblTempUsageDetail_20' ) start [2025-02-15 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478958', 'tblTempUsageDetail_20' ) end [2025-02-15 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478958', 'tblTempVendorCDR_20' ) start [2025-02-15 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478958', 'tblTempVendorCDR_20' ) end [2025-02-15 05:32:18] Production.INFO: ProcessCDR(1,14478958,1,1,2) [2025-02-15 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478958', 'tblTempUsageDetail_20' ) start [2025-02-15 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478958', 'tblTempUsageDetail_20' ) end [2025-02-15 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:32:21] Production.INFO: ==8973== Releasing lock... [2025-02-15 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:33:05 [end_date_ymd] => 2025-02-15 05:33:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:33:05' and `end` < '2025-02-15 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-15 05:33:18] Production.INFO: count ==146 [2025-02-15 05:33:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:33:05 - End Time 2025-02-15 05:33:05 [2025-02-15 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478963', 'tblTempUsageDetail_20' ) start [2025-02-15 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478963', 'tblTempUsageDetail_20' ) end [2025-02-15 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478963', 'tblTempVendorCDR_20' ) start [2025-02-15 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478963', 'tblTempVendorCDR_20' ) end [2025-02-15 05:33:18] Production.INFO: ProcessCDR(1,14478963,1,1,2) [2025-02-15 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478963', 'tblTempUsageDetail_20' ) start [2025-02-15 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478963', 'tblTempUsageDetail_20' ) end [2025-02-15 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:33:21] Production.INFO: ==9049== Releasing lock... [2025-02-15 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:34:05 [end_date_ymd] => 2025-02-15 05:34:05 [RateCDR] => 1 ) [2025-02-15 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:34:05' and `end` < '2025-02-15 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:34:18] Production.INFO: count ==146 [2025-02-15 05:34:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:34:05 - End Time 2025-02-15 05:34:05 [2025-02-15 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478968', 'tblTempUsageDetail_20' ) start [2025-02-15 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478968', 'tblTempUsageDetail_20' ) end [2025-02-15 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478968', 'tblTempVendorCDR_20' ) start [2025-02-15 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478968', 'tblTempVendorCDR_20' ) end [2025-02-15 05:34:18] Production.INFO: ProcessCDR(1,14478968,1,1,2) [2025-02-15 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478968', 'tblTempUsageDetail_20' ) start [2025-02-15 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478968', 'tblTempUsageDetail_20' ) end [2025-02-15 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:34:21] Production.INFO: ==9124== Releasing lock... [2025-02-15 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:35:05 [end_date_ymd] => 2025-02-15 05:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:35:05' and `end` < '2025-02-15 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-15 05:35:18] Production.INFO: count ==146 [2025-02-15 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:35:05 - End Time 2025-02-15 05:35:05 [2025-02-15 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478973', 'tblTempUsageDetail_20' ) start [2025-02-15 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478973', 'tblTempUsageDetail_20' ) end [2025-02-15 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478973', 'tblTempVendorCDR_20' ) start [2025-02-15 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478973', 'tblTempVendorCDR_20' ) end [2025-02-15 05:35:18] Production.INFO: ProcessCDR(1,14478973,1,1,2) [2025-02-15 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478973', 'tblTempUsageDetail_20' ) start [2025-02-15 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478973', 'tblTempUsageDetail_20' ) end [2025-02-15 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:35:22] Production.INFO: ==9200== Releasing lock... [2025-02-15 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:35:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:36:05 [end_date_ymd] => 2025-02-15 05:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:36:05' and `end` < '2025-02-15 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-15 05:36:19] Production.INFO: count ==146 [2025-02-15 05:36:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:36:05 - End Time 2025-02-15 05:36:05 [2025-02-15 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478978', 'tblTempUsageDetail_20' ) start [2025-02-15 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478978', 'tblTempUsageDetail_20' ) end [2025-02-15 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478978', 'tblTempVendorCDR_20' ) start [2025-02-15 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478978', 'tblTempVendorCDR_20' ) end [2025-02-15 05:36:19] Production.INFO: ProcessCDR(1,14478978,1,1,2) [2025-02-15 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478978', 'tblTempUsageDetail_20' ) start [2025-02-15 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478978', 'tblTempUsageDetail_20' ) end [2025-02-15 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:36:22] Production.INFO: ==9283== Releasing lock... [2025-02-15 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 05:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:37:06 [end_date_ymd] => 2025-02-15 05:37:06 [RateCDR] => 1 ) [2025-02-15 05: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-15 02:37:06' and `end` < '2025-02-15 05: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-15 05:37:19] Production.INFO: count ==142 [2025-02-15 05:37:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:37:06 - End Time 2025-02-15 05:37:06 [2025-02-15 05:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478983', 'tblTempUsageDetail_20' ) start [2025-02-15 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478983', 'tblTempUsageDetail_20' ) end [2025-02-15 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478983', 'tblTempVendorCDR_20' ) start [2025-02-15 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478983', 'tblTempVendorCDR_20' ) end [2025-02-15 05:37:19] Production.INFO: ProcessCDR(1,14478983,1,1,2) [2025-02-15 05:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478983', 'tblTempUsageDetail_20' ) start [2025-02-15 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478983', 'tblTempUsageDetail_20' ) end [2025-02-15 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:37:22] Production.INFO: ==9384== Releasing lock... [2025-02-15 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:37:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:38:05 [end_date_ymd] => 2025-02-15 05:38:05 [RateCDR] => 1 ) [2025-02-15 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:38:05' and `end` < '2025-02-15 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:38:18] Production.INFO: count ==142 [2025-02-15 05:38:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:38:05 - End Time 2025-02-15 05:38:05 [2025-02-15 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478988', 'tblTempUsageDetail_20' ) start [2025-02-15 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478988', 'tblTempUsageDetail_20' ) end [2025-02-15 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478988', 'tblTempVendorCDR_20' ) start [2025-02-15 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478988', 'tblTempVendorCDR_20' ) end [2025-02-15 05:38:18] Production.INFO: ProcessCDR(1,14478988,1,1,2) [2025-02-15 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478988', 'tblTempUsageDetail_20' ) start [2025-02-15 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478988', 'tblTempUsageDetail_20' ) end [2025-02-15 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:38:22] Production.INFO: ==9463== Releasing lock... [2025-02-15 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:39:05 [end_date_ymd] => 2025-02-15 05:39:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:39:05' and `end` < '2025-02-15 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-15 05:39:19] Production.INFO: count ==142 [2025-02-15 05:39:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:39:05 - End Time 2025-02-15 05:39:05 [2025-02-15 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478993', 'tblTempUsageDetail_20' ) start [2025-02-15 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478993', 'tblTempUsageDetail_20' ) end [2025-02-15 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478993', 'tblTempVendorCDR_20' ) start [2025-02-15 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478993', 'tblTempVendorCDR_20' ) end [2025-02-15 05:39:19] Production.INFO: ProcessCDR(1,14478993,1,1,2) [2025-02-15 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478993', 'tblTempUsageDetail_20' ) start [2025-02-15 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478993', 'tblTempUsageDetail_20' ) end [2025-02-15 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:39:22] Production.INFO: ==9539== Releasing lock... [2025-02-15 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:39:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:40:06 [end_date_ymd] => 2025-02-15 05:40:06 [RateCDR] => 1 ) [2025-02-15 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-15 02:40:06' and `end` < '2025-02-15 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-15 05:40:19] Production.INFO: count ==139 [2025-02-15 05:40:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:40:06 - End Time 2025-02-15 05:40:06 [2025-02-15 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478999', 'tblTempUsageDetail_20' ) start [2025-02-15 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14478999', 'tblTempUsageDetail_20' ) end [2025-02-15 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478999', 'tblTempVendorCDR_20' ) start [2025-02-15 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14478999', 'tblTempVendorCDR_20' ) end [2025-02-15 05:40:19] Production.INFO: ProcessCDR(1,14478999,1,1,2) [2025-02-15 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14478999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14478999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14478999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14478999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478999', 'tblTempUsageDetail_20' ) start [2025-02-15 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14478999', 'tblTempUsageDetail_20' ) end [2025-02-15 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:40:22] Production.INFO: ==9625== Releasing lock... [2025-02-15 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:41:06 [end_date_ymd] => 2025-02-15 05:41:06 [RateCDR] => 1 ) [2025-02-15 05:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:41:06' and `end` < '2025-02-15 05:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:41:19] Production.INFO: count ==139 [2025-02-15 05:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:41:06 - End Time 2025-02-15 05:41:06 [2025-02-15 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479004', 'tblTempUsageDetail_20' ) start [2025-02-15 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479004', 'tblTempUsageDetail_20' ) end [2025-02-15 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479004', 'tblTempVendorCDR_20' ) start [2025-02-15 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479004', 'tblTempVendorCDR_20' ) end [2025-02-15 05:41:19] Production.INFO: ProcessCDR(1,14479004,1,1,2) [2025-02-15 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479004', 'tblTempUsageDetail_20' ) start [2025-02-15 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479004', 'tblTempUsageDetail_20' ) end [2025-02-15 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:41:22] Production.INFO: ==9751== Releasing lock... [2025-02-15 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:41:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:42:05 [end_date_ymd] => 2025-02-15 05:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:42:05' and `end` < '2025-02-15 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-15 05:42:18] Production.INFO: count ==139 [2025-02-15 05:42:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:42:05 - End Time 2025-02-15 05:42:05 [2025-02-15 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479009', 'tblTempUsageDetail_20' ) start [2025-02-15 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479009', 'tblTempUsageDetail_20' ) end [2025-02-15 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479009', 'tblTempVendorCDR_20' ) start [2025-02-15 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479009', 'tblTempVendorCDR_20' ) end [2025-02-15 05:42:18] Production.INFO: ProcessCDR(1,14479009,1,1,2) [2025-02-15 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479009', 'tblTempUsageDetail_20' ) start [2025-02-15 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479009', 'tblTempUsageDetail_20' ) end [2025-02-15 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:42:22] Production.INFO: ==9842== Releasing lock... [2025-02-15 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:43:05 [end_date_ymd] => 2025-02-15 05:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:43:05' and `end` < '2025-02-15 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-15 05:43:20] Production.INFO: count ==139 [2025-02-15 05:43:20] Production.ERROR: pbx CDR StartTime 2025-02-15 02:43:05 - End Time 2025-02-15 05:43:05 [2025-02-15 05:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479014', 'tblTempUsageDetail_20' ) start [2025-02-15 05:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479014', 'tblTempUsageDetail_20' ) end [2025-02-15 05:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479014', 'tblTempVendorCDR_20' ) start [2025-02-15 05:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479014', 'tblTempVendorCDR_20' ) end [2025-02-15 05:43:20] Production.INFO: ProcessCDR(1,14479014,1,1,2) [2025-02-15 05:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479014', 'tblTempUsageDetail_20' ) start [2025-02-15 05:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479014', 'tblTempUsageDetail_20' ) end [2025-02-15 05:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:43:23] Production.INFO: ==9917== Releasing lock... [2025-02-15 05:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:43:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:44:05 [end_date_ymd] => 2025-02-15 05:44:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:44:05' and `end` < '2025-02-15 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-15 05:44:18] Production.INFO: count ==139 [2025-02-15 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:44:05 - End Time 2025-02-15 05:44:05 [2025-02-15 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479019', 'tblTempUsageDetail_20' ) start [2025-02-15 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479019', 'tblTempUsageDetail_20' ) end [2025-02-15 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479019', 'tblTempVendorCDR_20' ) start [2025-02-15 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479019', 'tblTempVendorCDR_20' ) end [2025-02-15 05:44:18] Production.INFO: ProcessCDR(1,14479019,1,1,2) [2025-02-15 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479019', 'tblTempUsageDetail_20' ) start [2025-02-15 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479019', 'tblTempUsageDetail_20' ) end [2025-02-15 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:44:21] Production.INFO: ==9990== Releasing lock... [2025-02-15 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:45:05 [end_date_ymd] => 2025-02-15 05:45:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:45:05' and `end` < '2025-02-15 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-15 05:45:18] Production.INFO: count ==139 [2025-02-15 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:45:05 - End Time 2025-02-15 05:45:05 [2025-02-15 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479024', 'tblTempUsageDetail_20' ) start [2025-02-15 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479024', 'tblTempUsageDetail_20' ) end [2025-02-15 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479024', 'tblTempVendorCDR_20' ) start [2025-02-15 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479024', 'tblTempVendorCDR_20' ) end [2025-02-15 05:45:18] Production.INFO: ProcessCDR(1,14479024,1,1,2) [2025-02-15 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479024', 'tblTempUsageDetail_20' ) start [2025-02-15 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479024', 'tblTempUsageDetail_20' ) end [2025-02-15 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:45:21] Production.INFO: ==10070== Releasing lock... [2025-02-15 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:46:04 [end_date_ymd] => 2025-02-15 05:46:04 [RateCDR] => 1 ) [2025-02-15 05: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-15 02:46:04' and `end` < '2025-02-15 05: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-15 05:46:18] Production.INFO: count ==139 [2025-02-15 05:46:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:46:04 - End Time 2025-02-15 05:46:04 [2025-02-15 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479029', 'tblTempUsageDetail_20' ) start [2025-02-15 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479029', 'tblTempUsageDetail_20' ) end [2025-02-15 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479029', 'tblTempVendorCDR_20' ) start [2025-02-15 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479029', 'tblTempVendorCDR_20' ) end [2025-02-15 05:46:18] Production.INFO: ProcessCDR(1,14479029,1,1,2) [2025-02-15 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479029', 'tblTempUsageDetail_20' ) start [2025-02-15 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479029', 'tblTempUsageDetail_20' ) end [2025-02-15 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:46:22] Production.INFO: ==10156== Releasing lock... [2025-02-15 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:46:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:47:05 [end_date_ymd] => 2025-02-15 05:47:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:47:05' and `end` < '2025-02-15 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-15 05:47:18] Production.INFO: count ==139 [2025-02-15 05:47:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:47:05 - End Time 2025-02-15 05:47:05 [2025-02-15 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479034', 'tblTempUsageDetail_20' ) start [2025-02-15 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479034', 'tblTempUsageDetail_20' ) end [2025-02-15 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479034', 'tblTempVendorCDR_20' ) start [2025-02-15 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479034', 'tblTempVendorCDR_20' ) end [2025-02-15 05:47:18] Production.INFO: ProcessCDR(1,14479034,1,1,2) [2025-02-15 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479034', 'tblTempUsageDetail_20' ) start [2025-02-15 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479034', 'tblTempUsageDetail_20' ) end [2025-02-15 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:47:21] Production.INFO: ==10240== Releasing lock... [2025-02-15 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:48:05 [end_date_ymd] => 2025-02-15 05:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:48:05' and `end` < '2025-02-15 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-15 05:48:18] Production.INFO: count ==139 [2025-02-15 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:48:05 - End Time 2025-02-15 05:48:05 [2025-02-15 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479039', 'tblTempUsageDetail_20' ) start [2025-02-15 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479039', 'tblTempUsageDetail_20' ) end [2025-02-15 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479039', 'tblTempVendorCDR_20' ) start [2025-02-15 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479039', 'tblTempVendorCDR_20' ) end [2025-02-15 05:48:18] Production.INFO: ProcessCDR(1,14479039,1,1,2) [2025-02-15 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479039', 'tblTempUsageDetail_20' ) start [2025-02-15 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479039', 'tblTempUsageDetail_20' ) end [2025-02-15 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:48:21] Production.INFO: ==10318== Releasing lock... [2025-02-15 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:49:05 [end_date_ymd] => 2025-02-15 05:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:49:05' and `end` < '2025-02-15 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-15 05:49:19] Production.INFO: count ==138 [2025-02-15 05:49:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:49:05 - End Time 2025-02-15 05:49:05 [2025-02-15 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479044', 'tblTempUsageDetail_20' ) start [2025-02-15 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479044', 'tblTempUsageDetail_20' ) end [2025-02-15 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479044', 'tblTempVendorCDR_20' ) start [2025-02-15 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479044', 'tblTempVendorCDR_20' ) end [2025-02-15 05:49:19] Production.INFO: ProcessCDR(1,14479044,1,1,2) [2025-02-15 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479044', 'tblTempUsageDetail_20' ) start [2025-02-15 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479044', 'tblTempUsageDetail_20' ) end [2025-02-15 05:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:49:23] Production.INFO: ==10397== Releasing lock... [2025-02-15 05:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:49:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:50:06 [end_date_ymd] => 2025-02-15 05:50:06 [RateCDR] => 1 ) [2025-02-15 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-15 02:50:06' and `end` < '2025-02-15 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-15 05:50:20] Production.INFO: count ==138 [2025-02-15 05:50:20] Production.ERROR: pbx CDR StartTime 2025-02-15 02:50:06 - End Time 2025-02-15 05:50:06 [2025-02-15 05:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479050', 'tblTempUsageDetail_20' ) start [2025-02-15 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479050', 'tblTempUsageDetail_20' ) end [2025-02-15 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479050', 'tblTempVendorCDR_20' ) start [2025-02-15 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479050', 'tblTempVendorCDR_20' ) end [2025-02-15 05:50:20] Production.INFO: ProcessCDR(1,14479050,1,1,2) [2025-02-15 05:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479050', 'tblTempUsageDetail_20' ) start [2025-02-15 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479050', 'tblTempUsageDetail_20' ) end [2025-02-15 05:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:50:23] Production.INFO: ==10478== Releasing lock... [2025-02-15 05:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:51:05 [end_date_ymd] => 2025-02-15 05:51:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:51:05' and `end` < '2025-02-15 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-15 05:51:18] Production.INFO: count ==138 [2025-02-15 05:51:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:51:05 - End Time 2025-02-15 05:51:05 [2025-02-15 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479055', 'tblTempUsageDetail_20' ) start [2025-02-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479055', 'tblTempUsageDetail_20' ) end [2025-02-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479055', 'tblTempVendorCDR_20' ) start [2025-02-15 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479055', 'tblTempVendorCDR_20' ) end [2025-02-15 05:51:18] Production.INFO: ProcessCDR(1,14479055,1,1,2) [2025-02-15 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479055', 'tblTempUsageDetail_20' ) start [2025-02-15 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479055', 'tblTempUsageDetail_20' ) end [2025-02-15 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:51:21] Production.INFO: ==10553== Releasing lock... [2025-02-15 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:52:06 [end_date_ymd] => 2025-02-15 05:52:06 [RateCDR] => 1 ) [2025-02-15 05: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-15 02:52:06' and `end` < '2025-02-15 05: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-15 05:52:20] Production.INFO: count ==138 [2025-02-15 05:52:20] Production.ERROR: pbx CDR StartTime 2025-02-15 02:52:06 - End Time 2025-02-15 05:52:06 [2025-02-15 05:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479060', 'tblTempUsageDetail_20' ) start [2025-02-15 05:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479060', 'tblTempUsageDetail_20' ) end [2025-02-15 05:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479060', 'tblTempVendorCDR_20' ) start [2025-02-15 05:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479060', 'tblTempVendorCDR_20' ) end [2025-02-15 05:52:20] Production.INFO: ProcessCDR(1,14479060,1,1,2) [2025-02-15 05:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479060', 'tblTempUsageDetail_20' ) start [2025-02-15 05:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479060', 'tblTempUsageDetail_20' ) end [2025-02-15 05:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:52:23] Production.INFO: ==10633== Releasing lock... [2025-02-15 05:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:52:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:53:05 [end_date_ymd] => 2025-02-15 05:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:53:05' and `end` < '2025-02-15 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-15 05:53:18] Production.INFO: count ==137 [2025-02-15 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:53:05 - End Time 2025-02-15 05:53:05 [2025-02-15 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479065', 'tblTempUsageDetail_20' ) start [2025-02-15 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479065', 'tblTempUsageDetail_20' ) end [2025-02-15 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479065', 'tblTempVendorCDR_20' ) start [2025-02-15 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479065', 'tblTempVendorCDR_20' ) end [2025-02-15 05:53:18] Production.INFO: ProcessCDR(1,14479065,1,1,2) [2025-02-15 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479065', 'tblTempUsageDetail_20' ) start [2025-02-15 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479065', 'tblTempUsageDetail_20' ) end [2025-02-15 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:53:22] Production.INFO: ==10715== Releasing lock... [2025-02-15 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:53:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:54:05 [end_date_ymd] => 2025-02-15 05:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:54:05' and `end` < '2025-02-15 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-15 05:54:19] Production.INFO: count ==137 [2025-02-15 05:54:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:54:05 - End Time 2025-02-15 05:54:05 [2025-02-15 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479070', 'tblTempUsageDetail_20' ) start [2025-02-15 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479070', 'tblTempUsageDetail_20' ) end [2025-02-15 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479070', 'tblTempVendorCDR_20' ) start [2025-02-15 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479070', 'tblTempVendorCDR_20' ) end [2025-02-15 05:54:19] Production.INFO: ProcessCDR(1,14479070,1,1,2) [2025-02-15 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479070', 'tblTempUsageDetail_20' ) start [2025-02-15 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479070', 'tblTempUsageDetail_20' ) end [2025-02-15 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:54:22] Production.INFO: ==10792== Releasing lock... [2025-02-15 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:55:05 [end_date_ymd] => 2025-02-15 05:55:05 [RateCDR] => 1 ) [2025-02-15 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:55:05' and `end` < '2025-02-15 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:55:18] Production.INFO: count ==137 [2025-02-15 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:55:05 - End Time 2025-02-15 05:55:05 [2025-02-15 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479075', 'tblTempUsageDetail_20' ) start [2025-02-15 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479075', 'tblTempUsageDetail_20' ) end [2025-02-15 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479075', 'tblTempVendorCDR_20' ) start [2025-02-15 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479075', 'tblTempVendorCDR_20' ) end [2025-02-15 05:55:18] Production.INFO: ProcessCDR(1,14479075,1,1,2) [2025-02-15 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479075', 'tblTempUsageDetail_20' ) start [2025-02-15 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479075', 'tblTempUsageDetail_20' ) end [2025-02-15 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:55:21] Production.INFO: ==10872== Releasing lock... [2025-02-15 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:56:06 [end_date_ymd] => 2025-02-15 05:56:06 [RateCDR] => 1 ) [2025-02-15 05:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 02:56:06' and `end` < '2025-02-15 05:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 05:56:19] Production.INFO: count ==137 [2025-02-15 05:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:56:06 - End Time 2025-02-15 05:56:06 [2025-02-15 05:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479080', 'tblTempUsageDetail_20' ) start [2025-02-15 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479080', 'tblTempUsageDetail_20' ) end [2025-02-15 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479080', 'tblTempVendorCDR_20' ) start [2025-02-15 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479080', 'tblTempVendorCDR_20' ) end [2025-02-15 05:56:19] Production.INFO: ProcessCDR(1,14479080,1,1,2) [2025-02-15 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479080', 'tblTempUsageDetail_20' ) start [2025-02-15 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479080', 'tblTempUsageDetail_20' ) end [2025-02-15 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:56:22] Production.INFO: ==10950== Releasing lock... [2025-02-15 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:57:05 [end_date_ymd] => 2025-02-15 05:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:57:05' and `end` < '2025-02-15 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-15 05:57:18] Production.INFO: count ==137 [2025-02-15 05:57:18] Production.ERROR: pbx CDR StartTime 2025-02-15 02:57:05 - End Time 2025-02-15 05:57:05 [2025-02-15 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479085', 'tblTempUsageDetail_20' ) start [2025-02-15 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479085', 'tblTempUsageDetail_20' ) end [2025-02-15 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479085', 'tblTempVendorCDR_20' ) start [2025-02-15 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479085', 'tblTempVendorCDR_20' ) end [2025-02-15 05:57:18] Production.INFO: ProcessCDR(1,14479085,1,1,2) [2025-02-15 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479085', 'tblTempUsageDetail_20' ) start [2025-02-15 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479085', 'tblTempUsageDetail_20' ) end [2025-02-15 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:57:22] Production.INFO: ==11066== Releasing lock... [2025-02-15 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:57:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:58:05 [end_date_ymd] => 2025-02-15 05:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:58:05' and `end` < '2025-02-15 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-15 05:58:19] Production.INFO: count ==137 [2025-02-15 05:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:58:05 - End Time 2025-02-15 05:58:05 [2025-02-15 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479090', 'tblTempUsageDetail_20' ) start [2025-02-15 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479090', 'tblTempUsageDetail_20' ) end [2025-02-15 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479090', 'tblTempVendorCDR_20' ) start [2025-02-15 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479090', 'tblTempVendorCDR_20' ) end [2025-02-15 05:58:19] Production.INFO: ProcessCDR(1,14479090,1,1,2) [2025-02-15 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479090', 'tblTempUsageDetail_20' ) start [2025-02-15 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479090', 'tblTempUsageDetail_20' ) end [2025-02-15 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:58:22] Production.INFO: ==11139== Releasing lock... [2025-02-15 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 02:59:05 [end_date_ymd] => 2025-02-15 05:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 02:59:05' and `end` < '2025-02-15 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-15 05:59:19] Production.INFO: count ==137 [2025-02-15 05:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 02:59:05 - End Time 2025-02-15 05:59:05 [2025-02-15 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479095', 'tblTempUsageDetail_20' ) start [2025-02-15 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479095', 'tblTempUsageDetail_20' ) end [2025-02-15 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479095', 'tblTempVendorCDR_20' ) start [2025-02-15 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479095', 'tblTempVendorCDR_20' ) end [2025-02-15 05:59:19] Production.INFO: ProcessCDR(1,14479095,1,1,2) [2025-02-15 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479095', 'tblTempUsageDetail_20' ) start [2025-02-15 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479095', 'tblTempUsageDetail_20' ) end [2025-02-15 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 05:59:22] Production.INFO: ==11218== Releasing lock... [2025-02-15 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 05:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:00:06 [end_date_ymd] => 2025-02-15 06:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 03:00:06' and `end` < '2025-02-15 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-15 06:00:19] Production.INFO: count ==137 [2025-02-15 06:00:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:00:06 - End Time 2025-02-15 06:00:06 [2025-02-15 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479100', 'tblTempUsageDetail_20' ) start [2025-02-15 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479100', 'tblTempUsageDetail_20' ) end [2025-02-15 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479100', 'tblTempVendorCDR_20' ) start [2025-02-15 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479100', 'tblTempVendorCDR_20' ) end [2025-02-15 06:00:19] Production.INFO: ProcessCDR(1,14479100,1,1,2) [2025-02-15 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479100', 'tblTempUsageDetail_20' ) start [2025-02-15 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479100', 'tblTempUsageDetail_20' ) end [2025-02-15 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:00:22] Production.INFO: ==11305== Releasing lock... [2025-02-15 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:01:05 [end_date_ymd] => 2025-02-15 06:01:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:01:05' and `end` < '2025-02-15 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-15 06:01:19] Production.INFO: count ==137 [2025-02-15 06:01:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:01:05 - End Time 2025-02-15 06:01:05 [2025-02-15 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479106', 'tblTempUsageDetail_20' ) start [2025-02-15 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479106', 'tblTempUsageDetail_20' ) end [2025-02-15 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479106', 'tblTempVendorCDR_20' ) start [2025-02-15 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479106', 'tblTempVendorCDR_20' ) end [2025-02-15 06:01:19] Production.INFO: ProcessCDR(1,14479106,1,1,2) [2025-02-15 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479106', 'tblTempUsageDetail_20' ) start [2025-02-15 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479106', 'tblTempUsageDetail_20' ) end [2025-02-15 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:01:22] Production.INFO: ==11389== Releasing lock... [2025-02-15 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:02:05 [end_date_ymd] => 2025-02-15 06:02:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:02:05' and `end` < '2025-02-15 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-15 06:02:19] Production.INFO: count ==137 [2025-02-15 06:02:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:02:05 - End Time 2025-02-15 06:02:05 [2025-02-15 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479111', 'tblTempUsageDetail_20' ) start [2025-02-15 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479111', 'tblTempUsageDetail_20' ) end [2025-02-15 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479111', 'tblTempVendorCDR_20' ) start [2025-02-15 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479111', 'tblTempVendorCDR_20' ) end [2025-02-15 06:02:19] Production.INFO: ProcessCDR(1,14479111,1,1,2) [2025-02-15 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479111', 'tblTempUsageDetail_20' ) start [2025-02-15 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479111', 'tblTempUsageDetail_20' ) end [2025-02-15 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:02:22] Production.INFO: ==11461== Releasing lock... [2025-02-15 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:03:05 [end_date_ymd] => 2025-02-15 06:03:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:03:05' and `end` < '2025-02-15 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-15 06:03:18] Production.INFO: count ==137 [2025-02-15 06:03:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:03:05 - End Time 2025-02-15 06:03:05 [2025-02-15 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479116', 'tblTempUsageDetail_20' ) start [2025-02-15 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479116', 'tblTempUsageDetail_20' ) end [2025-02-15 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479116', 'tblTempVendorCDR_20' ) start [2025-02-15 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479116', 'tblTempVendorCDR_20' ) end [2025-02-15 06:03:18] Production.INFO: ProcessCDR(1,14479116,1,1,2) [2025-02-15 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479116', 'tblTempUsageDetail_20' ) start [2025-02-15 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479116', 'tblTempUsageDetail_20' ) end [2025-02-15 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:03:21] Production.INFO: ==11534== Releasing lock... [2025-02-15 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:04:05 [end_date_ymd] => 2025-02-15 06:04:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:04:05' and `end` < '2025-02-15 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-15 06:04:18] Production.INFO: count ==132 [2025-02-15 06:04:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:04:05 - End Time 2025-02-15 06:04:05 [2025-02-15 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479121', 'tblTempUsageDetail_20' ) start [2025-02-15 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479121', 'tblTempUsageDetail_20' ) end [2025-02-15 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479121', 'tblTempVendorCDR_20' ) start [2025-02-15 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479121', 'tblTempVendorCDR_20' ) end [2025-02-15 06:04:18] Production.INFO: ProcessCDR(1,14479121,1,1,2) [2025-02-15 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479121', 'tblTempUsageDetail_20' ) start [2025-02-15 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479121', 'tblTempUsageDetail_20' ) end [2025-02-15 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:04:21] Production.INFO: ==11619== Releasing lock... [2025-02-15 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:05:05 [end_date_ymd] => 2025-02-15 06:05:05 [RateCDR] => 1 ) [2025-02-15 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:05:05' and `end` < '2025-02-15 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:05:18] Production.INFO: count ==132 [2025-02-15 06:05:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:05:05 - End Time 2025-02-15 06:05:05 [2025-02-15 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479126', 'tblTempUsageDetail_20' ) start [2025-02-15 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479126', 'tblTempUsageDetail_20' ) end [2025-02-15 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479126', 'tblTempVendorCDR_20' ) start [2025-02-15 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479126', 'tblTempVendorCDR_20' ) end [2025-02-15 06:05:18] Production.INFO: ProcessCDR(1,14479126,1,1,2) [2025-02-15 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479126', 'tblTempUsageDetail_20' ) start [2025-02-15 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479126', 'tblTempUsageDetail_20' ) end [2025-02-15 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:05:21] Production.INFO: ==11728== Releasing lock... [2025-02-15 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:06:05 [end_date_ymd] => 2025-02-15 06:06:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:06:05' and `end` < '2025-02-15 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-15 06:06:18] Production.INFO: count ==131 [2025-02-15 06:06:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:06:05 - End Time 2025-02-15 06:06:05 [2025-02-15 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479131', 'tblTempUsageDetail_20' ) start [2025-02-15 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479131', 'tblTempUsageDetail_20' ) end [2025-02-15 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479131', 'tblTempVendorCDR_20' ) start [2025-02-15 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479131', 'tblTempVendorCDR_20' ) end [2025-02-15 06:06:18] Production.INFO: ProcessCDR(1,14479131,1,1,2) [2025-02-15 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479131', 'tblTempUsageDetail_20' ) start [2025-02-15 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479131', 'tblTempUsageDetail_20' ) end [2025-02-15 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:06:21] Production.INFO: ==11839== Releasing lock... [2025-02-15 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:07:05 [end_date_ymd] => 2025-02-15 06:07:05 [RateCDR] => 1 ) [2025-02-15 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:07:05' and `end` < '2025-02-15 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:07:19] Production.INFO: count ==131 [2025-02-15 06:07:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:07:05 - End Time 2025-02-15 06:07:05 [2025-02-15 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479136', 'tblTempUsageDetail_20' ) start [2025-02-15 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479136', 'tblTempUsageDetail_20' ) end [2025-02-15 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479136', 'tblTempVendorCDR_20' ) start [2025-02-15 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479136', 'tblTempVendorCDR_20' ) end [2025-02-15 06:07:19] Production.INFO: ProcessCDR(1,14479136,1,1,2) [2025-02-15 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479136', 'tblTempUsageDetail_20' ) start [2025-02-15 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479136', 'tblTempUsageDetail_20' ) end [2025-02-15 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:07:22] Production.INFO: ==11949== Releasing lock... [2025-02-15 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:07:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:08:05 [end_date_ymd] => 2025-02-15 06:08:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:08:05' and `end` < '2025-02-15 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-15 06:08:18] Production.INFO: count ==131 [2025-02-15 06:08:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:08:05 - End Time 2025-02-15 06:08:05 [2025-02-15 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479141', 'tblTempUsageDetail_20' ) start [2025-02-15 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479141', 'tblTempUsageDetail_20' ) end [2025-02-15 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479141', 'tblTempVendorCDR_20' ) start [2025-02-15 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479141', 'tblTempVendorCDR_20' ) end [2025-02-15 06:08:18] Production.INFO: ProcessCDR(1,14479141,1,1,2) [2025-02-15 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479141', 'tblTempUsageDetail_20' ) start [2025-02-15 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479141', 'tblTempUsageDetail_20' ) end [2025-02-15 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:08:21] Production.INFO: ==12058== Releasing lock... [2025-02-15 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:09:06 [end_date_ymd] => 2025-02-15 06:09:06 [RateCDR] => 1 ) [2025-02-15 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-15 03:09:06' and `end` < '2025-02-15 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-15 06:09:19] Production.INFO: count ==131 [2025-02-15 06:09:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:09:06 - End Time 2025-02-15 06:09:06 [2025-02-15 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479146', 'tblTempUsageDetail_20' ) start [2025-02-15 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479146', 'tblTempUsageDetail_20' ) end [2025-02-15 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479146', 'tblTempVendorCDR_20' ) start [2025-02-15 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479146', 'tblTempVendorCDR_20' ) end [2025-02-15 06:09:19] Production.INFO: ProcessCDR(1,14479146,1,1,2) [2025-02-15 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479146', 'tblTempUsageDetail_20' ) start [2025-02-15 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479146', 'tblTempUsageDetail_20' ) end [2025-02-15 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:09:22] Production.INFO: ==12166== Releasing lock... [2025-02-15 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:09:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:10:06 [end_date_ymd] => 2025-02-15 06:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 03:10:06' and `end` < '2025-02-15 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-15 06:10:20] Production.INFO: count ==131 [2025-02-15 06:10:20] Production.ERROR: pbx CDR StartTime 2025-02-15 03:10:06 - End Time 2025-02-15 06:10:06 [2025-02-15 06:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479152', 'tblTempUsageDetail_20' ) start [2025-02-15 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479152', 'tblTempUsageDetail_20' ) end [2025-02-15 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479152', 'tblTempVendorCDR_20' ) start [2025-02-15 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479152', 'tblTempVendorCDR_20' ) end [2025-02-15 06:10:20] Production.INFO: ProcessCDR(1,14479152,1,1,2) [2025-02-15 06:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479152', 'tblTempUsageDetail_20' ) start [2025-02-15 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479152', 'tblTempUsageDetail_20' ) end [2025-02-15 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:10:23] Production.INFO: ==12275== Releasing lock... [2025-02-15 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:10:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:11:05 [end_date_ymd] => 2025-02-15 06:11:05 [RateCDR] => 1 ) [2025-02-15 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:11:05' and `end` < '2025-02-15 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:11:19] Production.INFO: count ==131 [2025-02-15 06:11:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:11:05 - End Time 2025-02-15 06:11:05 [2025-02-15 06:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479157', 'tblTempUsageDetail_20' ) start [2025-02-15 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479157', 'tblTempUsageDetail_20' ) end [2025-02-15 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479157', 'tblTempVendorCDR_20' ) start [2025-02-15 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479157', 'tblTempVendorCDR_20' ) end [2025-02-15 06:11:19] Production.INFO: ProcessCDR(1,14479157,1,1,2) [2025-02-15 06:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479157', 'tblTempUsageDetail_20' ) start [2025-02-15 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479157', 'tblTempUsageDetail_20' ) end [2025-02-15 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:11:22] Production.INFO: ==12386== Releasing lock... [2025-02-15 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:11:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:12:05 [end_date_ymd] => 2025-02-15 06:12:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:12:05' and `end` < '2025-02-15 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-15 06:12:17] Production.INFO: count ==131 [2025-02-15 06:12:17] Production.ERROR: pbx CDR StartTime 2025-02-15 03:12:05 - End Time 2025-02-15 06:12:05 [2025-02-15 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479162', 'tblTempUsageDetail_20' ) start [2025-02-15 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479162', 'tblTempUsageDetail_20' ) end [2025-02-15 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479162', 'tblTempVendorCDR_20' ) start [2025-02-15 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479162', 'tblTempVendorCDR_20' ) end [2025-02-15 06:12:18] Production.INFO: ProcessCDR(1,14479162,1,1,2) [2025-02-15 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479162', 'tblTempUsageDetail_20' ) start [2025-02-15 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479162', 'tblTempUsageDetail_20' ) end [2025-02-15 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:12:21] Production.INFO: ==12532== Releasing lock... [2025-02-15 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:13:05 [end_date_ymd] => 2025-02-15 06:13:05 [RateCDR] => 1 ) [2025-02-15 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:13:05' and `end` < '2025-02-15 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:13:19] Production.INFO: count ==131 [2025-02-15 06:13:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:13:05 - End Time 2025-02-15 06:13:05 [2025-02-15 06:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479167', 'tblTempUsageDetail_20' ) start [2025-02-15 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479167', 'tblTempUsageDetail_20' ) end [2025-02-15 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479167', 'tblTempVendorCDR_20' ) start [2025-02-15 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479167', 'tblTempVendorCDR_20' ) end [2025-02-15 06:13:19] Production.INFO: ProcessCDR(1,14479167,1,1,2) [2025-02-15 06:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479167', 'tblTempUsageDetail_20' ) start [2025-02-15 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479167', 'tblTempUsageDetail_20' ) end [2025-02-15 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:13:22] Production.INFO: ==12640== Releasing lock... [2025-02-15 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:13:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:14:05 [end_date_ymd] => 2025-02-15 06:14:05 [RateCDR] => 1 ) [2025-02-15 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:14:05' and `end` < '2025-02-15 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:14:19] Production.INFO: count ==131 [2025-02-15 06:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:14:05 - End Time 2025-02-15 06:14:05 [2025-02-15 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479172', 'tblTempUsageDetail_20' ) start [2025-02-15 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479172', 'tblTempUsageDetail_20' ) end [2025-02-15 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479172', 'tblTempVendorCDR_20' ) start [2025-02-15 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479172', 'tblTempVendorCDR_20' ) end [2025-02-15 06:14:19] Production.INFO: ProcessCDR(1,14479172,1,1,2) [2025-02-15 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479172', 'tblTempUsageDetail_20' ) start [2025-02-15 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479172', 'tblTempUsageDetail_20' ) end [2025-02-15 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:14:22] Production.INFO: ==12754== Releasing lock... [2025-02-15 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:14:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:15:05 [end_date_ymd] => 2025-02-15 06:15:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:15:05' and `end` < '2025-02-15 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-15 06:15:19] Production.INFO: count ==131 [2025-02-15 06:15:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:15:05 - End Time 2025-02-15 06:15:05 [2025-02-15 06:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479177', 'tblTempUsageDetail_20' ) start [2025-02-15 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479177', 'tblTempUsageDetail_20' ) end [2025-02-15 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479177', 'tblTempVendorCDR_20' ) start [2025-02-15 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479177', 'tblTempVendorCDR_20' ) end [2025-02-15 06:15:19] Production.INFO: ProcessCDR(1,14479177,1,1,2) [2025-02-15 06:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479177', 'tblTempUsageDetail_20' ) start [2025-02-15 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479177', 'tblTempUsageDetail_20' ) end [2025-02-15 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:15:22] Production.INFO: ==12872== Releasing lock... [2025-02-15 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:15:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:16:05 [end_date_ymd] => 2025-02-15 06:16:05 [RateCDR] => 1 ) [2025-02-15 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:16:05' and `end` < '2025-02-15 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:16:18] Production.INFO: count ==131 [2025-02-15 06:16:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:16:05 - End Time 2025-02-15 06:16:05 [2025-02-15 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479182', 'tblTempUsageDetail_20' ) start [2025-02-15 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479182', 'tblTempUsageDetail_20' ) end [2025-02-15 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479182', 'tblTempVendorCDR_20' ) start [2025-02-15 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479182', 'tblTempVendorCDR_20' ) end [2025-02-15 06:16:18] Production.INFO: ProcessCDR(1,14479182,1,1,2) [2025-02-15 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479182', 'tblTempUsageDetail_20' ) start [2025-02-15 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479182', 'tblTempUsageDetail_20' ) end [2025-02-15 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:16:21] Production.INFO: ==12981== Releasing lock... [2025-02-15 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:17:05 [end_date_ymd] => 2025-02-15 06:17:05 [RateCDR] => 1 ) [2025-02-15 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:17:05' and `end` < '2025-02-15 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:17:19] Production.INFO: count ==129 [2025-02-15 06:17:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:17:05 - End Time 2025-02-15 06:17:05 [2025-02-15 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479187', 'tblTempUsageDetail_20' ) start [2025-02-15 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479187', 'tblTempUsageDetail_20' ) end [2025-02-15 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479187', 'tblTempVendorCDR_20' ) start [2025-02-15 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479187', 'tblTempVendorCDR_20' ) end [2025-02-15 06:17:19] Production.INFO: ProcessCDR(1,14479187,1,1,2) [2025-02-15 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479187', 'tblTempUsageDetail_20' ) start [2025-02-15 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479187', 'tblTempUsageDetail_20' ) end [2025-02-15 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:17:22] Production.INFO: ==13090== Releasing lock... [2025-02-15 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:17:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:18:06 [end_date_ymd] => 2025-02-15 06:18:06 [RateCDR] => 1 ) [2025-02-15 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-15 03:18:06' and `end` < '2025-02-15 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-15 06:18:19] Production.INFO: count ==129 [2025-02-15 06:18:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:18:06 - End Time 2025-02-15 06:18:06 [2025-02-15 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479192', 'tblTempUsageDetail_20' ) start [2025-02-15 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479192', 'tblTempUsageDetail_20' ) end [2025-02-15 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479192', 'tblTempVendorCDR_20' ) start [2025-02-15 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479192', 'tblTempVendorCDR_20' ) end [2025-02-15 06:18:19] Production.INFO: ProcessCDR(1,14479192,1,1,2) [2025-02-15 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479192', 'tblTempUsageDetail_20' ) start [2025-02-15 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479192', 'tblTempUsageDetail_20' ) end [2025-02-15 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:18:23] Production.INFO: ==13166== Releasing lock... [2025-02-15 06:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:18:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:19:05 [end_date_ymd] => 2025-02-15 06:19:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:19:05' and `end` < '2025-02-15 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-15 06:19:18] Production.INFO: count ==129 [2025-02-15 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:19:05 - End Time 2025-02-15 06:19:05 [2025-02-15 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479197', 'tblTempUsageDetail_20' ) start [2025-02-15 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479197', 'tblTempUsageDetail_20' ) end [2025-02-15 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479197', 'tblTempVendorCDR_20' ) start [2025-02-15 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479197', 'tblTempVendorCDR_20' ) end [2025-02-15 06:19:18] Production.INFO: ProcessCDR(1,14479197,1,1,2) [2025-02-15 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479197', 'tblTempUsageDetail_20' ) start [2025-02-15 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479197', 'tblTempUsageDetail_20' ) end [2025-02-15 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:19:21] Production.INFO: ==13242== Releasing lock... [2025-02-15 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:20:06 [end_date_ymd] => 2025-02-15 06:20:06 [RateCDR] => 1 ) [2025-02-15 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-15 03:20:06' and `end` < '2025-02-15 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-15 06:20:19] Production.INFO: count ==134 [2025-02-15 06:20:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:20:06 - End Time 2025-02-15 06:20:06 [2025-02-15 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479203', 'tblTempUsageDetail_20' ) start [2025-02-15 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479203', 'tblTempUsageDetail_20' ) end [2025-02-15 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479203', 'tblTempVendorCDR_20' ) start [2025-02-15 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479203', 'tblTempVendorCDR_20' ) end [2025-02-15 06:20:19] Production.INFO: ProcessCDR(1,14479203,1,1,2) [2025-02-15 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479203', 'tblTempUsageDetail_20' ) start [2025-02-15 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479203', 'tblTempUsageDetail_20' ) end [2025-02-15 06:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:20:23] Production.INFO: ==13323== Releasing lock... [2025-02-15 06:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:20:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:21:05 [end_date_ymd] => 2025-02-15 06:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:21:05' and `end` < '2025-02-15 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-15 06:21:18] Production.INFO: count ==134 [2025-02-15 06:21:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:21:05 - End Time 2025-02-15 06:21:05 [2025-02-15 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479208', 'tblTempUsageDetail_20' ) start [2025-02-15 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479208', 'tblTempUsageDetail_20' ) end [2025-02-15 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479208', 'tblTempVendorCDR_20' ) start [2025-02-15 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479208', 'tblTempVendorCDR_20' ) end [2025-02-15 06:21:18] Production.INFO: ProcessCDR(1,14479208,1,1,2) [2025-02-15 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479208', 'tblTempUsageDetail_20' ) start [2025-02-15 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479208', 'tblTempUsageDetail_20' ) end [2025-02-15 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:21:21] Production.INFO: ==13400== Releasing lock... [2025-02-15 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:22:05 [end_date_ymd] => 2025-02-15 06:22:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:22:05' and `end` < '2025-02-15 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-15 06:22:19] Production.INFO: count ==134 [2025-02-15 06:22:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:22:05 - End Time 2025-02-15 06:22:05 [2025-02-15 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479213', 'tblTempUsageDetail_20' ) start [2025-02-15 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479213', 'tblTempUsageDetail_20' ) end [2025-02-15 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479213', 'tblTempVendorCDR_20' ) start [2025-02-15 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479213', 'tblTempVendorCDR_20' ) end [2025-02-15 06:22:19] Production.INFO: ProcessCDR(1,14479213,1,1,2) [2025-02-15 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479213', 'tblTempUsageDetail_20' ) start [2025-02-15 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479213', 'tblTempUsageDetail_20' ) end [2025-02-15 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:22:22] Production.INFO: ==13478== Releasing lock... [2025-02-15 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:23:05 [end_date_ymd] => 2025-02-15 06:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:23:05' and `end` < '2025-02-15 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-15 06:23:18] Production.INFO: count ==134 [2025-02-15 06:23:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:23:05 - End Time 2025-02-15 06:23:05 [2025-02-15 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479218', 'tblTempUsageDetail_20' ) start [2025-02-15 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479218', 'tblTempUsageDetail_20' ) end [2025-02-15 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479218', 'tblTempVendorCDR_20' ) start [2025-02-15 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479218', 'tblTempVendorCDR_20' ) end [2025-02-15 06:23:18] Production.INFO: ProcessCDR(1,14479218,1,1,2) [2025-02-15 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479218', 'tblTempUsageDetail_20' ) start [2025-02-15 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479218', 'tblTempUsageDetail_20' ) end [2025-02-15 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:23:22] Production.INFO: ==13554== Releasing lock... [2025-02-15 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:23:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:24:05 [end_date_ymd] => 2025-02-15 06:24:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:24:05' and `end` < '2025-02-15 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-15 06:24:18] Production.INFO: count ==135 [2025-02-15 06:24:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:24:05 - End Time 2025-02-15 06:24:05 [2025-02-15 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479223', 'tblTempUsageDetail_20' ) start [2025-02-15 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479223', 'tblTempUsageDetail_20' ) end [2025-02-15 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479223', 'tblTempVendorCDR_20' ) start [2025-02-15 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479223', 'tblTempVendorCDR_20' ) end [2025-02-15 06:24:18] Production.INFO: ProcessCDR(1,14479223,1,1,2) [2025-02-15 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479223', 'tblTempUsageDetail_20' ) start [2025-02-15 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479223', 'tblTempUsageDetail_20' ) end [2025-02-15 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:24:21] Production.INFO: ==13633== Releasing lock... [2025-02-15 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:25:05 [end_date_ymd] => 2025-02-15 06:25:05 [RateCDR] => 1 ) [2025-02-15 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:25:05' and `end` < '2025-02-15 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:25:18] Production.INFO: count ==138 [2025-02-15 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:25:05 - End Time 2025-02-15 06:25:05 [2025-02-15 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479228', 'tblTempUsageDetail_20' ) start [2025-02-15 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479228', 'tblTempUsageDetail_20' ) end [2025-02-15 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479228', 'tblTempVendorCDR_20' ) start [2025-02-15 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479228', 'tblTempVendorCDR_20' ) end [2025-02-15 06:25:18] Production.INFO: ProcessCDR(1,14479228,1,1,2) [2025-02-15 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479228', 'tblTempUsageDetail_20' ) start [2025-02-15 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479228', 'tblTempUsageDetail_20' ) end [2025-02-15 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:25:21] Production.INFO: ==13711== Releasing lock... [2025-02-15 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:26:05 [end_date_ymd] => 2025-02-15 06:26:05 [RateCDR] => 1 ) [2025-02-15 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:26:05' and `end` < '2025-02-15 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:26:20] Production.INFO: count ==143 [2025-02-15 06:26:20] Production.ERROR: pbx CDR StartTime 2025-02-15 03:26:05 - End Time 2025-02-15 06:26:05 [2025-02-15 06:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479233', 'tblTempUsageDetail_20' ) start [2025-02-15 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479233', 'tblTempUsageDetail_20' ) end [2025-02-15 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479233', 'tblTempVendorCDR_20' ) start [2025-02-15 06:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479233', 'tblTempVendorCDR_20' ) end [2025-02-15 06:26:20] Production.INFO: ProcessCDR(1,14479233,1,1,2) [2025-02-15 06:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479233', 'tblTempUsageDetail_20' ) start [2025-02-15 06:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479233', 'tblTempUsageDetail_20' ) end [2025-02-15 06:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:26:24] Production.INFO: ==13796== Releasing lock... [2025-02-15 06:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:26:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:27:05 [end_date_ymd] => 2025-02-15 06:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:27:05' and `end` < '2025-02-15 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-15 06:27:18] Production.INFO: count ==143 [2025-02-15 06:27:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:27:05 - End Time 2025-02-15 06:27:05 [2025-02-15 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479238', 'tblTempUsageDetail_20' ) start [2025-02-15 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479238', 'tblTempUsageDetail_20' ) end [2025-02-15 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479238', 'tblTempVendorCDR_20' ) start [2025-02-15 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479238', 'tblTempVendorCDR_20' ) end [2025-02-15 06:27:18] Production.INFO: ProcessCDR(1,14479238,1,1,2) [2025-02-15 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479238', 'tblTempUsageDetail_20' ) start [2025-02-15 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479238', 'tblTempUsageDetail_20' ) end [2025-02-15 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:27:21] Production.INFO: ==13876== Releasing lock... [2025-02-15 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:28:05 [end_date_ymd] => 2025-02-15 06:28:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:28:05' and `end` < '2025-02-15 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-15 06:28:18] Production.INFO: count ==143 [2025-02-15 06:28:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:28:05 - End Time 2025-02-15 06:28:05 [2025-02-15 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479243', 'tblTempUsageDetail_20' ) start [2025-02-15 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479243', 'tblTempUsageDetail_20' ) end [2025-02-15 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479243', 'tblTempVendorCDR_20' ) start [2025-02-15 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479243', 'tblTempVendorCDR_20' ) end [2025-02-15 06:28:19] Production.INFO: ProcessCDR(1,14479243,1,1,2) [2025-02-15 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479243', 'tblTempUsageDetail_20' ) start [2025-02-15 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479243', 'tblTempUsageDetail_20' ) end [2025-02-15 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:28:22] Production.INFO: ==13997== Releasing lock... [2025-02-15 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:28:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:29:04 [end_date_ymd] => 2025-02-15 06:29:04 [RateCDR] => 1 ) [2025-02-15 06: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-15 03:29:04' and `end` < '2025-02-15 06: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-15 06:29:18] Production.INFO: count ==143 [2025-02-15 06:29:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:29:04 - End Time 2025-02-15 06:29:04 [2025-02-15 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479248', 'tblTempUsageDetail_20' ) start [2025-02-15 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479248', 'tblTempUsageDetail_20' ) end [2025-02-15 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479248', 'tblTempVendorCDR_20' ) start [2025-02-15 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479248', 'tblTempVendorCDR_20' ) end [2025-02-15 06:29:18] Production.INFO: ProcessCDR(1,14479248,1,1,2) [2025-02-15 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479248', 'tblTempUsageDetail_20' ) start [2025-02-15 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479248', 'tblTempUsageDetail_20' ) end [2025-02-15 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:29:21] Production.INFO: ==14085== Releasing lock... [2025-02-15 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-15 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:30:06 [end_date_ymd] => 2025-02-15 06:30:06 [RateCDR] => 1 ) [2025-02-15 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-15 03:30:06' and `end` < '2025-02-15 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-15 06:30:19] Production.INFO: count ==147 [2025-02-15 06:30:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:30:06 - End Time 2025-02-15 06:30:06 [2025-02-15 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479254', 'tblTempUsageDetail_20' ) start [2025-02-15 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479254', 'tblTempUsageDetail_20' ) end [2025-02-15 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479254', 'tblTempVendorCDR_20' ) start [2025-02-15 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479254', 'tblTempVendorCDR_20' ) end [2025-02-15 06:30:19] Production.INFO: ProcessCDR(1,14479254,1,1,2) [2025-02-15 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479254', 'tblTempUsageDetail_20' ) start [2025-02-15 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479254', 'tblTempUsageDetail_20' ) end [2025-02-15 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:30:22] Production.INFO: ==14167== Releasing lock... [2025-02-15 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:31:05 [end_date_ymd] => 2025-02-15 06:31:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:31:05' and `end` < '2025-02-15 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-15 06:31:19] Production.INFO: count ==148 [2025-02-15 06:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:31:05 - End Time 2025-02-15 06:31:05 [2025-02-15 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479259', 'tblTempUsageDetail_20' ) start [2025-02-15 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479259', 'tblTempUsageDetail_20' ) end [2025-02-15 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479259', 'tblTempVendorCDR_20' ) start [2025-02-15 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479259', 'tblTempVendorCDR_20' ) end [2025-02-15 06:31:19] Production.INFO: ProcessCDR(1,14479259,1,1,2) [2025-02-15 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479259', 'tblTempUsageDetail_20' ) start [2025-02-15 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479259', 'tblTempUsageDetail_20' ) end [2025-02-15 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:31:22] Production.INFO: ==14247== Releasing lock... [2025-02-15 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:32:05 [end_date_ymd] => 2025-02-15 06:32:05 [RateCDR] => 1 ) [2025-02-15 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:32:05' and `end` < '2025-02-15 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:32:18] Production.INFO: count ==148 [2025-02-15 06:32:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:32:05 - End Time 2025-02-15 06:32:05 [2025-02-15 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479264', 'tblTempUsageDetail_20' ) start [2025-02-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479264', 'tblTempUsageDetail_20' ) end [2025-02-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479264', 'tblTempVendorCDR_20' ) start [2025-02-15 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479264', 'tblTempVendorCDR_20' ) end [2025-02-15 06:32:18] Production.INFO: ProcessCDR(1,14479264,1,1,2) [2025-02-15 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479264', 'tblTempUsageDetail_20' ) start [2025-02-15 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479264', 'tblTempUsageDetail_20' ) end [2025-02-15 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:32:21] Production.INFO: ==14325== Releasing lock... [2025-02-15 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:33:05 [end_date_ymd] => 2025-02-15 06:33:05 [RateCDR] => 1 ) [2025-02-15 06: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-15 03:33:05' and `end` < '2025-02-15 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-15 06:33:19] Production.INFO: count ==148 [2025-02-15 06:33:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:33:05 - End Time 2025-02-15 06:33:05 [2025-02-15 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479269', 'tblTempUsageDetail_20' ) start [2025-02-15 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479269', 'tblTempUsageDetail_20' ) end [2025-02-15 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479269', 'tblTempVendorCDR_20' ) start [2025-02-15 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479269', 'tblTempVendorCDR_20' ) end [2025-02-15 06:33:19] Production.INFO: ProcessCDR(1,14479269,1,1,2) [2025-02-15 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479269', 'tblTempUsageDetail_20' ) start [2025-02-15 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479269', 'tblTempUsageDetail_20' ) end [2025-02-15 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:33:22] Production.INFO: ==14402== Releasing lock... [2025-02-15 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:34:05 [end_date_ymd] => 2025-02-15 06:34:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:34:05' and `end` < '2025-02-15 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-15 06:34:19] Production.INFO: count ==148 [2025-02-15 06:34:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:34:05 - End Time 2025-02-15 06:34:05 [2025-02-15 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479274', 'tblTempUsageDetail_20' ) start [2025-02-15 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479274', 'tblTempUsageDetail_20' ) end [2025-02-15 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479274', 'tblTempVendorCDR_20' ) start [2025-02-15 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479274', 'tblTempVendorCDR_20' ) end [2025-02-15 06:34:19] Production.INFO: ProcessCDR(1,14479274,1,1,2) [2025-02-15 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479274', 'tblTempUsageDetail_20' ) start [2025-02-15 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479274', 'tblTempUsageDetail_20' ) end [2025-02-15 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:34:22] Production.INFO: ==14482== Releasing lock... [2025-02-15 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:35:06 [end_date_ymd] => 2025-02-15 06:35:06 [RateCDR] => 1 ) [2025-02-15 06:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:35:06' and `end` < '2025-02-15 06:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:35:19] Production.INFO: count ==148 [2025-02-15 06:35:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:35:06 - End Time 2025-02-15 06:35:06 [2025-02-15 06:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479279', 'tblTempUsageDetail_20' ) start [2025-02-15 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479279', 'tblTempUsageDetail_20' ) end [2025-02-15 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479279', 'tblTempVendorCDR_20' ) start [2025-02-15 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479279', 'tblTempVendorCDR_20' ) end [2025-02-15 06:35:19] Production.INFO: ProcessCDR(1,14479279,1,1,2) [2025-02-15 06:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479279', 'tblTempUsageDetail_20' ) start [2025-02-15 06:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479279', 'tblTempUsageDetail_20' ) end [2025-02-15 06:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:35:23] Production.INFO: ==14558== Releasing lock... [2025-02-15 06:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:35:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:36:05 [end_date_ymd] => 2025-02-15 06:36:05 [RateCDR] => 1 ) [2025-02-15 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:36:05' and `end` < '2025-02-15 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:36:18] Production.INFO: count ==148 [2025-02-15 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:36:05 - End Time 2025-02-15 06:36:05 [2025-02-15 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479284', 'tblTempUsageDetail_20' ) start [2025-02-15 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479284', 'tblTempUsageDetail_20' ) end [2025-02-15 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479284', 'tblTempVendorCDR_20' ) start [2025-02-15 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479284', 'tblTempVendorCDR_20' ) end [2025-02-15 06:36:18] Production.INFO: ProcessCDR(1,14479284,1,1,2) [2025-02-15 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479284', 'tblTempUsageDetail_20' ) start [2025-02-15 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479284', 'tblTempUsageDetail_20' ) end [2025-02-15 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:36:21] Production.INFO: ==14634== Releasing lock... [2025-02-15 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:37:05 [end_date_ymd] => 2025-02-15 06:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:37:05' and `end` < '2025-02-15 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-15 06:37:18] Production.INFO: count ==151 [2025-02-15 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:37:05 - End Time 2025-02-15 06:37:05 [2025-02-15 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479289', 'tblTempUsageDetail_20' ) start [2025-02-15 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479289', 'tblTempUsageDetail_20' ) end [2025-02-15 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479289', 'tblTempVendorCDR_20' ) start [2025-02-15 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479289', 'tblTempVendorCDR_20' ) end [2025-02-15 06:37:18] Production.INFO: ProcessCDR(1,14479289,1,1,2) [2025-02-15 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479289', 'tblTempUsageDetail_20' ) start [2025-02-15 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479289', 'tblTempUsageDetail_20' ) end [2025-02-15 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:37:21] Production.INFO: ==14710== Releasing lock... [2025-02-15 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:38:05 [end_date_ymd] => 2025-02-15 06:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:38:05' and `end` < '2025-02-15 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-15 06:38:18] Production.INFO: count ==151 [2025-02-15 06:38:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:38:05 - End Time 2025-02-15 06:38:05 [2025-02-15 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479294', 'tblTempUsageDetail_20' ) start [2025-02-15 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479294', 'tblTempUsageDetail_20' ) end [2025-02-15 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479294', 'tblTempVendorCDR_20' ) start [2025-02-15 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479294', 'tblTempVendorCDR_20' ) end [2025-02-15 06:38:18] Production.INFO: ProcessCDR(1,14479294,1,1,2) [2025-02-15 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479294', 'tblTempUsageDetail_20' ) start [2025-02-15 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479294', 'tblTempUsageDetail_20' ) end [2025-02-15 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:38:21] Production.INFO: ==14792== Releasing lock... [2025-02-15 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:39:05 [end_date_ymd] => 2025-02-15 06:39:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:39:05' and `end` < '2025-02-15 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-15 06:39:18] Production.INFO: count ==151 [2025-02-15 06:39:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:39:05 - End Time 2025-02-15 06:39:05 [2025-02-15 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479299', 'tblTempUsageDetail_20' ) start [2025-02-15 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479299', 'tblTempUsageDetail_20' ) end [2025-02-15 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479299', 'tblTempVendorCDR_20' ) start [2025-02-15 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479299', 'tblTempVendorCDR_20' ) end [2025-02-15 06:39:18] Production.INFO: ProcessCDR(1,14479299,1,1,2) [2025-02-15 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479299', 'tblTempUsageDetail_20' ) start [2025-02-15 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479299', 'tblTempUsageDetail_20' ) end [2025-02-15 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:39:21] Production.INFO: ==14872== Releasing lock... [2025-02-15 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:40:06 [end_date_ymd] => 2025-02-15 06:40:06 [RateCDR] => 1 ) [2025-02-15 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-15 03:40:06' and `end` < '2025-02-15 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-15 06:40:19] Production.INFO: count ==151 [2025-02-15 06:40:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:40:06 - End Time 2025-02-15 06:40:06 [2025-02-15 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479304', 'tblTempUsageDetail_20' ) start [2025-02-15 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479304', 'tblTempUsageDetail_20' ) end [2025-02-15 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479304', 'tblTempVendorCDR_20' ) start [2025-02-15 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479304', 'tblTempVendorCDR_20' ) end [2025-02-15 06:40:19] Production.INFO: ProcessCDR(1,14479304,1,1,2) [2025-02-15 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479304', 'tblTempUsageDetail_20' ) start [2025-02-15 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479304', 'tblTempUsageDetail_20' ) end [2025-02-15 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:40:22] Production.INFO: ==14953== Releasing lock... [2025-02-15 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:41:06 [end_date_ymd] => 2025-02-15 06:41:06 [RateCDR] => 1 ) [2025-02-15 06: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-15 03:41:06' and `end` < '2025-02-15 06: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-15 06:41:20] Production.INFO: count ==151 [2025-02-15 06:41:20] Production.ERROR: pbx CDR StartTime 2025-02-15 03:41:06 - End Time 2025-02-15 06:41:06 [2025-02-15 06:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479310', 'tblTempUsageDetail_20' ) start [2025-02-15 06:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479310', 'tblTempUsageDetail_20' ) end [2025-02-15 06:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479310', 'tblTempVendorCDR_20' ) start [2025-02-15 06:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479310', 'tblTempVendorCDR_20' ) end [2025-02-15 06:41:20] Production.INFO: ProcessCDR(1,14479310,1,1,2) [2025-02-15 06:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479310', 'tblTempUsageDetail_20' ) start [2025-02-15 06:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479310', 'tblTempUsageDetail_20' ) end [2025-02-15 06:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:41:23] Production.INFO: ==15034== Releasing lock... [2025-02-15 06:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:41:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:42:05 [end_date_ymd] => 2025-02-15 06:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:42:05' and `end` < '2025-02-15 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-15 06:42:19] Production.INFO: count ==151 [2025-02-15 06:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:42:05 - End Time 2025-02-15 06:42:05 [2025-02-15 06:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479315', 'tblTempUsageDetail_20' ) start [2025-02-15 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479315', 'tblTempUsageDetail_20' ) end [2025-02-15 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479315', 'tblTempVendorCDR_20' ) start [2025-02-15 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479315', 'tblTempVendorCDR_20' ) end [2025-02-15 06:42:19] Production.INFO: ProcessCDR(1,14479315,1,1,2) [2025-02-15 06:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479315', 'tblTempUsageDetail_20' ) start [2025-02-15 06:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479315', 'tblTempUsageDetail_20' ) end [2025-02-15 06:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:42:23] Production.INFO: ==15111== Releasing lock... [2025-02-15 06:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:42:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:43:05 [end_date_ymd] => 2025-02-15 06:43:05 [RateCDR] => 1 ) [2025-02-15 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:43:05' and `end` < '2025-02-15 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:43:18] Production.INFO: count ==152 [2025-02-15 06:43:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:43:05 - End Time 2025-02-15 06:43:05 [2025-02-15 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479320', 'tblTempUsageDetail_20' ) start [2025-02-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479320', 'tblTempUsageDetail_20' ) end [2025-02-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479320', 'tblTempVendorCDR_20' ) start [2025-02-15 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479320', 'tblTempVendorCDR_20' ) end [2025-02-15 06:43:18] Production.INFO: ProcessCDR(1,14479320,1,1,2) [2025-02-15 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479320', 'tblTempUsageDetail_20' ) start [2025-02-15 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479320', 'tblTempUsageDetail_20' ) end [2025-02-15 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:43:21] Production.INFO: ==15229== Releasing lock... [2025-02-15 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:44:05 [end_date_ymd] => 2025-02-15 06:44:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:44:05' and `end` < '2025-02-15 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-15 06:44:19] Production.INFO: count ==155 [2025-02-15 06:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:44:05 - End Time 2025-02-15 06:44:05 [2025-02-15 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479325', 'tblTempUsageDetail_20' ) start [2025-02-15 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479325', 'tblTempUsageDetail_20' ) end [2025-02-15 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479325', 'tblTempVendorCDR_20' ) start [2025-02-15 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479325', 'tblTempVendorCDR_20' ) end [2025-02-15 06:44:19] Production.INFO: ProcessCDR(1,14479325,1,1,2) [2025-02-15 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479325', 'tblTempUsageDetail_20' ) start [2025-02-15 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479325', 'tblTempUsageDetail_20' ) end [2025-02-15 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:44:22] Production.INFO: ==15311== Releasing lock... [2025-02-15 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:45:05 [end_date_ymd] => 2025-02-15 06:45:05 [RateCDR] => 1 ) [2025-02-15 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:45:05' and `end` < '2025-02-15 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:45:18] Production.INFO: count ==159 [2025-02-15 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:45:05 - End Time 2025-02-15 06:45:05 [2025-02-15 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479330', 'tblTempUsageDetail_20' ) start [2025-02-15 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479330', 'tblTempUsageDetail_20' ) end [2025-02-15 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479330', 'tblTempVendorCDR_20' ) start [2025-02-15 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479330', 'tblTempVendorCDR_20' ) end [2025-02-15 06:45:18] Production.INFO: ProcessCDR(1,14479330,1,1,2) [2025-02-15 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479330', 'tblTempUsageDetail_20' ) start [2025-02-15 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479330', 'tblTempUsageDetail_20' ) end [2025-02-15 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:45:22] Production.INFO: ==15397== Releasing lock... [2025-02-15 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:45:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:46:05 [end_date_ymd] => 2025-02-15 06:46:05 [RateCDR] => 1 ) [2025-02-15 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:46:05' and `end` < '2025-02-15 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:46:18] Production.INFO: count ==157 [2025-02-15 06:46:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:46:05 - End Time 2025-02-15 06:46:05 [2025-02-15 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479335', 'tblTempUsageDetail_20' ) start [2025-02-15 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479335', 'tblTempUsageDetail_20' ) end [2025-02-15 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479335', 'tblTempVendorCDR_20' ) start [2025-02-15 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479335', 'tblTempVendorCDR_20' ) end [2025-02-15 06:46:18] Production.INFO: ProcessCDR(1,14479335,1,1,2) [2025-02-15 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479335', 'tblTempUsageDetail_20' ) start [2025-02-15 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479335', 'tblTempUsageDetail_20' ) end [2025-02-15 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:46:21] Production.INFO: ==15476== Releasing lock... [2025-02-15 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:47:05 [end_date_ymd] => 2025-02-15 06:47:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:47:05' and `end` < '2025-02-15 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-15 06:47:19] Production.INFO: count ==157 [2025-02-15 06:47:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:47:05 - End Time 2025-02-15 06:47:05 [2025-02-15 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479340', 'tblTempUsageDetail_20' ) start [2025-02-15 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479340', 'tblTempUsageDetail_20' ) end [2025-02-15 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479340', 'tblTempVendorCDR_20' ) start [2025-02-15 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479340', 'tblTempVendorCDR_20' ) end [2025-02-15 06:47:19] Production.INFO: ProcessCDR(1,14479340,1,1,2) [2025-02-15 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479340', 'tblTempUsageDetail_20' ) start [2025-02-15 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479340', 'tblTempUsageDetail_20' ) end [2025-02-15 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:47:22] Production.INFO: ==15556== Releasing lock... [2025-02-15 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:48:05 [end_date_ymd] => 2025-02-15 06:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:48:05' and `end` < '2025-02-15 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-15 06:48:19] Production.INFO: count ==153 [2025-02-15 06:48:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:48:05 - End Time 2025-02-15 06:48:05 [2025-02-15 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479345', 'tblTempUsageDetail_20' ) start [2025-02-15 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479345', 'tblTempUsageDetail_20' ) end [2025-02-15 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479345', 'tblTempVendorCDR_20' ) start [2025-02-15 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479345', 'tblTempVendorCDR_20' ) end [2025-02-15 06:48:19] Production.INFO: ProcessCDR(1,14479345,1,1,2) [2025-02-15 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479345', 'tblTempUsageDetail_20' ) start [2025-02-15 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479345', 'tblTempUsageDetail_20' ) end [2025-02-15 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:48:22] Production.INFO: ==15635== Releasing lock... [2025-02-15 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:49:05 [end_date_ymd] => 2025-02-15 06:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:49:05' and `end` < '2025-02-15 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-15 06:49:18] Production.INFO: count ==154 [2025-02-15 06:49:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:49:05 - End Time 2025-02-15 06:49:05 [2025-02-15 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479350', 'tblTempUsageDetail_20' ) start [2025-02-15 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479350', 'tblTempUsageDetail_20' ) end [2025-02-15 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479350', 'tblTempVendorCDR_20' ) start [2025-02-15 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479350', 'tblTempVendorCDR_20' ) end [2025-02-15 06:49:18] Production.INFO: ProcessCDR(1,14479350,1,1,2) [2025-02-15 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479350', 'tblTempUsageDetail_20' ) start [2025-02-15 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479350', 'tblTempUsageDetail_20' ) end [2025-02-15 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:49:21] Production.INFO: ==15711== Releasing lock... [2025-02-15 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:50:05 [end_date_ymd] => 2025-02-15 06:50:05 [RateCDR] => 1 ) [2025-02-15 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:50:05' and `end` < '2025-02-15 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:50:19] Production.INFO: count ==154 [2025-02-15 06:50:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:50:05 - End Time 2025-02-15 06:50:05 [2025-02-15 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479355', 'tblTempUsageDetail_20' ) start [2025-02-15 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479355', 'tblTempUsageDetail_20' ) end [2025-02-15 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479355', 'tblTempVendorCDR_20' ) start [2025-02-15 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479355', 'tblTempVendorCDR_20' ) end [2025-02-15 06:50:19] Production.INFO: ProcessCDR(1,14479355,1,1,2) [2025-02-15 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479355', 'tblTempUsageDetail_20' ) start [2025-02-15 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479355', 'tblTempUsageDetail_20' ) end [2025-02-15 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:50:22] Production.INFO: ==15791== Releasing lock... [2025-02-15 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:51:05 [end_date_ymd] => 2025-02-15 06:51:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:51:05' and `end` < '2025-02-15 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-15 06:51:18] Production.INFO: count ==156 [2025-02-15 06:51:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:51:05 - End Time 2025-02-15 06:51:05 [2025-02-15 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479361', 'tblTempUsageDetail_20' ) start [2025-02-15 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479361', 'tblTempUsageDetail_20' ) end [2025-02-15 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479361', 'tblTempVendorCDR_20' ) start [2025-02-15 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479361', 'tblTempVendorCDR_20' ) end [2025-02-15 06:51:18] Production.INFO: ProcessCDR(1,14479361,1,1,2) [2025-02-15 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479361', 'tblTempUsageDetail_20' ) start [2025-02-15 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479361', 'tblTempUsageDetail_20' ) end [2025-02-15 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:51:21] Production.INFO: ==15872== Releasing lock... [2025-02-15 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:52:05 [end_date_ymd] => 2025-02-15 06:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:52:05' and `end` < '2025-02-15 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-15 06:52:20] Production.INFO: count ==154 [2025-02-15 06:52:20] Production.ERROR: pbx CDR StartTime 2025-02-15 03:52:05 - End Time 2025-02-15 06:52:05 [2025-02-15 06:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479366', 'tblTempUsageDetail_20' ) start [2025-02-15 06:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479366', 'tblTempUsageDetail_20' ) end [2025-02-15 06:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479366', 'tblTempVendorCDR_20' ) start [2025-02-15 06:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479366', 'tblTempVendorCDR_20' ) end [2025-02-15 06:52:20] Production.INFO: ProcessCDR(1,14479366,1,1,2) [2025-02-15 06:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479366', 'tblTempUsageDetail_20' ) start [2025-02-15 06:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479366', 'tblTempUsageDetail_20' ) end [2025-02-15 06:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:52:25] Production.INFO: ==15948== Releasing lock... [2025-02-15 06:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:52:25] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:53:05 [end_date_ymd] => 2025-02-15 06:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:53:05' and `end` < '2025-02-15 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-15 06:53:20] Production.INFO: count ==156 [2025-02-15 06:53:20] Production.ERROR: pbx CDR StartTime 2025-02-15 03:53:05 - End Time 2025-02-15 06:53:05 [2025-02-15 06:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479371', 'tblTempUsageDetail_20' ) start [2025-02-15 06:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479371', 'tblTempUsageDetail_20' ) end [2025-02-15 06:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479371', 'tblTempVendorCDR_20' ) start [2025-02-15 06:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479371', 'tblTempVendorCDR_20' ) end [2025-02-15 06:53:20] Production.INFO: ProcessCDR(1,14479371,1,1,2) [2025-02-15 06:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479371', 'tblTempUsageDetail_20' ) start [2025-02-15 06:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479371', 'tblTempUsageDetail_20' ) end [2025-02-15 06:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:53:23] Production.INFO: ==16026== Releasing lock... [2025-02-15 06:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:53:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:54:05 [end_date_ymd] => 2025-02-15 06:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:54:05' and `end` < '2025-02-15 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-15 06:54:18] Production.INFO: count ==156 [2025-02-15 06:54:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:54:05 - End Time 2025-02-15 06:54:05 [2025-02-15 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479376', 'tblTempUsageDetail_20' ) start [2025-02-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479376', 'tblTempUsageDetail_20' ) end [2025-02-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479376', 'tblTempVendorCDR_20' ) start [2025-02-15 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479376', 'tblTempVendorCDR_20' ) end [2025-02-15 06:54:18] Production.INFO: ProcessCDR(1,14479376,1,1,2) [2025-02-15 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479376', 'tblTempUsageDetail_20' ) start [2025-02-15 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479376', 'tblTempUsageDetail_20' ) end [2025-02-15 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:54:22] Production.INFO: ==16098== Releasing lock... [2025-02-15 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:55:05 [end_date_ymd] => 2025-02-15 06:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:55:05' and `end` < '2025-02-15 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-15 06:55:18] Production.INFO: count ==156 [2025-02-15 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-15 03:55:05 - End Time 2025-02-15 06:55:05 [2025-02-15 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479381', 'tblTempUsageDetail_20' ) start [2025-02-15 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479381', 'tblTempUsageDetail_20' ) end [2025-02-15 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479381', 'tblTempVendorCDR_20' ) start [2025-02-15 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479381', 'tblTempVendorCDR_20' ) end [2025-02-15 06:55:18] Production.INFO: ProcessCDR(1,14479381,1,1,2) [2025-02-15 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479381', 'tblTempUsageDetail_20' ) start [2025-02-15 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479381', 'tblTempUsageDetail_20' ) end [2025-02-15 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:55:21] Production.INFO: ==16170== Releasing lock... [2025-02-15 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:56:05 [end_date_ymd] => 2025-02-15 06:56:05 [RateCDR] => 1 ) [2025-02-15 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:56:05' and `end` < '2025-02-15 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:56:19] Production.INFO: count ==156 [2025-02-15 06:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:56:05 - End Time 2025-02-15 06:56:05 [2025-02-15 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479386', 'tblTempUsageDetail_20' ) start [2025-02-15 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479386', 'tblTempUsageDetail_20' ) end [2025-02-15 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479386', 'tblTempVendorCDR_20' ) start [2025-02-15 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479386', 'tblTempVendorCDR_20' ) end [2025-02-15 06:56:19] Production.INFO: ProcessCDR(1,14479386,1,1,2) [2025-02-15 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479386', 'tblTempUsageDetail_20' ) start [2025-02-15 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479386', 'tblTempUsageDetail_20' ) end [2025-02-15 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:56:22] Production.INFO: ==16267== Releasing lock... [2025-02-15 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:56:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:57:05 [end_date_ymd] => 2025-02-15 06:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:57:05' and `end` < '2025-02-15 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-15 06:57:19] Production.INFO: count ==156 [2025-02-15 06:57:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:57:05 - End Time 2025-02-15 06:57:05 [2025-02-15 06:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479391', 'tblTempUsageDetail_20' ) start [2025-02-15 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479391', 'tblTempUsageDetail_20' ) end [2025-02-15 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479391', 'tblTempVendorCDR_20' ) start [2025-02-15 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479391', 'tblTempVendorCDR_20' ) end [2025-02-15 06:57:19] Production.INFO: ProcessCDR(1,14479391,1,1,2) [2025-02-15 06:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479391', 'tblTempUsageDetail_20' ) start [2025-02-15 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479391', 'tblTempUsageDetail_20' ) end [2025-02-15 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:57:22] Production.INFO: ==16343== Releasing lock... [2025-02-15 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:58:05 [end_date_ymd] => 2025-02-15 06:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 03:58:05' and `end` < '2025-02-15 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-15 06:58:19] Production.INFO: count ==156 [2025-02-15 06:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:58:05 - End Time 2025-02-15 06:58:05 [2025-02-15 06:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479396', 'tblTempUsageDetail_20' ) start [2025-02-15 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479396', 'tblTempUsageDetail_20' ) end [2025-02-15 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479396', 'tblTempVendorCDR_20' ) start [2025-02-15 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479396', 'tblTempVendorCDR_20' ) end [2025-02-15 06:58:19] Production.INFO: ProcessCDR(1,14479396,1,1,2) [2025-02-15 06:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479396', 'tblTempUsageDetail_20' ) start [2025-02-15 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479396', 'tblTempUsageDetail_20' ) end [2025-02-15 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:58:22] Production.INFO: ==16416== Releasing lock... [2025-02-15 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 03:59:05 [end_date_ymd] => 2025-02-15 06:59:05 [RateCDR] => 1 ) [2025-02-15 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 03:59:05' and `end` < '2025-02-15 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 06:59:19] Production.INFO: count ==156 [2025-02-15 06:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 03:59:05 - End Time 2025-02-15 06:59:05 [2025-02-15 06:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479401', 'tblTempUsageDetail_20' ) start [2025-02-15 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479401', 'tblTempUsageDetail_20' ) end [2025-02-15 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479401', 'tblTempVendorCDR_20' ) start [2025-02-15 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479401', 'tblTempVendorCDR_20' ) end [2025-02-15 06:59:19] Production.INFO: ProcessCDR(1,14479401,1,1,2) [2025-02-15 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479401', 'tblTempUsageDetail_20' ) start [2025-02-15 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479401', 'tblTempUsageDetail_20' ) end [2025-02-15 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 06:59:22] Production.INFO: ==16530== Releasing lock... [2025-02-15 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 06:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:00:05 [end_date_ymd] => 2025-02-15 07:00:05 [RateCDR] => 1 ) [2025-02-15 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:00:05' and `end` < '2025-02-15 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-15 07:00:19] Production.INFO: count ==156 [2025-02-15 07:00:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:00:05 - End Time 2025-02-15 07:00:05 [2025-02-15 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479406', 'tblTempUsageDetail_20' ) start [2025-02-15 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479406', 'tblTempUsageDetail_20' ) end [2025-02-15 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479406', 'tblTempVendorCDR_20' ) start [2025-02-15 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479406', 'tblTempVendorCDR_20' ) end [2025-02-15 07:00:19] Production.INFO: ProcessCDR(1,14479406,1,1,2) [2025-02-15 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479406', 'tblTempUsageDetail_20' ) start [2025-02-15 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479406', 'tblTempUsageDetail_20' ) end [2025-02-15 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:00:22] Production.INFO: ==16609== Releasing lock... [2025-02-15 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:01:05 [end_date_ymd] => 2025-02-15 07:01:05 [RateCDR] => 1 ) [2025-02-15 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:01:05' and `end` < '2025-02-15 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:01:29] Production.INFO: count ==166 [2025-02-15 07:01:29] Production.ERROR: pbx CDR StartTime 2025-02-15 04:01:05 - End Time 2025-02-15 07:01:05 [2025-02-15 07:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479412', 'tblTempUsageDetail_20' ) start [2025-02-15 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479412', 'tblTempUsageDetail_20' ) end [2025-02-15 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479412', 'tblTempVendorCDR_20' ) start [2025-02-15 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479412', 'tblTempVendorCDR_20' ) end [2025-02-15 07:01:29] Production.INFO: ProcessCDR(1,14479412,1,1,2) [2025-02-15 07:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479412', 'tblTempUsageDetail_20' ) start [2025-02-15 07:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479412', 'tblTempUsageDetail_20' ) end [2025-02-15 07:01:33] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:01:33] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:01:33] Production.INFO: ==16773== Releasing lock... [2025-02-15 07:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:01:33] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:02:05 [end_date_ymd] => 2025-02-15 07:02:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:02:05' and `end` < '2025-02-15 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-15 07:02:20] Production.INFO: count ==166 [2025-02-15 07:02:20] Production.ERROR: pbx CDR StartTime 2025-02-15 04:02:05 - End Time 2025-02-15 07:02:05 [2025-02-15 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479417', 'tblTempUsageDetail_20' ) start [2025-02-15 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479417', 'tblTempUsageDetail_20' ) end [2025-02-15 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479417', 'tblTempVendorCDR_20' ) start [2025-02-15 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479417', 'tblTempVendorCDR_20' ) end [2025-02-15 07:02:20] Production.INFO: ProcessCDR(1,14479417,1,1,2) [2025-02-15 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479417', 'tblTempUsageDetail_20' ) start [2025-02-15 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479417', 'tblTempUsageDetail_20' ) end [2025-02-15 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:02:23] Production.INFO: ==16854== Releasing lock... [2025-02-15 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:02:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:03:05 [end_date_ymd] => 2025-02-15 07:03:05 [RateCDR] => 1 ) [2025-02-15 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:03:05' and `end` < '2025-02-15 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:03:19] Production.INFO: count ==166 [2025-02-15 07:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:03:05 - End Time 2025-02-15 07:03:05 [2025-02-15 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479422', 'tblTempUsageDetail_20' ) start [2025-02-15 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479422', 'tblTempUsageDetail_20' ) end [2025-02-15 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479422', 'tblTempVendorCDR_20' ) start [2025-02-15 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479422', 'tblTempVendorCDR_20' ) end [2025-02-15 07:03:19] Production.INFO: ProcessCDR(1,14479422,1,1,2) [2025-02-15 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479422', 'tblTempUsageDetail_20' ) start [2025-02-15 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479422', 'tblTempUsageDetail_20' ) end [2025-02-15 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:03:22] Production.INFO: ==16936== Releasing lock... [2025-02-15 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:04:06 [end_date_ymd] => 2025-02-15 07:04:06 [RateCDR] => 1 ) [2025-02-15 07: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-15 04:04:06' and `end` < '2025-02-15 07: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-15 07:04:20] Production.INFO: count ==166 [2025-02-15 07:04:20] Production.ERROR: pbx CDR StartTime 2025-02-15 04:04:06 - End Time 2025-02-15 07:04:06 [2025-02-15 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479427', 'tblTempUsageDetail_20' ) start [2025-02-15 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479427', 'tblTempUsageDetail_20' ) end [2025-02-15 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479427', 'tblTempVendorCDR_20' ) start [2025-02-15 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479427', 'tblTempVendorCDR_20' ) end [2025-02-15 07:04:20] Production.INFO: ProcessCDR(1,14479427,1,1,2) [2025-02-15 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479427', 'tblTempUsageDetail_20' ) start [2025-02-15 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479427', 'tblTempUsageDetail_20' ) end [2025-02-15 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:04:24] Production.INFO: ==17020== Releasing lock... [2025-02-15 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:04:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:05:05 [end_date_ymd] => 2025-02-15 07:05:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:05:05' and `end` < '2025-02-15 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-15 07:05:19] Production.INFO: count ==166 [2025-02-15 07:05:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:05:05 - End Time 2025-02-15 07:05:05 [2025-02-15 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479432', 'tblTempUsageDetail_20' ) start [2025-02-15 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479432', 'tblTempUsageDetail_20' ) end [2025-02-15 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479432', 'tblTempVendorCDR_20' ) start [2025-02-15 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479432', 'tblTempVendorCDR_20' ) end [2025-02-15 07:05:19] Production.INFO: ProcessCDR(1,14479432,1,1,2) [2025-02-15 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479432', 'tblTempUsageDetail_20' ) start [2025-02-15 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479432', 'tblTempUsageDetail_20' ) end [2025-02-15 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:05:23] Production.INFO: ==17177== Releasing lock... [2025-02-15 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:05:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:06:05 [end_date_ymd] => 2025-02-15 07:06:05 [RateCDR] => 1 ) [2025-02-15 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:06:05' and `end` < '2025-02-15 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:06:21] Production.INFO: count ==166 [2025-02-15 07:06:21] Production.ERROR: pbx CDR StartTime 2025-02-15 04:06:05 - End Time 2025-02-15 07:06:05 [2025-02-15 07:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479437', 'tblTempUsageDetail_20' ) start [2025-02-15 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479437', 'tblTempUsageDetail_20' ) end [2025-02-15 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479437', 'tblTempVendorCDR_20' ) start [2025-02-15 07:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479437', 'tblTempVendorCDR_20' ) end [2025-02-15 07:06:21] Production.INFO: ProcessCDR(1,14479437,1,1,2) [2025-02-15 07:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479437', 'tblTempUsageDetail_20' ) start [2025-02-15 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479437', 'tblTempUsageDetail_20' ) end [2025-02-15 07:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:06:24] Production.INFO: ==17257== Releasing lock... [2025-02-15 07:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:06:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:07:05 [end_date_ymd] => 2025-02-15 07:07:05 [RateCDR] => 1 ) [2025-02-15 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:07:05' and `end` < '2025-02-15 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:07:19] Production.INFO: count ==166 [2025-02-15 07:07:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:07:05 - End Time 2025-02-15 07:07:05 [2025-02-15 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479442', 'tblTempUsageDetail_20' ) start [2025-02-15 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479442', 'tblTempUsageDetail_20' ) end [2025-02-15 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479442', 'tblTempVendorCDR_20' ) start [2025-02-15 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479442', 'tblTempVendorCDR_20' ) end [2025-02-15 07:07:19] Production.INFO: ProcessCDR(1,14479442,1,1,2) [2025-02-15 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479442', 'tblTempUsageDetail_20' ) start [2025-02-15 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479442', 'tblTempUsageDetail_20' ) end [2025-02-15 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:07:22] Production.INFO: ==17337== Releasing lock... [2025-02-15 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:08:06 [end_date_ymd] => 2025-02-15 07:08:06 [RateCDR] => 1 ) [2025-02-15 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:08:06' and `end` < '2025-02-15 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:08:20] Production.INFO: count ==166 [2025-02-15 07:08:20] Production.ERROR: pbx CDR StartTime 2025-02-15 04:08:06 - End Time 2025-02-15 07:08:06 [2025-02-15 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479447', 'tblTempUsageDetail_20' ) start [2025-02-15 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479447', 'tblTempUsageDetail_20' ) end [2025-02-15 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479447', 'tblTempVendorCDR_20' ) start [2025-02-15 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479447', 'tblTempVendorCDR_20' ) end [2025-02-15 07:08:20] Production.INFO: ProcessCDR(1,14479447,1,1,2) [2025-02-15 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479447', 'tblTempUsageDetail_20' ) start [2025-02-15 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479447', 'tblTempUsageDetail_20' ) end [2025-02-15 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:08:23] Production.INFO: ==17494== Releasing lock... [2025-02-15 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:08:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:09:05 [end_date_ymd] => 2025-02-15 07:09:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:09:05' and `end` < '2025-02-15 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-15 07:09:19] Production.INFO: count ==166 [2025-02-15 07:09:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:09:05 - End Time 2025-02-15 07:09:05 [2025-02-15 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479452', 'tblTempUsageDetail_20' ) start [2025-02-15 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479452', 'tblTempUsageDetail_20' ) end [2025-02-15 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479452', 'tblTempVendorCDR_20' ) start [2025-02-15 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479452', 'tblTempVendorCDR_20' ) end [2025-02-15 07:09:19] Production.INFO: ProcessCDR(1,14479452,1,1,2) [2025-02-15 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479452', 'tblTempUsageDetail_20' ) start [2025-02-15 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479452', 'tblTempUsageDetail_20' ) end [2025-02-15 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:09:22] Production.INFO: ==17570== Releasing lock... [2025-02-15 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:10:06 [end_date_ymd] => 2025-02-15 07:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 04:10:06' and `end` < '2025-02-15 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-15 07:10:21] Production.INFO: count ==170 [2025-02-15 07:10:21] Production.ERROR: pbx CDR StartTime 2025-02-15 04:10:06 - End Time 2025-02-15 07:10:06 [2025-02-15 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479458', 'tblTempUsageDetail_20' ) start [2025-02-15 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479458', 'tblTempUsageDetail_20' ) end [2025-02-15 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479458', 'tblTempVendorCDR_20' ) start [2025-02-15 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479458', 'tblTempVendorCDR_20' ) end [2025-02-15 07:10:21] Production.INFO: ProcessCDR(1,14479458,1,1,2) [2025-02-15 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479458', 'tblTempUsageDetail_20' ) start [2025-02-15 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479458', 'tblTempUsageDetail_20' ) end [2025-02-15 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:10:24] Production.INFO: ==17651== Releasing lock... [2025-02-15 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:10:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:11:05 [end_date_ymd] => 2025-02-15 07:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:11:05' and `end` < '2025-02-15 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-15 07:11:20] Production.INFO: count ==177 [2025-02-15 07:11:20] Production.ERROR: pbx CDR StartTime 2025-02-15 04:11:05 - End Time 2025-02-15 07:11:05 [2025-02-15 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479463', 'tblTempUsageDetail_20' ) start [2025-02-15 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479463', 'tblTempUsageDetail_20' ) end [2025-02-15 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479463', 'tblTempVendorCDR_20' ) start [2025-02-15 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479463', 'tblTempVendorCDR_20' ) end [2025-02-15 07:11:20] Production.INFO: ProcessCDR(1,14479463,1,1,2) [2025-02-15 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479463', 'tblTempUsageDetail_20' ) start [2025-02-15 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479463', 'tblTempUsageDetail_20' ) end [2025-02-15 07:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:11:24] Production.INFO: ==17737== Releasing lock... [2025-02-15 07:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:11:24] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:12:05 [end_date_ymd] => 2025-02-15 07:12:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:12:05' and `end` < '2025-02-15 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-15 07:12:22] Production.INFO: count ==181 [2025-02-15 07:12:22] Production.ERROR: pbx CDR StartTime 2025-02-15 04:12:05 - End Time 2025-02-15 07:12:05 [2025-02-15 07:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479468', 'tblTempUsageDetail_20' ) start [2025-02-15 07:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479468', 'tblTempUsageDetail_20' ) end [2025-02-15 07:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479468', 'tblTempVendorCDR_20' ) start [2025-02-15 07:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479468', 'tblTempVendorCDR_20' ) end [2025-02-15 07:12:22] Production.INFO: ProcessCDR(1,14479468,1,1,2) [2025-02-15 07:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479468', 'tblTempUsageDetail_20' ) start [2025-02-15 07:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479468', 'tblTempUsageDetail_20' ) end [2025-02-15 07:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:12:25] Production.INFO: ==17894== Releasing lock... [2025-02-15 07:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:12:25] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:13:05 [end_date_ymd] => 2025-02-15 07:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:13:05' and `end` < '2025-02-15 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-15 07:13:19] Production.INFO: count ==180 [2025-02-15 07:13:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:13:05 - End Time 2025-02-15 07:13:05 [2025-02-15 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479473', 'tblTempUsageDetail_20' ) start [2025-02-15 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479473', 'tblTempUsageDetail_20' ) end [2025-02-15 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479473', 'tblTempVendorCDR_20' ) start [2025-02-15 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479473', 'tblTempVendorCDR_20' ) end [2025-02-15 07:13:19] Production.INFO: ProcessCDR(1,14479473,1,1,2) [2025-02-15 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479473', 'tblTempUsageDetail_20' ) start [2025-02-15 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479473', 'tblTempUsageDetail_20' ) end [2025-02-15 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:13:23] Production.INFO: ==17975== Releasing lock... [2025-02-15 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:13:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:14:05 [end_date_ymd] => 2025-02-15 07:14:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:14:05' and `end` < '2025-02-15 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-15 07:14:19] Production.INFO: count ==180 [2025-02-15 07:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:14:05 - End Time 2025-02-15 07:14:05 [2025-02-15 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479478', 'tblTempUsageDetail_20' ) start [2025-02-15 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479478', 'tblTempUsageDetail_20' ) end [2025-02-15 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479478', 'tblTempVendorCDR_20' ) start [2025-02-15 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479478', 'tblTempVendorCDR_20' ) end [2025-02-15 07:14:19] Production.INFO: ProcessCDR(1,14479478,1,1,2) [2025-02-15 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479478', 'tblTempUsageDetail_20' ) start [2025-02-15 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479478', 'tblTempUsageDetail_20' ) end [2025-02-15 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:14:22] Production.INFO: ==18095== Releasing lock... [2025-02-15 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:14:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:15:05 [end_date_ymd] => 2025-02-15 07:15:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:15:05' and `end` < '2025-02-15 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-15 07:15:20] Production.INFO: count ==180 [2025-02-15 07:15:20] Production.ERROR: pbx CDR StartTime 2025-02-15 04:15:05 - End Time 2025-02-15 07:15:05 [2025-02-15 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479483', 'tblTempUsageDetail_20' ) start [2025-02-15 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479483', 'tblTempUsageDetail_20' ) end [2025-02-15 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479483', 'tblTempVendorCDR_20' ) start [2025-02-15 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479483', 'tblTempVendorCDR_20' ) end [2025-02-15 07:15:20] Production.INFO: ProcessCDR(1,14479483,1,1,2) [2025-02-15 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479483', 'tblTempUsageDetail_20' ) start [2025-02-15 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479483', 'tblTempUsageDetail_20' ) end [2025-02-15 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:15:23] Production.INFO: ==18249== Releasing lock... [2025-02-15 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:15:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:16:05 [end_date_ymd] => 2025-02-15 07:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:16:05' and `end` < '2025-02-15 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-15 07:16:20] Production.INFO: count ==179 [2025-02-15 07:16:20] Production.ERROR: pbx CDR StartTime 2025-02-15 04:16:05 - End Time 2025-02-15 07:16:05 [2025-02-15 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479488', 'tblTempUsageDetail_20' ) start [2025-02-15 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479488', 'tblTempUsageDetail_20' ) end [2025-02-15 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479488', 'tblTempVendorCDR_20' ) start [2025-02-15 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479488', 'tblTempVendorCDR_20' ) end [2025-02-15 07:16:20] Production.INFO: ProcessCDR(1,14479488,1,1,2) [2025-02-15 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479488', 'tblTempUsageDetail_20' ) start [2025-02-15 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479488', 'tblTempUsageDetail_20' ) end [2025-02-15 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:16:23] Production.INFO: ==18326== Releasing lock... [2025-02-15 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:16:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:17:05 [end_date_ymd] => 2025-02-15 07:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:17:05' and `end` < '2025-02-15 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-15 07:17:20] Production.INFO: count ==180 [2025-02-15 07:17:20] Production.ERROR: pbx CDR StartTime 2025-02-15 04:17:05 - End Time 2025-02-15 07:17:05 [2025-02-15 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479493', 'tblTempUsageDetail_20' ) start [2025-02-15 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479493', 'tblTempUsageDetail_20' ) end [2025-02-15 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479493', 'tblTempVendorCDR_20' ) start [2025-02-15 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479493', 'tblTempVendorCDR_20' ) end [2025-02-15 07:17:20] Production.INFO: ProcessCDR(1,14479493,1,1,2) [2025-02-15 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479493', 'tblTempUsageDetail_20' ) start [2025-02-15 07:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479493', 'tblTempUsageDetail_20' ) end [2025-02-15 07:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:17:26] Production.INFO: ==18410== Releasing lock... [2025-02-15 07:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:17:26] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:18:05 [end_date_ymd] => 2025-02-15 07:18:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:18:05' and `end` < '2025-02-15 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-15 07:18:21] Production.INFO: count ==178 [2025-02-15 07:18:22] Production.ERROR: pbx CDR StartTime 2025-02-15 04:18:05 - End Time 2025-02-15 07:18:05 [2025-02-15 07:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479498', 'tblTempUsageDetail_20' ) start [2025-02-15 07:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479498', 'tblTempUsageDetail_20' ) end [2025-02-15 07:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479498', 'tblTempVendorCDR_20' ) start [2025-02-15 07:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479498', 'tblTempVendorCDR_20' ) end [2025-02-15 07:18:22] Production.INFO: ProcessCDR(1,14479498,1,1,2) [2025-02-15 07:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479498', 'tblTempUsageDetail_20' ) start [2025-02-15 07:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479498', 'tblTempUsageDetail_20' ) end [2025-02-15 07:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:18:25] Production.INFO: ==18497== Releasing lock... [2025-02-15 07:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:18:25] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:19:06 [end_date_ymd] => 2025-02-15 07:19:06 [RateCDR] => 1 ) [2025-02-15 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:19:06' and `end` < '2025-02-15 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:19:19] Production.INFO: count ==176 [2025-02-15 07:19:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:19:06 - End Time 2025-02-15 07:19:06 [2025-02-15 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479503', 'tblTempUsageDetail_20' ) start [2025-02-15 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479503', 'tblTempUsageDetail_20' ) end [2025-02-15 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479503', 'tblTempVendorCDR_20' ) start [2025-02-15 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479503', 'tblTempVendorCDR_20' ) end [2025-02-15 07:19:19] Production.INFO: ProcessCDR(1,14479503,1,1,2) [2025-02-15 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479503', 'tblTempUsageDetail_20' ) start [2025-02-15 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479503', 'tblTempUsageDetail_20' ) end [2025-02-15 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:19:23] Production.INFO: ==18584== Releasing lock... [2025-02-15 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:19:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:20:06 [end_date_ymd] => 2025-02-15 07:20:06 [RateCDR] => 1 ) [2025-02-15 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-15 04:20:06' and `end` < '2025-02-15 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-15 07:20:19] Production.INFO: count ==176 [2025-02-15 07:20:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:20:06 - End Time 2025-02-15 07:20:06 [2025-02-15 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479509', 'tblTempUsageDetail_20' ) start [2025-02-15 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479509', 'tblTempUsageDetail_20' ) end [2025-02-15 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479509', 'tblTempVendorCDR_20' ) start [2025-02-15 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479509', 'tblTempVendorCDR_20' ) end [2025-02-15 07:20:19] Production.INFO: ProcessCDR(1,14479509,1,1,2) [2025-02-15 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479509', 'tblTempUsageDetail_20' ) start [2025-02-15 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479509', 'tblTempUsageDetail_20' ) end [2025-02-15 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:20:23] Production.INFO: ==18675== Releasing lock... [2025-02-15 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:20:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:21:05 [end_date_ymd] => 2025-02-15 07:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:21:05' and `end` < '2025-02-15 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-15 07:21:21] Production.INFO: count ==176 [2025-02-15 07:21:21] Production.ERROR: pbx CDR StartTime 2025-02-15 04:21:05 - End Time 2025-02-15 07:21:05 [2025-02-15 07:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479514', 'tblTempUsageDetail_20' ) start [2025-02-15 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479514', 'tblTempUsageDetail_20' ) end [2025-02-15 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479514', 'tblTempVendorCDR_20' ) start [2025-02-15 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479514', 'tblTempVendorCDR_20' ) end [2025-02-15 07:21:21] Production.INFO: ProcessCDR(1,14479514,1,1,2) [2025-02-15 07:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479514', 'tblTempUsageDetail_20' ) start [2025-02-15 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479514', 'tblTempUsageDetail_20' ) end [2025-02-15 07:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:21:24] Production.INFO: ==18762== Releasing lock... [2025-02-15 07:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:21:24] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:22:05 [end_date_ymd] => 2025-02-15 07:22:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:22:05' and `end` < '2025-02-15 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-15 07:22:18] Production.INFO: count ==176 [2025-02-15 07:22:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:22:05 - End Time 2025-02-15 07:22:05 [2025-02-15 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479519', 'tblTempUsageDetail_20' ) start [2025-02-15 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479519', 'tblTempUsageDetail_20' ) end [2025-02-15 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479519', 'tblTempVendorCDR_20' ) start [2025-02-15 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479519', 'tblTempVendorCDR_20' ) end [2025-02-15 07:22:18] Production.INFO: ProcessCDR(1,14479519,1,1,2) [2025-02-15 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479519', 'tblTempUsageDetail_20' ) start [2025-02-15 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479519', 'tblTempUsageDetail_20' ) end [2025-02-15 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:22:22] Production.INFO: ==18846== Releasing lock... [2025-02-15 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:22:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:23:05 [end_date_ymd] => 2025-02-15 07:23:05 [RateCDR] => 1 ) [2025-02-15 07: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-15 04:23:05' and `end` < '2025-02-15 07: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-15 07:23:19] Production.INFO: count ==176 [2025-02-15 07:23:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:23:05 - End Time 2025-02-15 07:23:05 [2025-02-15 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479524', 'tblTempUsageDetail_20' ) start [2025-02-15 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479524', 'tblTempUsageDetail_20' ) end [2025-02-15 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479524', 'tblTempVendorCDR_20' ) start [2025-02-15 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479524', 'tblTempVendorCDR_20' ) end [2025-02-15 07:23:19] Production.INFO: ProcessCDR(1,14479524,1,1,2) [2025-02-15 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479524', 'tblTempUsageDetail_20' ) start [2025-02-15 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479524', 'tblTempUsageDetail_20' ) end [2025-02-15 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:23:22] Production.INFO: ==18938== Releasing lock... [2025-02-15 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:23:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:24:05 [end_date_ymd] => 2025-02-15 07:24:05 [RateCDR] => 1 ) [2025-02-15 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:24:05' and `end` < '2025-02-15 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:24:18] Production.INFO: count ==176 [2025-02-15 07:24:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:24:05 - End Time 2025-02-15 07:24:05 [2025-02-15 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479529', 'tblTempUsageDetail_20' ) start [2025-02-15 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479529', 'tblTempUsageDetail_20' ) end [2025-02-15 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479529', 'tblTempVendorCDR_20' ) start [2025-02-15 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479529', 'tblTempVendorCDR_20' ) end [2025-02-15 07:24:18] Production.INFO: ProcessCDR(1,14479529,1,1,2) [2025-02-15 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479529', 'tblTempUsageDetail_20' ) start [2025-02-15 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479529', 'tblTempUsageDetail_20' ) end [2025-02-15 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:24:21] Production.INFO: ==19020== Releasing lock... [2025-02-15 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:24:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:25:05 [end_date_ymd] => 2025-02-15 07:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:25:05' and `end` < '2025-02-15 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-15 07:25:19] Production.INFO: count ==176 [2025-02-15 07:25:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:25:05 - End Time 2025-02-15 07:25:05 [2025-02-15 07:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479534', 'tblTempUsageDetail_20' ) start [2025-02-15 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479534', 'tblTempUsageDetail_20' ) end [2025-02-15 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479534', 'tblTempVendorCDR_20' ) start [2025-02-15 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479534', 'tblTempVendorCDR_20' ) end [2025-02-15 07:25:19] Production.INFO: ProcessCDR(1,14479534,1,1,2) [2025-02-15 07:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479534', 'tblTempUsageDetail_20' ) start [2025-02-15 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479534', 'tblTempUsageDetail_20' ) end [2025-02-15 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:25:23] Production.INFO: ==19104== Releasing lock... [2025-02-15 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:25:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:26:05 [end_date_ymd] => 2025-02-15 07:26:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:26:05' and `end` < '2025-02-15 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-15 07:26:18] Production.INFO: count ==176 [2025-02-15 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:26:05 - End Time 2025-02-15 07:26:05 [2025-02-15 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479539', 'tblTempUsageDetail_20' ) start [2025-02-15 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479539', 'tblTempUsageDetail_20' ) end [2025-02-15 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479539', 'tblTempVendorCDR_20' ) start [2025-02-15 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479539', 'tblTempVendorCDR_20' ) end [2025-02-15 07:26:18] Production.INFO: ProcessCDR(1,14479539,1,1,2) [2025-02-15 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479539', 'tblTempUsageDetail_20' ) start [2025-02-15 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479539', 'tblTempUsageDetail_20' ) end [2025-02-15 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:26:22] Production.INFO: ==19191== Releasing lock... [2025-02-15 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:26:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:27:06 [end_date_ymd] => 2025-02-15 07:27:06 [RateCDR] => 1 ) [2025-02-15 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:27:06' and `end` < '2025-02-15 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:27:19] Production.INFO: count ==176 [2025-02-15 07:27:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:27:06 - End Time 2025-02-15 07:27:06 [2025-02-15 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479544', 'tblTempUsageDetail_20' ) start [2025-02-15 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479544', 'tblTempUsageDetail_20' ) end [2025-02-15 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479544', 'tblTempVendorCDR_20' ) start [2025-02-15 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479544', 'tblTempVendorCDR_20' ) end [2025-02-15 07:27:19] Production.INFO: ProcessCDR(1,14479544,1,1,2) [2025-02-15 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479544', 'tblTempUsageDetail_20' ) start [2025-02-15 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479544', 'tblTempUsageDetail_20' ) end [2025-02-15 07:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:27:23] Production.INFO: ==19267== Releasing lock... [2025-02-15 07:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:27:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:28:06 [end_date_ymd] => 2025-02-15 07:28:06 [RateCDR] => 1 ) [2025-02-15 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-15 04:28:06' and `end` < '2025-02-15 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-15 07:28:19] Production.INFO: count ==176 [2025-02-15 07:28:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:28:06 - End Time 2025-02-15 07:28:06 [2025-02-15 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479549', 'tblTempUsageDetail_20' ) start [2025-02-15 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479549', 'tblTempUsageDetail_20' ) end [2025-02-15 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479549', 'tblTempVendorCDR_20' ) start [2025-02-15 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479549', 'tblTempVendorCDR_20' ) end [2025-02-15 07:28:19] Production.INFO: ProcessCDR(1,14479549,1,1,2) [2025-02-15 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479549', 'tblTempUsageDetail_20' ) start [2025-02-15 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479549', 'tblTempUsageDetail_20' ) end [2025-02-15 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:28:22] Production.INFO: ==19342== Releasing lock... [2025-02-15 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:28:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:29:06 [end_date_ymd] => 2025-02-15 07:29:06 [RateCDR] => 1 ) [2025-02-15 07:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:29:06' and `end` < '2025-02-15 07:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:29:19] Production.INFO: count ==176 [2025-02-15 07:29:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:29:06 - End Time 2025-02-15 07:29:06 [2025-02-15 07:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479554', 'tblTempUsageDetail_20' ) start [2025-02-15 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479554', 'tblTempUsageDetail_20' ) end [2025-02-15 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479554', 'tblTempVendorCDR_20' ) start [2025-02-15 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479554', 'tblTempVendorCDR_20' ) end [2025-02-15 07:29:19] Production.INFO: ProcessCDR(1,14479554,1,1,2) [2025-02-15 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479554', 'tblTempUsageDetail_20' ) start [2025-02-15 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479554', 'tblTempUsageDetail_20' ) end [2025-02-15 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:29:22] Production.INFO: ==19417== Releasing lock... [2025-02-15 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:29:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:30:06 [end_date_ymd] => 2025-02-15 07:30:06 [RateCDR] => 1 ) [2025-02-15 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-15 04:30:06' and `end` < '2025-02-15 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-15 07:30:19] Production.INFO: count ==173 [2025-02-15 07:30:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:30:06 - End Time 2025-02-15 07:30:06 [2025-02-15 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479560', 'tblTempUsageDetail_20' ) start [2025-02-15 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479560', 'tblTempUsageDetail_20' ) end [2025-02-15 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479560', 'tblTempVendorCDR_20' ) start [2025-02-15 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479560', 'tblTempVendorCDR_20' ) end [2025-02-15 07:30:19] Production.INFO: ProcessCDR(1,14479560,1,1,2) [2025-02-15 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479560', 'tblTempUsageDetail_20' ) start [2025-02-15 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479560', 'tblTempUsageDetail_20' ) end [2025-02-15 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:30:22] Production.INFO: ==19537== Releasing lock... [2025-02-15 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:31:06 [end_date_ymd] => 2025-02-15 07:31:06 [RateCDR] => 1 ) [2025-02-15 07: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-15 04:31:06' and `end` < '2025-02-15 07: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-15 07:31:19] Production.INFO: count ==173 [2025-02-15 07:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:31:06 - End Time 2025-02-15 07:31:06 [2025-02-15 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479565', 'tblTempUsageDetail_20' ) start [2025-02-15 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479565', 'tblTempUsageDetail_20' ) end [2025-02-15 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479565', 'tblTempVendorCDR_20' ) start [2025-02-15 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479565', 'tblTempVendorCDR_20' ) end [2025-02-15 07:31:19] Production.INFO: ProcessCDR(1,14479565,1,1,2) [2025-02-15 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479565', 'tblTempUsageDetail_20' ) start [2025-02-15 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479565', 'tblTempUsageDetail_20' ) end [2025-02-15 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:31:22] Production.INFO: ==19617== Releasing lock... [2025-02-15 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:32:05 [end_date_ymd] => 2025-02-15 07:32:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:32:05' and `end` < '2025-02-15 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-15 07:32:18] Production.INFO: count ==173 [2025-02-15 07:32:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:32:05 - End Time 2025-02-15 07:32:05 [2025-02-15 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479570', 'tblTempUsageDetail_20' ) start [2025-02-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479570', 'tblTempUsageDetail_20' ) end [2025-02-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479570', 'tblTempVendorCDR_20' ) start [2025-02-15 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479570', 'tblTempVendorCDR_20' ) end [2025-02-15 07:32:18] Production.INFO: ProcessCDR(1,14479570,1,1,2) [2025-02-15 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479570', 'tblTempUsageDetail_20' ) start [2025-02-15 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479570', 'tblTempUsageDetail_20' ) end [2025-02-15 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:32:22] Production.INFO: ==19692== Releasing lock... [2025-02-15 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:33:06 [end_date_ymd] => 2025-02-15 07:33:06 [RateCDR] => 1 ) [2025-02-15 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:33:06' and `end` < '2025-02-15 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:33:19] Production.INFO: count ==173 [2025-02-15 07:33:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:33:06 - End Time 2025-02-15 07:33:06 [2025-02-15 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479575', 'tblTempUsageDetail_20' ) start [2025-02-15 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479575', 'tblTempUsageDetail_20' ) end [2025-02-15 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479575', 'tblTempVendorCDR_20' ) start [2025-02-15 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479575', 'tblTempVendorCDR_20' ) end [2025-02-15 07:33:19] Production.INFO: ProcessCDR(1,14479575,1,1,2) [2025-02-15 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479575', 'tblTempUsageDetail_20' ) start [2025-02-15 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479575', 'tblTempUsageDetail_20' ) end [2025-02-15 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:33:23] Production.INFO: ==19772== Releasing lock... [2025-02-15 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:33:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:34:05 [end_date_ymd] => 2025-02-15 07:34:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:34:05' and `end` < '2025-02-15 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-15 07:34:18] Production.INFO: count ==173 [2025-02-15 07:34:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:34:05 - End Time 2025-02-15 07:34:05 [2025-02-15 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479580', 'tblTempUsageDetail_20' ) start [2025-02-15 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479580', 'tblTempUsageDetail_20' ) end [2025-02-15 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479580', 'tblTempVendorCDR_20' ) start [2025-02-15 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479580', 'tblTempVendorCDR_20' ) end [2025-02-15 07:34:18] Production.INFO: ProcessCDR(1,14479580,1,1,2) [2025-02-15 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479580', 'tblTempUsageDetail_20' ) start [2025-02-15 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479580', 'tblTempUsageDetail_20' ) end [2025-02-15 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:34:21] Production.INFO: ==19844== Releasing lock... [2025-02-15 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:35:05 [end_date_ymd] => 2025-02-15 07:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:35:05' and `end` < '2025-02-15 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-15 07:35:18] Production.INFO: count ==173 [2025-02-15 07:35:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:35:05 - End Time 2025-02-15 07:35:05 [2025-02-15 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479585', 'tblTempUsageDetail_20' ) start [2025-02-15 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479585', 'tblTempUsageDetail_20' ) end [2025-02-15 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479585', 'tblTempVendorCDR_20' ) start [2025-02-15 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479585', 'tblTempVendorCDR_20' ) end [2025-02-15 07:35:18] Production.INFO: ProcessCDR(1,14479585,1,1,2) [2025-02-15 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479585', 'tblTempUsageDetail_20' ) start [2025-02-15 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479585', 'tblTempUsageDetail_20' ) end [2025-02-15 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:35:21] Production.INFO: ==19924== Releasing lock... [2025-02-15 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:36:05 [end_date_ymd] => 2025-02-15 07:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:36:05' and `end` < '2025-02-15 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-15 07:36:18] Production.INFO: count ==173 [2025-02-15 07:36:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:36:05 - End Time 2025-02-15 07:36:05 [2025-02-15 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479590', 'tblTempUsageDetail_20' ) start [2025-02-15 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479590', 'tblTempUsageDetail_20' ) end [2025-02-15 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479590', 'tblTempVendorCDR_20' ) start [2025-02-15 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479590', 'tblTempVendorCDR_20' ) end [2025-02-15 07:36:18] Production.INFO: ProcessCDR(1,14479590,1,1,2) [2025-02-15 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479590', 'tblTempUsageDetail_20' ) start [2025-02-15 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479590', 'tblTempUsageDetail_20' ) end [2025-02-15 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:36:21] Production.INFO: ==20002== Releasing lock... [2025-02-15 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:37:05 [end_date_ymd] => 2025-02-15 07:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:37:05' and `end` < '2025-02-15 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-15 07:37:18] Production.INFO: count ==173 [2025-02-15 07:37:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:37:05 - End Time 2025-02-15 07:37:05 [2025-02-15 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479595', 'tblTempUsageDetail_20' ) start [2025-02-15 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479595', 'tblTempUsageDetail_20' ) end [2025-02-15 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479595', 'tblTempVendorCDR_20' ) start [2025-02-15 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479595', 'tblTempVendorCDR_20' ) end [2025-02-15 07:37:18] Production.INFO: ProcessCDR(1,14479595,1,1,2) [2025-02-15 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479595', 'tblTempUsageDetail_20' ) start [2025-02-15 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479595', 'tblTempUsageDetail_20' ) end [2025-02-15 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:37:21] Production.INFO: ==20079== Releasing lock... [2025-02-15 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:38:05 [end_date_ymd] => 2025-02-15 07:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:38:05' and `end` < '2025-02-15 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-15 07:38:18] Production.INFO: count ==173 [2025-02-15 07:38:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:38:05 - End Time 2025-02-15 07:38:05 [2025-02-15 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479600', 'tblTempUsageDetail_20' ) start [2025-02-15 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479600', 'tblTempUsageDetail_20' ) end [2025-02-15 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479600', 'tblTempVendorCDR_20' ) start [2025-02-15 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479600', 'tblTempVendorCDR_20' ) end [2025-02-15 07:38:18] Production.INFO: ProcessCDR(1,14479600,1,1,2) [2025-02-15 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479600', 'tblTempUsageDetail_20' ) start [2025-02-15 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479600', 'tblTempUsageDetail_20' ) end [2025-02-15 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:38:22] Production.INFO: ==20156== Releasing lock... [2025-02-15 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:39:05 [end_date_ymd] => 2025-02-15 07:39:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:39:05' and `end` < '2025-02-15 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-15 07:39:18] Production.INFO: count ==174 [2025-02-15 07:39:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:39:05 - End Time 2025-02-15 07:39:05 [2025-02-15 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479605', 'tblTempUsageDetail_20' ) start [2025-02-15 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479605', 'tblTempUsageDetail_20' ) end [2025-02-15 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479605', 'tblTempVendorCDR_20' ) start [2025-02-15 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479605', 'tblTempVendorCDR_20' ) end [2025-02-15 07:39:18] Production.INFO: ProcessCDR(1,14479605,1,1,2) [2025-02-15 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479605', 'tblTempUsageDetail_20' ) start [2025-02-15 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479605', 'tblTempUsageDetail_20' ) end [2025-02-15 07:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:39:23] Production.INFO: ==20229== Releasing lock... [2025-02-15 07:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:39:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:40:06 [end_date_ymd] => 2025-02-15 07:40:06 [RateCDR] => 1 ) [2025-02-15 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-15 04:40:06' and `end` < '2025-02-15 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-15 07:40:19] Production.INFO: count ==175 [2025-02-15 07:40:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:40:06 - End Time 2025-02-15 07:40:06 [2025-02-15 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479611', 'tblTempUsageDetail_20' ) start [2025-02-15 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479611', 'tblTempUsageDetail_20' ) end [2025-02-15 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479611', 'tblTempVendorCDR_20' ) start [2025-02-15 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479611', 'tblTempVendorCDR_20' ) end [2025-02-15 07:40:19] Production.INFO: ProcessCDR(1,14479611,1,1,2) [2025-02-15 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479611', 'tblTempUsageDetail_20' ) start [2025-02-15 07:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479611', 'tblTempUsageDetail_20' ) end [2025-02-15 07:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:40:24] Production.INFO: ==20306== Releasing lock... [2025-02-15 07:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:40:24] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:41:05 [end_date_ymd] => 2025-02-15 07:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:41:05' and `end` < '2025-02-15 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-15 07:41:19] Production.INFO: count ==175 [2025-02-15 07:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:41:05 - End Time 2025-02-15 07:41:05 [2025-02-15 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479616', 'tblTempUsageDetail_20' ) start [2025-02-15 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479616', 'tblTempUsageDetail_20' ) end [2025-02-15 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479616', 'tblTempVendorCDR_20' ) start [2025-02-15 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479616', 'tblTempVendorCDR_20' ) end [2025-02-15 07:41:19] Production.INFO: ProcessCDR(1,14479616,1,1,2) [2025-02-15 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479616', 'tblTempUsageDetail_20' ) start [2025-02-15 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479616', 'tblTempUsageDetail_20' ) end [2025-02-15 07:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:41:23] Production.INFO: ==20382== Releasing lock... [2025-02-15 07:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:41:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:42:06 [end_date_ymd] => 2025-02-15 07:42:06 [RateCDR] => 1 ) [2025-02-15 07: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-15 04:42:06' and `end` < '2025-02-15 07: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-15 07:42:20] Production.INFO: count ==175 [2025-02-15 07:42:20] Production.ERROR: pbx CDR StartTime 2025-02-15 04:42:06 - End Time 2025-02-15 07:42:06 [2025-02-15 07:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479621', 'tblTempUsageDetail_20' ) start [2025-02-15 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479621', 'tblTempUsageDetail_20' ) end [2025-02-15 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479621', 'tblTempVendorCDR_20' ) start [2025-02-15 07:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479621', 'tblTempVendorCDR_20' ) end [2025-02-15 07:42:20] Production.INFO: ProcessCDR(1,14479621,1,1,2) [2025-02-15 07:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479621', 'tblTempUsageDetail_20' ) start [2025-02-15 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479621', 'tblTempUsageDetail_20' ) end [2025-02-15 07:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:42:23] Production.INFO: ==20460== Releasing lock... [2025-02-15 07:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:42:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:43:05 [end_date_ymd] => 2025-02-15 07:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:43:05' and `end` < '2025-02-15 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-15 07:43:18] Production.INFO: count ==175 [2025-02-15 07:43:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:43:05 - End Time 2025-02-15 07:43:05 [2025-02-15 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479626', 'tblTempUsageDetail_20' ) start [2025-02-15 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479626', 'tblTempUsageDetail_20' ) end [2025-02-15 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479626', 'tblTempVendorCDR_20' ) start [2025-02-15 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479626', 'tblTempVendorCDR_20' ) end [2025-02-15 07:43:18] Production.INFO: ProcessCDR(1,14479626,1,1,2) [2025-02-15 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479626', 'tblTempUsageDetail_20' ) start [2025-02-15 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479626', 'tblTempUsageDetail_20' ) end [2025-02-15 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:43:21] Production.INFO: ==20540== Releasing lock... [2025-02-15 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:43:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:44:05 [end_date_ymd] => 2025-02-15 07:44:05 [RateCDR] => 1 ) [2025-02-15 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:44:05' and `end` < '2025-02-15 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:44:18] Production.INFO: count ==175 [2025-02-15 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:44:05 - End Time 2025-02-15 07:44:05 [2025-02-15 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479631', 'tblTempUsageDetail_20' ) start [2025-02-15 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479631', 'tblTempUsageDetail_20' ) end [2025-02-15 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479631', 'tblTempVendorCDR_20' ) start [2025-02-15 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479631', 'tblTempVendorCDR_20' ) end [2025-02-15 07:44:18] Production.INFO: ProcessCDR(1,14479631,1,1,2) [2025-02-15 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479631', 'tblTempUsageDetail_20' ) start [2025-02-15 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479631', 'tblTempUsageDetail_20' ) end [2025-02-15 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:44:22] Production.INFO: ==20622== Releasing lock... [2025-02-15 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:44:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:45:05 [end_date_ymd] => 2025-02-15 07:45:05 [RateCDR] => 1 ) [2025-02-15 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 04:45:05' and `end` < '2025-02-15 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 07:45:18] Production.INFO: count ==175 [2025-02-15 07:45:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:45:05 - End Time 2025-02-15 07:45:05 [2025-02-15 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479636', 'tblTempUsageDetail_20' ) start [2025-02-15 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479636', 'tblTempUsageDetail_20' ) end [2025-02-15 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479636', 'tblTempVendorCDR_20' ) start [2025-02-15 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479636', 'tblTempVendorCDR_20' ) end [2025-02-15 07:45:18] Production.INFO: ProcessCDR(1,14479636,1,1,2) [2025-02-15 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479636', 'tblTempUsageDetail_20' ) start [2025-02-15 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479636', 'tblTempUsageDetail_20' ) end [2025-02-15 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:45:21] Production.INFO: ==20735== Releasing lock... [2025-02-15 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:45:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:46:06 [end_date_ymd] => 2025-02-15 07:46:06 [RateCDR] => 1 ) [2025-02-15 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-15 04:46:06' and `end` < '2025-02-15 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-15 07:46:19] Production.INFO: count ==175 [2025-02-15 07:46:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:46:06 - End Time 2025-02-15 07:46:06 [2025-02-15 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479641', 'tblTempUsageDetail_20' ) start [2025-02-15 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479641', 'tblTempUsageDetail_20' ) end [2025-02-15 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479641', 'tblTempVendorCDR_20' ) start [2025-02-15 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479641', 'tblTempVendorCDR_20' ) end [2025-02-15 07:46:19] Production.INFO: ProcessCDR(1,14479641,1,1,2) [2025-02-15 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479641', 'tblTempUsageDetail_20' ) start [2025-02-15 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479641', 'tblTempUsageDetail_20' ) end [2025-02-15 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:46:22] Production.INFO: ==20809== Releasing lock... [2025-02-15 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:46:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:47:05 [end_date_ymd] => 2025-02-15 07:47:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:47:05' and `end` < '2025-02-15 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-15 07:47:19] Production.INFO: count ==176 [2025-02-15 07:47:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:47:05 - End Time 2025-02-15 07:47:05 [2025-02-15 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479646', 'tblTempUsageDetail_20' ) start [2025-02-15 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479646', 'tblTempUsageDetail_20' ) end [2025-02-15 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479646', 'tblTempVendorCDR_20' ) start [2025-02-15 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479646', 'tblTempVendorCDR_20' ) end [2025-02-15 07:47:19] Production.INFO: ProcessCDR(1,14479646,1,1,2) [2025-02-15 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479646', 'tblTempUsageDetail_20' ) start [2025-02-15 07:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479646', 'tblTempUsageDetail_20' ) end [2025-02-15 07:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:47:24] Production.INFO: ==20888== Releasing lock... [2025-02-15 07:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:47:24] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:48:06 [end_date_ymd] => 2025-02-15 07:48:06 [RateCDR] => 1 ) [2025-02-15 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-15 04:48:06' and `end` < '2025-02-15 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-15 07:48:20] Production.INFO: count ==176 [2025-02-15 07:48:20] Production.ERROR: pbx CDR StartTime 2025-02-15 04:48:06 - End Time 2025-02-15 07:48:06 [2025-02-15 07:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479651', 'tblTempUsageDetail_20' ) start [2025-02-15 07:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479651', 'tblTempUsageDetail_20' ) end [2025-02-15 07:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479651', 'tblTempVendorCDR_20' ) start [2025-02-15 07:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479651', 'tblTempVendorCDR_20' ) end [2025-02-15 07:48:20] Production.INFO: ProcessCDR(1,14479651,1,1,2) [2025-02-15 07:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479651', 'tblTempUsageDetail_20' ) start [2025-02-15 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479651', 'tblTempUsageDetail_20' ) end [2025-02-15 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:48:23] Production.INFO: ==20964== Releasing lock... [2025-02-15 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:48:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:49:05 [end_date_ymd] => 2025-02-15 07:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:49:05' and `end` < '2025-02-15 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-15 07:49:17] Production.INFO: count ==175 [2025-02-15 07:49:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:49:05 - End Time 2025-02-15 07:49:05 [2025-02-15 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479656', 'tblTempUsageDetail_20' ) start [2025-02-15 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479656', 'tblTempUsageDetail_20' ) end [2025-02-15 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479656', 'tblTempVendorCDR_20' ) start [2025-02-15 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479656', 'tblTempVendorCDR_20' ) end [2025-02-15 07:49:18] Production.INFO: ProcessCDR(1,14479656,1,1,2) [2025-02-15 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479656', 'tblTempUsageDetail_20' ) start [2025-02-15 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479656', 'tblTempUsageDetail_20' ) end [2025-02-15 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:49:21] Production.INFO: ==21045== Releasing lock... [2025-02-15 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:49:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:50:06 [end_date_ymd] => 2025-02-15 07:50:06 [RateCDR] => 1 ) [2025-02-15 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-15 04:50:06' and `end` < '2025-02-15 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-15 07:50:19] Production.INFO: count ==179 [2025-02-15 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:50:06 - End Time 2025-02-15 07:50:06 [2025-02-15 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479662', 'tblTempUsageDetail_20' ) start [2025-02-15 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479662', 'tblTempUsageDetail_20' ) end [2025-02-15 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479662', 'tblTempVendorCDR_20' ) start [2025-02-15 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479662', 'tblTempVendorCDR_20' ) end [2025-02-15 07:50:19] Production.INFO: ProcessCDR(1,14479662,1,1,2) [2025-02-15 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479662', 'tblTempUsageDetail_20' ) start [2025-02-15 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479662', 'tblTempUsageDetail_20' ) end [2025-02-15 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:50:23] Production.INFO: ==21125== Releasing lock... [2025-02-15 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:50:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:51:05 [end_date_ymd] => 2025-02-15 07:51:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:51:05' and `end` < '2025-02-15 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-15 07:51:18] Production.INFO: count ==175 [2025-02-15 07:51:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:51:05 - End Time 2025-02-15 07:51:05 [2025-02-15 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479667', 'tblTempUsageDetail_20' ) start [2025-02-15 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479667', 'tblTempUsageDetail_20' ) end [2025-02-15 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479667', 'tblTempVendorCDR_20' ) start [2025-02-15 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479667', 'tblTempVendorCDR_20' ) end [2025-02-15 07:51:18] Production.INFO: ProcessCDR(1,14479667,1,1,2) [2025-02-15 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479667', 'tblTempUsageDetail_20' ) start [2025-02-15 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479667', 'tblTempUsageDetail_20' ) end [2025-02-15 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:51:21] Production.INFO: ==21205== Releasing lock... [2025-02-15 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:51:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:52:05 [end_date_ymd] => 2025-02-15 07:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:52:05' and `end` < '2025-02-15 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-15 07:52:18] Production.INFO: count ==175 [2025-02-15 07:52:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:52:05 - End Time 2025-02-15 07:52:05 [2025-02-15 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479672', 'tblTempUsageDetail_20' ) start [2025-02-15 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479672', 'tblTempUsageDetail_20' ) end [2025-02-15 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479672', 'tblTempVendorCDR_20' ) start [2025-02-15 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479672', 'tblTempVendorCDR_20' ) end [2025-02-15 07:52:18] Production.INFO: ProcessCDR(1,14479672,1,1,2) [2025-02-15 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479672', 'tblTempUsageDetail_20' ) start [2025-02-15 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479672', 'tblTempUsageDetail_20' ) end [2025-02-15 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:52:22] Production.INFO: ==21284== Releasing lock... [2025-02-15 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:52:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:53:04 [end_date_ymd] => 2025-02-15 07:53:04 [RateCDR] => 1 ) [2025-02-15 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-15 04:53:04' and `end` < '2025-02-15 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-15 07:53:17] Production.INFO: count ==175 [2025-02-15 07:53:17] Production.ERROR: pbx CDR StartTime 2025-02-15 04:53:04 - End Time 2025-02-15 07:53:04 [2025-02-15 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479677', 'tblTempUsageDetail_20' ) start [2025-02-15 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479677', 'tblTempUsageDetail_20' ) end [2025-02-15 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479677', 'tblTempVendorCDR_20' ) start [2025-02-15 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479677', 'tblTempVendorCDR_20' ) end [2025-02-15 07:53:17] Production.INFO: ProcessCDR(1,14479677,1,1,2) [2025-02-15 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479677', 'tblTempUsageDetail_20' ) start [2025-02-15 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479677', 'tblTempUsageDetail_20' ) end [2025-02-15 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:53:20] Production.INFO: ==21362== Releasing lock... [2025-02-15 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:53:20] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:54:05 [end_date_ymd] => 2025-02-15 07:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:54:05' and `end` < '2025-02-15 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-15 07:54:18] Production.INFO: count ==175 [2025-02-15 07:54:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:54:05 - End Time 2025-02-15 07:54:05 [2025-02-15 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479682', 'tblTempUsageDetail_20' ) start [2025-02-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479682', 'tblTempUsageDetail_20' ) end [2025-02-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479682', 'tblTempVendorCDR_20' ) start [2025-02-15 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479682', 'tblTempVendorCDR_20' ) end [2025-02-15 07:54:18] Production.INFO: ProcessCDR(1,14479682,1,1,2) [2025-02-15 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479682', 'tblTempUsageDetail_20' ) start [2025-02-15 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479682', 'tblTempUsageDetail_20' ) end [2025-02-15 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:54:22] Production.INFO: ==21445== Releasing lock... [2025-02-15 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:54:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:55:05 [end_date_ymd] => 2025-02-15 07:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:55:05' and `end` < '2025-02-15 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-15 07:55:18] Production.INFO: count ==175 [2025-02-15 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:55:05 - End Time 2025-02-15 07:55:05 [2025-02-15 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479687', 'tblTempUsageDetail_20' ) start [2025-02-15 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479687', 'tblTempUsageDetail_20' ) end [2025-02-15 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479687', 'tblTempVendorCDR_20' ) start [2025-02-15 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479687', 'tblTempVendorCDR_20' ) end [2025-02-15 07:55:19] Production.INFO: ProcessCDR(1,14479687,1,1,2) [2025-02-15 07:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479687', 'tblTempUsageDetail_20' ) start [2025-02-15 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479687', 'tblTempUsageDetail_20' ) end [2025-02-15 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:55:22] Production.INFO: ==21529== Releasing lock... [2025-02-15 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:55:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:56:05 [end_date_ymd] => 2025-02-15 07:56:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:56:05' and `end` < '2025-02-15 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-15 07:56:18] Production.INFO: count ==175 [2025-02-15 07:56:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:56:05 - End Time 2025-02-15 07:56:05 [2025-02-15 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479692', 'tblTempUsageDetail_20' ) start [2025-02-15 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479692', 'tblTempUsageDetail_20' ) end [2025-02-15 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479692', 'tblTempVendorCDR_20' ) start [2025-02-15 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479692', 'tblTempVendorCDR_20' ) end [2025-02-15 07:56:18] Production.INFO: ProcessCDR(1,14479692,1,1,2) [2025-02-15 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479692', 'tblTempUsageDetail_20' ) start [2025-02-15 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479692', 'tblTempUsageDetail_20' ) end [2025-02-15 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:56:21] Production.INFO: ==21602== Releasing lock... [2025-02-15 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:56:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:57:05 [end_date_ymd] => 2025-02-15 07:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:57:05' and `end` < '2025-02-15 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-15 07:57:19] Production.INFO: count ==175 [2025-02-15 07:57:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:57:05 - End Time 2025-02-15 07:57:05 [2025-02-15 07:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479697', 'tblTempUsageDetail_20' ) start [2025-02-15 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479697', 'tblTempUsageDetail_20' ) end [2025-02-15 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479697', 'tblTempVendorCDR_20' ) start [2025-02-15 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479697', 'tblTempVendorCDR_20' ) end [2025-02-15 07:57:19] Production.INFO: ProcessCDR(1,14479697,1,1,2) [2025-02-15 07:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479697', 'tblTempUsageDetail_20' ) start [2025-02-15 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479697', 'tblTempUsageDetail_20' ) end [2025-02-15 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:57:22] Production.INFO: ==21681== Releasing lock... [2025-02-15 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:57:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:58:05 [end_date_ymd] => 2025-02-15 07:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:58:05' and `end` < '2025-02-15 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-15 07:58:19] Production.INFO: count ==171 [2025-02-15 07:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 04:58:05 - End Time 2025-02-15 07:58:05 [2025-02-15 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479702', 'tblTempUsageDetail_20' ) start [2025-02-15 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479702', 'tblTempUsageDetail_20' ) end [2025-02-15 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479702', 'tblTempVendorCDR_20' ) start [2025-02-15 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479702', 'tblTempVendorCDR_20' ) end [2025-02-15 07:58:19] Production.INFO: ProcessCDR(1,14479702,1,1,2) [2025-02-15 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479702', 'tblTempUsageDetail_20' ) start [2025-02-15 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479702', 'tblTempUsageDetail_20' ) end [2025-02-15 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:58:22] Production.INFO: ==21758== Releasing lock... [2025-02-15 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 04:59:05 [end_date_ymd] => 2025-02-15 07:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 04:59:05' and `end` < '2025-02-15 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-15 07:59:18] Production.INFO: count ==171 [2025-02-15 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-15 04:59:05 - End Time 2025-02-15 07:59:05 [2025-02-15 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479707', 'tblTempUsageDetail_20' ) start [2025-02-15 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479707', 'tblTempUsageDetail_20' ) end [2025-02-15 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479707', 'tblTempVendorCDR_20' ) start [2025-02-15 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479707', 'tblTempVendorCDR_20' ) end [2025-02-15 07:59:18] Production.INFO: ProcessCDR(1,14479707,1,1,2) [2025-02-15 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479707', 'tblTempUsageDetail_20' ) start [2025-02-15 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479707', 'tblTempUsageDetail_20' ) end [2025-02-15 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 07:59:21] Production.INFO: ==21836== Releasing lock... [2025-02-15 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 07:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:00:06 [end_date_ymd] => 2025-02-15 08:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 05:00:06' and `end` < '2025-02-15 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-15 08:00:19] Production.INFO: count ==167 [2025-02-15 08:00:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:00:06 - End Time 2025-02-15 08:00:06 [2025-02-15 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479713', 'tblTempUsageDetail_20' ) start [2025-02-15 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479713', 'tblTempUsageDetail_20' ) end [2025-02-15 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479713', 'tblTempVendorCDR_20' ) start [2025-02-15 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479713', 'tblTempVendorCDR_20' ) end [2025-02-15 08:00:19] Production.INFO: ProcessCDR(1,14479713,1,1,2) [2025-02-15 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479713', 'tblTempUsageDetail_20' ) start [2025-02-15 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479713', 'tblTempUsageDetail_20' ) end [2025-02-15 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:00:22] Production.INFO: ==21914== Releasing lock... [2025-02-15 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:01:05 [end_date_ymd] => 2025-02-15 08:01:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:01:05' and `end` < '2025-02-15 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-15 08:01:18] Production.INFO: count ==167 [2025-02-15 08:01:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:01:05 - End Time 2025-02-15 08:01:05 [2025-02-15 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479718', 'tblTempUsageDetail_20' ) start [2025-02-15 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479718', 'tblTempUsageDetail_20' ) end [2025-02-15 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479718', 'tblTempVendorCDR_20' ) start [2025-02-15 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479718', 'tblTempVendorCDR_20' ) end [2025-02-15 08:01:18] Production.INFO: ProcessCDR(1,14479718,1,1,2) [2025-02-15 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479718', 'tblTempUsageDetail_20' ) start [2025-02-15 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479718', 'tblTempUsageDetail_20' ) end [2025-02-15 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:01:21] Production.INFO: ==22045== Releasing lock... [2025-02-15 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-15 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:02:06 [end_date_ymd] => 2025-02-15 08:02:06 [RateCDR] => 1 ) [2025-02-15 08: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-15 05:02:06' and `end` < '2025-02-15 08: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-15 08:02:20] Production.INFO: count ==172 [2025-02-15 08:02:20] Production.ERROR: pbx CDR StartTime 2025-02-15 05:02:06 - End Time 2025-02-15 08:02:06 [2025-02-15 08:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479723', 'tblTempUsageDetail_20' ) start [2025-02-15 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479723', 'tblTempUsageDetail_20' ) end [2025-02-15 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479723', 'tblTempVendorCDR_20' ) start [2025-02-15 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479723', 'tblTempVendorCDR_20' ) end [2025-02-15 08:02:20] Production.INFO: ProcessCDR(1,14479723,1,1,2) [2025-02-15 08:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479723', 'tblTempUsageDetail_20' ) start [2025-02-15 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479723', 'tblTempUsageDetail_20' ) end [2025-02-15 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:02:23] Production.INFO: ==22126== Releasing lock... [2025-02-15 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:02:23] Production.INFO: 29 MB #Memory Used# [2025-02-15 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:03:05 [end_date_ymd] => 2025-02-15 08:03:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:03:05' and `end` < '2025-02-15 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-15 08:03:18] Production.INFO: count ==180 [2025-02-15 08:03:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:03:05 - End Time 2025-02-15 08:03:05 [2025-02-15 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479728', 'tblTempUsageDetail_20' ) start [2025-02-15 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479728', 'tblTempUsageDetail_20' ) end [2025-02-15 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479728', 'tblTempVendorCDR_20' ) start [2025-02-15 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479728', 'tblTempVendorCDR_20' ) end [2025-02-15 08:03:18] Production.INFO: ProcessCDR(1,14479728,1,1,2) [2025-02-15 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479728', 'tblTempUsageDetail_20' ) start [2025-02-15 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479728', 'tblTempUsageDetail_20' ) end [2025-02-15 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:03:21] Production.INFO: ==22199== Releasing lock... [2025-02-15 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:03:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:04:05 [end_date_ymd] => 2025-02-15 08:04:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:04:05' and `end` < '2025-02-15 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-15 08:04:18] Production.INFO: count ==182 [2025-02-15 08:04:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:04:05 - End Time 2025-02-15 08:04:05 [2025-02-15 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479733', 'tblTempUsageDetail_20' ) start [2025-02-15 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479733', 'tblTempUsageDetail_20' ) end [2025-02-15 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479733', 'tblTempVendorCDR_20' ) start [2025-02-15 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479733', 'tblTempVendorCDR_20' ) end [2025-02-15 08:04:18] Production.INFO: ProcessCDR(1,14479733,1,1,2) [2025-02-15 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479733', 'tblTempUsageDetail_20' ) start [2025-02-15 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479733', 'tblTempUsageDetail_20' ) end [2025-02-15 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:04:22] Production.INFO: ==22280== Releasing lock... [2025-02-15 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:04:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:05:05 [end_date_ymd] => 2025-02-15 08:05:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:05:05' and `end` < '2025-02-15 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-15 08:05:18] Production.INFO: count ==182 [2025-02-15 08:05:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:05:05 - End Time 2025-02-15 08:05:05 [2025-02-15 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479738', 'tblTempUsageDetail_20' ) start [2025-02-15 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479738', 'tblTempUsageDetail_20' ) end [2025-02-15 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479738', 'tblTempVendorCDR_20' ) start [2025-02-15 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479738', 'tblTempVendorCDR_20' ) end [2025-02-15 08:05:18] Production.INFO: ProcessCDR(1,14479738,1,1,2) [2025-02-15 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479738', 'tblTempUsageDetail_20' ) start [2025-02-15 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479738', 'tblTempUsageDetail_20' ) end [2025-02-15 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:05:22] Production.INFO: ==22355== Releasing lock... [2025-02-15 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:05:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:06:05 [end_date_ymd] => 2025-02-15 08:06:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:06:05' and `end` < '2025-02-15 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-15 08:06:19] Production.INFO: count ==182 [2025-02-15 08:06:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:06:05 - End Time 2025-02-15 08:06:05 [2025-02-15 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479743', 'tblTempUsageDetail_20' ) start [2025-02-15 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479743', 'tblTempUsageDetail_20' ) end [2025-02-15 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479743', 'tblTempVendorCDR_20' ) start [2025-02-15 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479743', 'tblTempVendorCDR_20' ) end [2025-02-15 08:06:19] Production.INFO: ProcessCDR(1,14479743,1,1,2) [2025-02-15 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479743', 'tblTempUsageDetail_20' ) start [2025-02-15 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479743', 'tblTempUsageDetail_20' ) end [2025-02-15 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:06:22] Production.INFO: ==22432== Releasing lock... [2025-02-15 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:06:22] Production.INFO: 29 MB #Memory Used# [2025-02-15 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:07:05 [end_date_ymd] => 2025-02-15 08:07:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:07:05' and `end` < '2025-02-15 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-15 08:07:18] Production.INFO: count ==183 [2025-02-15 08:07:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:07:05 - End Time 2025-02-15 08:07:05 [2025-02-15 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479748', 'tblTempUsageDetail_20' ) start [2025-02-15 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479748', 'tblTempUsageDetail_20' ) end [2025-02-15 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479748', 'tblTempVendorCDR_20' ) start [2025-02-15 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479748', 'tblTempVendorCDR_20' ) end [2025-02-15 08:07:18] Production.INFO: ProcessCDR(1,14479748,1,1,2) [2025-02-15 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479748', 'tblTempUsageDetail_20' ) start [2025-02-15 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479748', 'tblTempUsageDetail_20' ) end [2025-02-15 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:07:21] Production.INFO: ==22506== Releasing lock... [2025-02-15 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:07:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:08:05 [end_date_ymd] => 2025-02-15 08:08:05 [RateCDR] => 1 ) [2025-02-15 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:08:05' and `end` < '2025-02-15 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:08:18] Production.INFO: count ==186 [2025-02-15 08:08:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:08:05 - End Time 2025-02-15 08:08:05 [2025-02-15 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479753', 'tblTempUsageDetail_20' ) start [2025-02-15 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479753', 'tblTempUsageDetail_20' ) end [2025-02-15 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479753', 'tblTempVendorCDR_20' ) start [2025-02-15 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479753', 'tblTempVendorCDR_20' ) end [2025-02-15 08:08:18] Production.INFO: ProcessCDR(1,14479753,1,1,2) [2025-02-15 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479753', 'tblTempUsageDetail_20' ) start [2025-02-15 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479753', 'tblTempUsageDetail_20' ) end [2025-02-15 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:08:21] Production.INFO: ==22587== Releasing lock... [2025-02-15 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:08:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:09:05 [end_date_ymd] => 2025-02-15 08:09:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:09:05' and `end` < '2025-02-15 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-15 08:09:18] Production.INFO: count ==186 [2025-02-15 08:09:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:09:05 - End Time 2025-02-15 08:09:05 [2025-02-15 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479758', 'tblTempUsageDetail_20' ) start [2025-02-15 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479758', 'tblTempUsageDetail_20' ) end [2025-02-15 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479758', 'tblTempVendorCDR_20' ) start [2025-02-15 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479758', 'tblTempVendorCDR_20' ) end [2025-02-15 08:09:18] Production.INFO: ProcessCDR(1,14479758,1,1,2) [2025-02-15 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479758', 'tblTempUsageDetail_20' ) start [2025-02-15 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479758', 'tblTempUsageDetail_20' ) end [2025-02-15 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:09:21] Production.INFO: ==22666== Releasing lock... [2025-02-15 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:09:21] Production.INFO: 29 MB #Memory Used# [2025-02-15 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:10:06 [end_date_ymd] => 2025-02-15 08:10:06 [RateCDR] => 1 ) [2025-02-15 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:10:06' and `end` < '2025-02-15 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:10:19] Production.INFO: count ==186 [2025-02-15 08:10:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:10:06 - End Time 2025-02-15 08:10:06 [2025-02-15 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479762', 'tblTempUsageDetail_20' ) start [2025-02-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479762', 'tblTempUsageDetail_20' ) end [2025-02-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479762', 'tblTempVendorCDR_20' ) start [2025-02-15 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479762', 'tblTempVendorCDR_20' ) end [2025-02-15 08:10:19] Production.INFO: ProcessCDR(1,14479762,1,1,2) [2025-02-15 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479762', 'tblTempUsageDetail_20' ) start [2025-02-15 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479762', 'tblTempUsageDetail_20' ) end [2025-02-15 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:10:22] Production.INFO: ==22747== Releasing lock... [2025-02-15 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:11:05 [end_date_ymd] => 2025-02-15 08:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:11:05' and `end` < '2025-02-15 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-15 08:11:20] Production.INFO: count ==186 [2025-02-15 08:11:20] Production.ERROR: pbx CDR StartTime 2025-02-15 05:11:05 - End Time 2025-02-15 08:11:05 [2025-02-15 08:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479769', 'tblTempUsageDetail_20' ) start [2025-02-15 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479769', 'tblTempUsageDetail_20' ) end [2025-02-15 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479769', 'tblTempVendorCDR_20' ) start [2025-02-15 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479769', 'tblTempVendorCDR_20' ) end [2025-02-15 08:11:20] Production.INFO: ProcessCDR(1,14479769,1,1,2) [2025-02-15 08:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479769', 'tblTempUsageDetail_20' ) start [2025-02-15 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479769', 'tblTempUsageDetail_20' ) end [2025-02-15 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:11:23] Production.INFO: ==22827== Releasing lock... [2025-02-15 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:11:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:12:06 [end_date_ymd] => 2025-02-15 08:12:06 [RateCDR] => 1 ) [2025-02-15 08: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-15 05:12:06' and `end` < '2025-02-15 08: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-15 08:12:18] Production.INFO: count ==186 [2025-02-15 08:12:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:12:06 - End Time 2025-02-15 08:12:06 [2025-02-15 08:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479774', 'tblTempUsageDetail_20' ) start [2025-02-15 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479774', 'tblTempUsageDetail_20' ) end [2025-02-15 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479774', 'tblTempVendorCDR_20' ) start [2025-02-15 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479774', 'tblTempVendorCDR_20' ) end [2025-02-15 08:12:19] Production.INFO: ProcessCDR(1,14479774,1,1,2) [2025-02-15 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479774', 'tblTempUsageDetail_20' ) start [2025-02-15 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479774', 'tblTempUsageDetail_20' ) end [2025-02-15 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:12:22] Production.INFO: ==22905== Releasing lock... [2025-02-15 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:13:04 [end_date_ymd] => 2025-02-15 08:13:04 [RateCDR] => 1 ) [2025-02-15 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-15 05:13:04' and `end` < '2025-02-15 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-15 08:13:18] Production.INFO: count ==186 [2025-02-15 08:13:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:13:04 - End Time 2025-02-15 08:13:04 [2025-02-15 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479779', 'tblTempUsageDetail_20' ) start [2025-02-15 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479779', 'tblTempUsageDetail_20' ) end [2025-02-15 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479779', 'tblTempVendorCDR_20' ) start [2025-02-15 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479779', 'tblTempVendorCDR_20' ) end [2025-02-15 08:13:18] Production.INFO: ProcessCDR(1,14479779,1,1,2) [2025-02-15 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479779', 'tblTempUsageDetail_20' ) start [2025-02-15 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479779', 'tblTempUsageDetail_20' ) end [2025-02-15 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:13:21] Production.INFO: ==22982== Releasing lock... [2025-02-15 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:14:06 [end_date_ymd] => 2025-02-15 08:14:06 [RateCDR] => 1 ) [2025-02-15 08: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-15 05:14:06' and `end` < '2025-02-15 08: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-15 08:14:19] Production.INFO: count ==200 [2025-02-15 08:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:14:06 - End Time 2025-02-15 08:14:06 [2025-02-15 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479784', 'tblTempUsageDetail_20' ) start [2025-02-15 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479784', 'tblTempUsageDetail_20' ) end [2025-02-15 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479784', 'tblTempVendorCDR_20' ) start [2025-02-15 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479784', 'tblTempVendorCDR_20' ) end [2025-02-15 08:14:19] Production.INFO: ProcessCDR(1,14479784,1,1,2) [2025-02-15 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479784', 'tblTempUsageDetail_20' ) start [2025-02-15 08:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479784', 'tblTempUsageDetail_20' ) end [2025-02-15 08:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:14:24] Production.INFO: ==23056== Releasing lock... [2025-02-15 08:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:14:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:15:04 [end_date_ymd] => 2025-02-15 08:15:04 [RateCDR] => 1 ) [2025-02-15 08:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:15:04' and `end` < '2025-02-15 08:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:15:17] Production.INFO: count ==200 [2025-02-15 08:15:17] Production.ERROR: pbx CDR StartTime 2025-02-15 05:15:04 - End Time 2025-02-15 08:15:04 [2025-02-15 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479789', 'tblTempUsageDetail_20' ) start [2025-02-15 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479789', 'tblTempUsageDetail_20' ) end [2025-02-15 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479789', 'tblTempVendorCDR_20' ) start [2025-02-15 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479789', 'tblTempVendorCDR_20' ) end [2025-02-15 08:15:17] Production.INFO: ProcessCDR(1,14479789,1,1,2) [2025-02-15 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479789', 'tblTempUsageDetail_20' ) start [2025-02-15 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479789', 'tblTempUsageDetail_20' ) end [2025-02-15 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:15:21] Production.INFO: ==23133== Releasing lock... [2025-02-15 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:16:05 [end_date_ymd] => 2025-02-15 08:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:16:05' and `end` < '2025-02-15 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-15 08:16:18] Production.INFO: count ==200 [2025-02-15 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:16:05 - End Time 2025-02-15 08:16:05 [2025-02-15 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479794', 'tblTempUsageDetail_20' ) start [2025-02-15 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479794', 'tblTempUsageDetail_20' ) end [2025-02-15 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479794', 'tblTempVendorCDR_20' ) start [2025-02-15 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479794', 'tblTempVendorCDR_20' ) end [2025-02-15 08:16:18] Production.INFO: ProcessCDR(1,14479794,1,1,2) [2025-02-15 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479794', 'tblTempUsageDetail_20' ) start [2025-02-15 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479794', 'tblTempUsageDetail_20' ) end [2025-02-15 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:16:21] Production.INFO: ==23249== Releasing lock... [2025-02-15 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:17:06 [end_date_ymd] => 2025-02-15 08:17:06 [RateCDR] => 1 ) [2025-02-15 08:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:17:06' and `end` < '2025-02-15 08:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:17:20] Production.INFO: count ==208 [2025-02-15 08:17:20] Production.ERROR: pbx CDR StartTime 2025-02-15 05:17:06 - End Time 2025-02-15 08:17:06 [2025-02-15 08:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479799', 'tblTempUsageDetail_20' ) start [2025-02-15 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479799', 'tblTempUsageDetail_20' ) end [2025-02-15 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479799', 'tblTempVendorCDR_20' ) start [2025-02-15 08:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479799', 'tblTempVendorCDR_20' ) end [2025-02-15 08:17:20] Production.INFO: ProcessCDR(1,14479799,1,1,2) [2025-02-15 08:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479799', 'tblTempUsageDetail_20' ) start [2025-02-15 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479799', 'tblTempUsageDetail_20' ) end [2025-02-15 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:17:23] Production.INFO: ==23325== Releasing lock... [2025-02-15 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:17:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:18:05 [end_date_ymd] => 2025-02-15 08:18:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:18:05' and `end` < '2025-02-15 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-15 08:18:18] Production.INFO: count ==208 [2025-02-15 08:18:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:18:05 - End Time 2025-02-15 08:18:05 [2025-02-15 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479804', 'tblTempUsageDetail_20' ) start [2025-02-15 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479804', 'tblTempUsageDetail_20' ) end [2025-02-15 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479804', 'tblTempVendorCDR_20' ) start [2025-02-15 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479804', 'tblTempVendorCDR_20' ) end [2025-02-15 08:18:18] Production.INFO: ProcessCDR(1,14479804,1,1,2) [2025-02-15 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479804', 'tblTempUsageDetail_20' ) start [2025-02-15 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479804', 'tblTempUsageDetail_20' ) end [2025-02-15 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:18:21] Production.INFO: ==23413== Releasing lock... [2025-02-15 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:19:05 [end_date_ymd] => 2025-02-15 08:19:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:19:05' and `end` < '2025-02-15 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-15 08:19:18] Production.INFO: count ==208 [2025-02-15 08:19:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:19:05 - End Time 2025-02-15 08:19:05 [2025-02-15 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479809', 'tblTempUsageDetail_20' ) start [2025-02-15 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479809', 'tblTempUsageDetail_20' ) end [2025-02-15 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479809', 'tblTempVendorCDR_20' ) start [2025-02-15 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479809', 'tblTempVendorCDR_20' ) end [2025-02-15 08:19:18] Production.INFO: ProcessCDR(1,14479809,1,1,2) [2025-02-15 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479809', 'tblTempUsageDetail_20' ) start [2025-02-15 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479809', 'tblTempUsageDetail_20' ) end [2025-02-15 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:19:22] Production.INFO: ==23489== Releasing lock... [2025-02-15 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:19:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:20:05 [end_date_ymd] => 2025-02-15 08:20:05 [RateCDR] => 1 ) [2025-02-15 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:20:05' and `end` < '2025-02-15 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:20:18] Production.INFO: count ==207 [2025-02-15 08:20:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:20:05 - End Time 2025-02-15 08:20:05 [2025-02-15 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479815', 'tblTempUsageDetail_20' ) start [2025-02-15 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479815', 'tblTempUsageDetail_20' ) end [2025-02-15 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479815', 'tblTempVendorCDR_20' ) start [2025-02-15 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479815', 'tblTempVendorCDR_20' ) end [2025-02-15 08:20:18] Production.INFO: ProcessCDR(1,14479815,1,1,2) [2025-02-15 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479815', 'tblTempUsageDetail_20' ) start [2025-02-15 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479815', 'tblTempUsageDetail_20' ) end [2025-02-15 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:20:21] Production.INFO: ==23572== Releasing lock... [2025-02-15 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:21:05 [end_date_ymd] => 2025-02-15 08:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:21:05' and `end` < '2025-02-15 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-15 08:21:18] Production.INFO: count ==207 [2025-02-15 08:21:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:21:05 - End Time 2025-02-15 08:21:05 [2025-02-15 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479820', 'tblTempUsageDetail_20' ) start [2025-02-15 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479820', 'tblTempUsageDetail_20' ) end [2025-02-15 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479820', 'tblTempVendorCDR_20' ) start [2025-02-15 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479820', 'tblTempVendorCDR_20' ) end [2025-02-15 08:21:18] Production.INFO: ProcessCDR(1,14479820,1,1,2) [2025-02-15 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479820', 'tblTempUsageDetail_20' ) start [2025-02-15 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479820', 'tblTempUsageDetail_20' ) end [2025-02-15 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:21:21] Production.INFO: ==23652== Releasing lock... [2025-02-15 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:22:05 [end_date_ymd] => 2025-02-15 08:22:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:22:05' and `end` < '2025-02-15 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-15 08:22:18] Production.INFO: count ==207 [2025-02-15 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:22:05 - End Time 2025-02-15 08:22:05 [2025-02-15 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479825', 'tblTempUsageDetail_20' ) start [2025-02-15 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479825', 'tblTempUsageDetail_20' ) end [2025-02-15 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479825', 'tblTempVendorCDR_20' ) start [2025-02-15 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479825', 'tblTempVendorCDR_20' ) end [2025-02-15 08:22:18] Production.INFO: ProcessCDR(1,14479825,1,1,2) [2025-02-15 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479825', 'tblTempUsageDetail_20' ) start [2025-02-15 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479825', 'tblTempUsageDetail_20' ) end [2025-02-15 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:22:21] Production.INFO: ==23732== Releasing lock... [2025-02-15 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:23:05 [end_date_ymd] => 2025-02-15 08:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:23:05' and `end` < '2025-02-15 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-15 08:23:18] Production.INFO: count ==210 [2025-02-15 08:23:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:23:05 - End Time 2025-02-15 08:23:05 [2025-02-15 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479830', 'tblTempUsageDetail_20' ) start [2025-02-15 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479830', 'tblTempUsageDetail_20' ) end [2025-02-15 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479830', 'tblTempVendorCDR_20' ) start [2025-02-15 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479830', 'tblTempVendorCDR_20' ) end [2025-02-15 08:23:18] Production.INFO: ProcessCDR(1,14479830,1,1,2) [2025-02-15 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479830', 'tblTempUsageDetail_20' ) start [2025-02-15 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479830', 'tblTempUsageDetail_20' ) end [2025-02-15 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:23:21] Production.INFO: ==23815== Releasing lock... [2025-02-15 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:24:06 [end_date_ymd] => 2025-02-15 08:24:06 [RateCDR] => 1 ) [2025-02-15 08: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-15 05:24:06' and `end` < '2025-02-15 08: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-15 08:24:19] Production.INFO: count ==210 [2025-02-15 08:24:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:24:06 - End Time 2025-02-15 08:24:06 [2025-02-15 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479835', 'tblTempUsageDetail_20' ) start [2025-02-15 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479835', 'tblTempUsageDetail_20' ) end [2025-02-15 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479835', 'tblTempVendorCDR_20' ) start [2025-02-15 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479835', 'tblTempVendorCDR_20' ) end [2025-02-15 08:24:19] Production.INFO: ProcessCDR(1,14479835,1,1,2) [2025-02-15 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479835', 'tblTempUsageDetail_20' ) start [2025-02-15 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479835', 'tblTempUsageDetail_20' ) end [2025-02-15 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:24:22] Production.INFO: ==23887== Releasing lock... [2025-02-15 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:25:05 [end_date_ymd] => 2025-02-15 08:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:25:05' and `end` < '2025-02-15 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-15 08:25:19] Production.INFO: count ==210 [2025-02-15 08:25:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:25:05 - End Time 2025-02-15 08:25:05 [2025-02-15 08:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479840', 'tblTempUsageDetail_20' ) start [2025-02-15 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479840', 'tblTempUsageDetail_20' ) end [2025-02-15 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479840', 'tblTempVendorCDR_20' ) start [2025-02-15 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479840', 'tblTempVendorCDR_20' ) end [2025-02-15 08:25:19] Production.INFO: ProcessCDR(1,14479840,1,1,2) [2025-02-15 08:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479840', 'tblTempUsageDetail_20' ) start [2025-02-15 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479840', 'tblTempUsageDetail_20' ) end [2025-02-15 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:25:22] Production.INFO: ==23962== Releasing lock... [2025-02-15 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-15 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:26:05 [end_date_ymd] => 2025-02-15 08:26:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:26:05' and `end` < '2025-02-15 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-15 08:26:19] Production.INFO: count ==211 [2025-02-15 08:26:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:26:05 - End Time 2025-02-15 08:26:05 [2025-02-15 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479845', 'tblTempUsageDetail_20' ) start [2025-02-15 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479845', 'tblTempUsageDetail_20' ) end [2025-02-15 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479845', 'tblTempVendorCDR_20' ) start [2025-02-15 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479845', 'tblTempVendorCDR_20' ) end [2025-02-15 08:26:19] Production.INFO: ProcessCDR(1,14479845,1,1,2) [2025-02-15 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479845', 'tblTempUsageDetail_20' ) start [2025-02-15 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479845', 'tblTempUsageDetail_20' ) end [2025-02-15 08:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:26:24] Production.INFO: ==24035== Releasing lock... [2025-02-15 08:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:26:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:27:05 [end_date_ymd] => 2025-02-15 08:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:27:05' and `end` < '2025-02-15 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-15 08:27:20] Production.INFO: count ==211 [2025-02-15 08:27:20] Production.ERROR: pbx CDR StartTime 2025-02-15 05:27:05 - End Time 2025-02-15 08:27:05 [2025-02-15 08:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479850', 'tblTempUsageDetail_20' ) start [2025-02-15 08:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479850', 'tblTempUsageDetail_20' ) end [2025-02-15 08:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479850', 'tblTempVendorCDR_20' ) start [2025-02-15 08:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479850', 'tblTempVendorCDR_20' ) end [2025-02-15 08:27:20] Production.INFO: ProcessCDR(1,14479850,1,1,2) [2025-02-15 08:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479850', 'tblTempUsageDetail_20' ) start [2025-02-15 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479850', 'tblTempUsageDetail_20' ) end [2025-02-15 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:27:23] Production.INFO: ==24107== Releasing lock... [2025-02-15 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:27:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-15 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:28:06 [end_date_ymd] => 2025-02-15 08:28:06 [RateCDR] => 1 ) [2025-02-15 08:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:28:06' and `end` < '2025-02-15 08:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:28:19] Production.INFO: count ==216 [2025-02-15 08:28:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:28:06 - End Time 2025-02-15 08:28:06 [2025-02-15 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479855', 'tblTempUsageDetail_20' ) start [2025-02-15 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479855', 'tblTempUsageDetail_20' ) end [2025-02-15 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479855', 'tblTempVendorCDR_20' ) start [2025-02-15 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479855', 'tblTempVendorCDR_20' ) end [2025-02-15 08:28:19] Production.INFO: ProcessCDR(1,14479855,1,1,2) [2025-02-15 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479855', 'tblTempUsageDetail_20' ) start [2025-02-15 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479855', 'tblTempUsageDetail_20' ) end [2025-02-15 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:28:22] Production.INFO: ==24182== Releasing lock... [2025-02-15 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:28:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:29:05 [end_date_ymd] => 2025-02-15 08:29:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:29:05' and `end` < '2025-02-15 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-15 08:29:18] Production.INFO: count ==216 [2025-02-15 08:29:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:29:05 - End Time 2025-02-15 08:29:05 [2025-02-15 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479860', 'tblTempUsageDetail_20' ) start [2025-02-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479860', 'tblTempUsageDetail_20' ) end [2025-02-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479860', 'tblTempVendorCDR_20' ) start [2025-02-15 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479860', 'tblTempVendorCDR_20' ) end [2025-02-15 08:29:18] Production.INFO: ProcessCDR(1,14479860,1,1,2) [2025-02-15 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479860', 'tblTempUsageDetail_20' ) start [2025-02-15 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479860', 'tblTempUsageDetail_20' ) end [2025-02-15 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:29:22] Production.INFO: ==24254== Releasing lock... [2025-02-15 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:29:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:30:06 [end_date_ymd] => 2025-02-15 08:30:06 [RateCDR] => 1 ) [2025-02-15 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-15 05:30:06' and `end` < '2025-02-15 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-15 08:30:20] Production.INFO: count ==224 [2025-02-15 08:30:20] Production.ERROR: pbx CDR StartTime 2025-02-15 05:30:06 - End Time 2025-02-15 08:30:06 [2025-02-15 08:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479866', 'tblTempUsageDetail_20' ) start [2025-02-15 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479866', 'tblTempUsageDetail_20' ) end [2025-02-15 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479866', 'tblTempVendorCDR_20' ) start [2025-02-15 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479866', 'tblTempVendorCDR_20' ) end [2025-02-15 08:30:20] Production.INFO: ProcessCDR(1,14479866,1,1,2) [2025-02-15 08:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479866', 'tblTempUsageDetail_20' ) start [2025-02-15 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479866', 'tblTempUsageDetail_20' ) end [2025-02-15 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:30:23] Production.INFO: ==24336== Releasing lock... [2025-02-15 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:30:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:31:05 [end_date_ymd] => 2025-02-15 08:31:05 [RateCDR] => 1 ) [2025-02-15 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:31:05' and `end` < '2025-02-15 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:31:19] Production.INFO: count ==244 [2025-02-15 08:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:31:05 - End Time 2025-02-15 08:31:05 [2025-02-15 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479871', 'tblTempUsageDetail_20' ) start [2025-02-15 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479871', 'tblTempUsageDetail_20' ) end [2025-02-15 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479871', 'tblTempVendorCDR_20' ) start [2025-02-15 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479871', 'tblTempVendorCDR_20' ) end [2025-02-15 08:31:19] Production.INFO: ProcessCDR(1,14479871,1,1,2) [2025-02-15 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479871', 'tblTempUsageDetail_20' ) start [2025-02-15 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479871', 'tblTempUsageDetail_20' ) end [2025-02-15 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:31:23] Production.INFO: ==24413== Releasing lock... [2025-02-15 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:31:23] Production.INFO: 30 MB #Memory Used# [2025-02-15 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:32:06 [end_date_ymd] => 2025-02-15 08:32:06 [RateCDR] => 1 ) [2025-02-15 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:32:06' and `end` < '2025-02-15 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:32:19] Production.INFO: count ==244 [2025-02-15 08:32:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:32:06 - End Time 2025-02-15 08:32:06 [2025-02-15 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479876', 'tblTempUsageDetail_20' ) start [2025-02-15 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479876', 'tblTempUsageDetail_20' ) end [2025-02-15 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479876', 'tblTempVendorCDR_20' ) start [2025-02-15 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479876', 'tblTempVendorCDR_20' ) end [2025-02-15 08:32:19] Production.INFO: ProcessCDR(1,14479876,1,1,2) [2025-02-15 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479876', 'tblTempUsageDetail_20' ) start [2025-02-15 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479876', 'tblTempUsageDetail_20' ) end [2025-02-15 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:32:22] Production.INFO: ==24526== Releasing lock... [2025-02-15 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:32:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:33:05 [end_date_ymd] => 2025-02-15 08:33:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:33:05' and `end` < '2025-02-15 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-15 08:33:18] Production.INFO: count ==245 [2025-02-15 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:33:05 - End Time 2025-02-15 08:33:05 [2025-02-15 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479881', 'tblTempUsageDetail_20' ) start [2025-02-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479881', 'tblTempUsageDetail_20' ) end [2025-02-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479881', 'tblTempVendorCDR_20' ) start [2025-02-15 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479881', 'tblTempVendorCDR_20' ) end [2025-02-15 08:33:18] Production.INFO: ProcessCDR(1,14479881,1,1,2) [2025-02-15 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479881', 'tblTempUsageDetail_20' ) start [2025-02-15 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479881', 'tblTempUsageDetail_20' ) end [2025-02-15 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:33:22] Production.INFO: ==24596== Releasing lock... [2025-02-15 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:33:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:34:05 [end_date_ymd] => 2025-02-15 08:34:05 [RateCDR] => 1 ) [2025-02-15 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:34:05' and `end` < '2025-02-15 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:34:18] Production.INFO: count ==245 [2025-02-15 08:34:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:34:05 - End Time 2025-02-15 08:34:05 [2025-02-15 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479886', 'tblTempUsageDetail_20' ) start [2025-02-15 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479886', 'tblTempUsageDetail_20' ) end [2025-02-15 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479886', 'tblTempVendorCDR_20' ) start [2025-02-15 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479886', 'tblTempVendorCDR_20' ) end [2025-02-15 08:34:18] Production.INFO: ProcessCDR(1,14479886,1,1,2) [2025-02-15 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479886', 'tblTempUsageDetail_20' ) start [2025-02-15 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479886', 'tblTempUsageDetail_20' ) end [2025-02-15 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:34:22] Production.INFO: ==24672== Releasing lock... [2025-02-15 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:34:22] Production.INFO: 30 MB #Memory Used# [2025-02-15 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:35:05 [end_date_ymd] => 2025-02-15 08:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:35:05' and `end` < '2025-02-15 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-15 08:35:18] Production.INFO: count ==245 [2025-02-15 08:35:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:35:05 - End Time 2025-02-15 08:35:05 [2025-02-15 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479891', 'tblTempUsageDetail_20' ) start [2025-02-15 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479891', 'tblTempUsageDetail_20' ) end [2025-02-15 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479891', 'tblTempVendorCDR_20' ) start [2025-02-15 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479891', 'tblTempVendorCDR_20' ) end [2025-02-15 08:35:18] Production.INFO: ProcessCDR(1,14479891,1,1,2) [2025-02-15 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479891', 'tblTempUsageDetail_20' ) start [2025-02-15 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479891', 'tblTempUsageDetail_20' ) end [2025-02-15 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:35:21] Production.INFO: ==24746== Releasing lock... [2025-02-15 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:35:21] Production.INFO: 30 MB #Memory Used# [2025-02-15 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:36:05 [end_date_ymd] => 2025-02-15 08:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:36:05' and `end` < '2025-02-15 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-15 08:36:19] Production.INFO: count ==257 [2025-02-15 08:36:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:36:05 - End Time 2025-02-15 08:36:05 [2025-02-15 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479896', 'tblTempUsageDetail_20' ) start [2025-02-15 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479896', 'tblTempUsageDetail_20' ) end [2025-02-15 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479896', 'tblTempVendorCDR_20' ) start [2025-02-15 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479896', 'tblTempVendorCDR_20' ) end [2025-02-15 08:36:19] Production.INFO: ProcessCDR(1,14479896,1,1,2) [2025-02-15 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479896', 'tblTempUsageDetail_20' ) start [2025-02-15 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479896', 'tblTempUsageDetail_20' ) end [2025-02-15 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:36:22] Production.INFO: ==24819== Releasing lock... [2025-02-15 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:37:05 [end_date_ymd] => 2025-02-15 08:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:37:05' and `end` < '2025-02-15 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-15 08:37:18] Production.INFO: count ==260 [2025-02-15 08:37:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:37:05 - End Time 2025-02-15 08:37:05 [2025-02-15 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479901', 'tblTempUsageDetail_20' ) start [2025-02-15 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479901', 'tblTempUsageDetail_20' ) end [2025-02-15 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479901', 'tblTempVendorCDR_20' ) start [2025-02-15 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479901', 'tblTempVendorCDR_20' ) end [2025-02-15 08:37:18] Production.INFO: ProcessCDR(1,14479901,1,1,2) [2025-02-15 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479901', 'tblTempUsageDetail_20' ) start [2025-02-15 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479901', 'tblTempUsageDetail_20' ) end [2025-02-15 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:37:21] Production.INFO: ==24891== Releasing lock... [2025-02-15 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:38:05 [end_date_ymd] => 2025-02-15 08:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:38:05' and `end` < '2025-02-15 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-15 08:38:18] Production.INFO: count ==264 [2025-02-15 08:38:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:38:05 - End Time 2025-02-15 08:38:05 [2025-02-15 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479906', 'tblTempUsageDetail_20' ) start [2025-02-15 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479906', 'tblTempUsageDetail_20' ) end [2025-02-15 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479906', 'tblTempVendorCDR_20' ) start [2025-02-15 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479906', 'tblTempVendorCDR_20' ) end [2025-02-15 08:38:19] Production.INFO: ProcessCDR(1,14479906,1,1,2) [2025-02-15 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479906', 'tblTempUsageDetail_20' ) start [2025-02-15 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479906', 'tblTempUsageDetail_20' ) end [2025-02-15 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:38:22] Production.INFO: ==24963== Releasing lock... [2025-02-15 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:38:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-15 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:39:05 [end_date_ymd] => 2025-02-15 08:39:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:39:05' and `end` < '2025-02-15 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-15 08:39:18] Production.INFO: count ==277 [2025-02-15 08:39:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:39:05 - End Time 2025-02-15 08:39:05 [2025-02-15 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479911', 'tblTempUsageDetail_20' ) start [2025-02-15 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479911', 'tblTempUsageDetail_20' ) end [2025-02-15 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479911', 'tblTempVendorCDR_20' ) start [2025-02-15 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479911', 'tblTempVendorCDR_20' ) end [2025-02-15 08:39:18] Production.INFO: ProcessCDR(1,14479911,1,1,2) [2025-02-15 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479911', 'tblTempUsageDetail_20' ) start [2025-02-15 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479911', 'tblTempUsageDetail_20' ) end [2025-02-15 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:39:21] Production.INFO: ==25033== Releasing lock... [2025-02-15 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-15 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:40:06 [end_date_ymd] => 2025-02-15 08:40:06 [RateCDR] => 1 ) [2025-02-15 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-15 05:40:06' and `end` < '2025-02-15 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-15 08:40:19] Production.INFO: count ==282 [2025-02-15 08:40:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:40:06 - End Time 2025-02-15 08:40:06 [2025-02-15 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479917', 'tblTempUsageDetail_20' ) start [2025-02-15 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479917', 'tblTempUsageDetail_20' ) end [2025-02-15 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479917', 'tblTempVendorCDR_20' ) start [2025-02-15 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479917', 'tblTempVendorCDR_20' ) end [2025-02-15 08:40:19] Production.INFO: ProcessCDR(1,14479917,1,1,2) [2025-02-15 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479917', 'tblTempUsageDetail_20' ) start [2025-02-15 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479917', 'tblTempUsageDetail_20' ) end [2025-02-15 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:40:22] Production.INFO: ==25106== Releasing lock... [2025-02-15 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:41:05 [end_date_ymd] => 2025-02-15 08:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:41:05' and `end` < '2025-02-15 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-15 08:41:20] Production.INFO: count ==300 [2025-02-15 08:41:20] Production.ERROR: pbx CDR StartTime 2025-02-15 05:41:05 - End Time 2025-02-15 08:41:05 [2025-02-15 08:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479922', 'tblTempUsageDetail_20' ) start [2025-02-15 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479922', 'tblTempUsageDetail_20' ) end [2025-02-15 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479922', 'tblTempVendorCDR_20' ) start [2025-02-15 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479922', 'tblTempVendorCDR_20' ) end [2025-02-15 08:41:20] Production.INFO: ProcessCDR(1,14479922,1,1,2) [2025-02-15 08:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479922', 'tblTempUsageDetail_20' ) start [2025-02-15 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479922', 'tblTempUsageDetail_20' ) end [2025-02-15 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:41:23] Production.INFO: ==25186== Releasing lock... [2025-02-15 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:41:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-15 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:42:06 [end_date_ymd] => 2025-02-15 08:42:06 [RateCDR] => 1 ) [2025-02-15 08: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-15 05:42:06' and `end` < '2025-02-15 08: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-15 08:42:19] Production.INFO: count ==316 [2025-02-15 08:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:42:06 - End Time 2025-02-15 08:42:06 [2025-02-15 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479927', 'tblTempUsageDetail_20' ) start [2025-02-15 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479927', 'tblTempUsageDetail_20' ) end [2025-02-15 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479927', 'tblTempVendorCDR_20' ) start [2025-02-15 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479927', 'tblTempVendorCDR_20' ) end [2025-02-15 08:42:19] Production.INFO: ProcessCDR(1,14479927,1,1,2) [2025-02-15 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479927', 'tblTempUsageDetail_20' ) start [2025-02-15 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479927', 'tblTempUsageDetail_20' ) end [2025-02-15 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:42:23] Production.INFO: ==25256== Releasing lock... [2025-02-15 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:42:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-15 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:43:04 [end_date_ymd] => 2025-02-15 08:43:04 [RateCDR] => 1 ) [2025-02-15 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-15 05:43:04' and `end` < '2025-02-15 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-15 08:43:17] Production.INFO: count ==318 [2025-02-15 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:43:04 - End Time 2025-02-15 08:43:04 [2025-02-15 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479932', 'tblTempUsageDetail_20' ) start [2025-02-15 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479932', 'tblTempUsageDetail_20' ) end [2025-02-15 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479932', 'tblTempVendorCDR_20' ) start [2025-02-15 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479932', 'tblTempVendorCDR_20' ) end [2025-02-15 08:43:18] Production.INFO: ProcessCDR(1,14479932,1,1,2) [2025-02-15 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479932', 'tblTempUsageDetail_20' ) start [2025-02-15 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479932', 'tblTempUsageDetail_20' ) end [2025-02-15 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:43:21] Production.INFO: ==25325== Releasing lock... [2025-02-15 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-15 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:44:05 [end_date_ymd] => 2025-02-15 08:44:05 [RateCDR] => 1 ) [2025-02-15 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:44:05' and `end` < '2025-02-15 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:44:18] Production.INFO: count ==325 [2025-02-15 08:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:44:05 - End Time 2025-02-15 08:44:05 [2025-02-15 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479937', 'tblTempUsageDetail_20' ) start [2025-02-15 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479937', 'tblTempUsageDetail_20' ) end [2025-02-15 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479937', 'tblTempVendorCDR_20' ) start [2025-02-15 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479937', 'tblTempVendorCDR_20' ) end [2025-02-15 08:44:19] Production.INFO: ProcessCDR(1,14479937,1,1,2) [2025-02-15 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479937', 'tblTempUsageDetail_20' ) start [2025-02-15 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479937', 'tblTempUsageDetail_20' ) end [2025-02-15 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:44:23] Production.INFO: ==25403== Releasing lock... [2025-02-15 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:44:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-15 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:45:05 [end_date_ymd] => 2025-02-15 08:45:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:45:05' and `end` < '2025-02-15 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-15 08:45:18] Production.INFO: count ==337 [2025-02-15 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:45:05 - End Time 2025-02-15 08:45:05 [2025-02-15 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479942', 'tblTempUsageDetail_20' ) start [2025-02-15 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479942', 'tblTempUsageDetail_20' ) end [2025-02-15 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479942', 'tblTempVendorCDR_20' ) start [2025-02-15 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479942', 'tblTempVendorCDR_20' ) end [2025-02-15 08:45:18] Production.INFO: ProcessCDR(1,14479942,1,1,2) [2025-02-15 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479942', 'tblTempUsageDetail_20' ) start [2025-02-15 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479942', 'tblTempUsageDetail_20' ) end [2025-02-15 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:45:21] Production.INFO: ==25475== Releasing lock... [2025-02-15 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:45:21] Production.INFO: 31 MB #Memory Used# [2025-02-15 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:46:05 [end_date_ymd] => 2025-02-15 08:46:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:46:05' and `end` < '2025-02-15 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-15 08:46:18] Production.INFO: count ==340 [2025-02-15 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:46:05 - End Time 2025-02-15 08:46:05 [2025-02-15 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479947', 'tblTempUsageDetail_20' ) start [2025-02-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479947', 'tblTempUsageDetail_20' ) end [2025-02-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479947', 'tblTempVendorCDR_20' ) start [2025-02-15 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479947', 'tblTempVendorCDR_20' ) end [2025-02-15 08:46:18] Production.INFO: ProcessCDR(1,14479947,1,1,2) [2025-02-15 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479947', 'tblTempUsageDetail_20' ) start [2025-02-15 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479947', 'tblTempUsageDetail_20' ) end [2025-02-15 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:46:21] Production.INFO: ==25553== Releasing lock... [2025-02-15 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:46:21] Production.INFO: 31 MB #Memory Used# [2025-02-15 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:47:06 [end_date_ymd] => 2025-02-15 08:47:06 [RateCDR] => 1 ) [2025-02-15 08: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-15 05:47:06' and `end` < '2025-02-15 08: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-15 08:47:19] Production.INFO: count ==341 [2025-02-15 08:47:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:47:06 - End Time 2025-02-15 08:47:06 [2025-02-15 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479952', 'tblTempUsageDetail_20' ) start [2025-02-15 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479952', 'tblTempUsageDetail_20' ) end [2025-02-15 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479952', 'tblTempVendorCDR_20' ) start [2025-02-15 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479952', 'tblTempVendorCDR_20' ) end [2025-02-15 08:47:19] Production.INFO: ProcessCDR(1,14479952,1,1,2) [2025-02-15 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479952', 'tblTempUsageDetail_20' ) start [2025-02-15 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479952', 'tblTempUsageDetail_20' ) end [2025-02-15 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:47:24] Production.INFO: ==25697== Releasing lock... [2025-02-15 08:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:47:24] Production.INFO: 31 MB #Memory Used# [2025-02-15 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:48:05 [end_date_ymd] => 2025-02-15 08:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:48:05' and `end` < '2025-02-15 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-15 08:48:20] Production.INFO: count ==341 [2025-02-15 08:48:21] Production.ERROR: pbx CDR StartTime 2025-02-15 05:48:05 - End Time 2025-02-15 08:48:05 [2025-02-15 08:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479957', 'tblTempUsageDetail_20' ) start [2025-02-15 08:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479957', 'tblTempUsageDetail_20' ) end [2025-02-15 08:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479957', 'tblTempVendorCDR_20' ) start [2025-02-15 08:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479957', 'tblTempVendorCDR_20' ) end [2025-02-15 08:48:21] Production.INFO: ProcessCDR(1,14479957,1,1,2) [2025-02-15 08:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479957', 'tblTempUsageDetail_20' ) start [2025-02-15 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479957', 'tblTempUsageDetail_20' ) end [2025-02-15 08:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:48:24] Production.INFO: ==25799== Releasing lock... [2025-02-15 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:48:24] Production.INFO: 31 MB #Memory Used# [2025-02-15 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:49:06 [end_date_ymd] => 2025-02-15 08:49:06 [RateCDR] => 1 ) [2025-02-15 08:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:49:06' and `end` < '2025-02-15 08:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:49:19] Production.INFO: count ==344 [2025-02-15 08:49:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:49:06 - End Time 2025-02-15 08:49:06 [2025-02-15 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479962', 'tblTempUsageDetail_20' ) start [2025-02-15 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479962', 'tblTempUsageDetail_20' ) end [2025-02-15 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479962', 'tblTempVendorCDR_20' ) start [2025-02-15 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479962', 'tblTempVendorCDR_20' ) end [2025-02-15 08:49:19] Production.INFO: ProcessCDR(1,14479962,1,1,2) [2025-02-15 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479962', 'tblTempUsageDetail_20' ) start [2025-02-15 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479962', 'tblTempUsageDetail_20' ) end [2025-02-15 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:49:22] Production.INFO: ==25902== Releasing lock... [2025-02-15 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-15 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:50:06 [end_date_ymd] => 2025-02-15 08:50:06 [RateCDR] => 1 ) [2025-02-15 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:50:06' and `end` < '2025-02-15 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:50:19] Production.INFO: count ==348 [2025-02-15 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:50:06 - End Time 2025-02-15 08:50:06 [2025-02-15 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479968', 'tblTempUsageDetail_20' ) start [2025-02-15 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479968', 'tblTempUsageDetail_20' ) end [2025-02-15 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479968', 'tblTempVendorCDR_20' ) start [2025-02-15 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479968', 'tblTempVendorCDR_20' ) end [2025-02-15 08:50:19] Production.INFO: ProcessCDR(1,14479968,1,1,2) [2025-02-15 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479968', 'tblTempUsageDetail_20' ) start [2025-02-15 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479968', 'tblTempUsageDetail_20' ) end [2025-02-15 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:50:22] Production.INFO: ==26004== Releasing lock... [2025-02-15 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:50:22] Production.INFO: 31 MB #Memory Used# [2025-02-15 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:51:06 [end_date_ymd] => 2025-02-15 08:51:06 [RateCDR] => 1 ) [2025-02-15 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-15 05:51:06' and `end` < '2025-02-15 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-15 08:51:19] Production.INFO: count ==356 [2025-02-15 08:51:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:51:06 - End Time 2025-02-15 08:51:06 [2025-02-15 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479973', 'tblTempUsageDetail_20' ) start [2025-02-15 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479973', 'tblTempUsageDetail_20' ) end [2025-02-15 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479973', 'tblTempVendorCDR_20' ) start [2025-02-15 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479973', 'tblTempVendorCDR_20' ) end [2025-02-15 08:51:19] Production.INFO: ProcessCDR(1,14479973,1,1,2) [2025-02-15 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479973', 'tblTempUsageDetail_20' ) start [2025-02-15 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479973', 'tblTempUsageDetail_20' ) end [2025-02-15 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:51:22] Production.INFO: ==26109== Releasing lock... [2025-02-15 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:51:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-15 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:52:05 [end_date_ymd] => 2025-02-15 08:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:52:05' and `end` < '2025-02-15 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-15 08:52:18] Production.INFO: count ==356 [2025-02-15 08:52:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:52:05 - End Time 2025-02-15 08:52:05 [2025-02-15 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479978', 'tblTempUsageDetail_20' ) start [2025-02-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479978', 'tblTempUsageDetail_20' ) end [2025-02-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479978', 'tblTempVendorCDR_20' ) start [2025-02-15 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479978', 'tblTempVendorCDR_20' ) end [2025-02-15 08:52:18] Production.INFO: ProcessCDR(1,14479978,1,1,2) [2025-02-15 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479978', 'tblTempUsageDetail_20' ) start [2025-02-15 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479978', 'tblTempUsageDetail_20' ) end [2025-02-15 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:52:21] Production.INFO: ==26210== Releasing lock... [2025-02-15 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:52:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-15 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:53:05 [end_date_ymd] => 2025-02-15 08:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:53:05' and `end` < '2025-02-15 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-15 08:53:19] Production.INFO: count ==356 [2025-02-15 08:53:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:53:05 - End Time 2025-02-15 08:53:05 [2025-02-15 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479983', 'tblTempUsageDetail_20' ) start [2025-02-15 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479983', 'tblTempUsageDetail_20' ) end [2025-02-15 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479983', 'tblTempVendorCDR_20' ) start [2025-02-15 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479983', 'tblTempVendorCDR_20' ) end [2025-02-15 08:53:19] Production.INFO: ProcessCDR(1,14479983,1,1,2) [2025-02-15 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479983', 'tblTempUsageDetail_20' ) start [2025-02-15 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479983', 'tblTempUsageDetail_20' ) end [2025-02-15 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:53:22] Production.INFO: ==26316== Releasing lock... [2025-02-15 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-15 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:54:05 [end_date_ymd] => 2025-02-15 08:54:05 [RateCDR] => 1 ) [2025-02-15 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:54:05' and `end` < '2025-02-15 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:54:18] Production.INFO: count ==357 [2025-02-15 08:54:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:54:05 - End Time 2025-02-15 08:54:05 [2025-02-15 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479988', 'tblTempUsageDetail_20' ) start [2025-02-15 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479988', 'tblTempUsageDetail_20' ) end [2025-02-15 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479988', 'tblTempVendorCDR_20' ) start [2025-02-15 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479988', 'tblTempVendorCDR_20' ) end [2025-02-15 08:54:18] Production.INFO: ProcessCDR(1,14479988,1,1,2) [2025-02-15 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479988', 'tblTempUsageDetail_20' ) start [2025-02-15 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479988', 'tblTempUsageDetail_20' ) end [2025-02-15 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:54:21] Production.INFO: ==26407== Releasing lock... [2025-02-15 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:54:21] Production.INFO: 31 MB #Memory Used# [2025-02-15 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:55:05 [end_date_ymd] => 2025-02-15 08:55:05 [RateCDR] => 1 ) [2025-02-15 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 05:55:05' and `end` < '2025-02-15 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 08:55:18] Production.INFO: count ==357 [2025-02-15 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:55:05 - End Time 2025-02-15 08:55:05 [2025-02-15 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479993', 'tblTempUsageDetail_20' ) start [2025-02-15 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479993', 'tblTempUsageDetail_20' ) end [2025-02-15 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479993', 'tblTempVendorCDR_20' ) start [2025-02-15 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479993', 'tblTempVendorCDR_20' ) end [2025-02-15 08:55:18] Production.INFO: ProcessCDR(1,14479993,1,1,2) [2025-02-15 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479993', 'tblTempUsageDetail_20' ) start [2025-02-15 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479993', 'tblTempUsageDetail_20' ) end [2025-02-15 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:55:21] Production.INFO: ==26501== Releasing lock... [2025-02-15 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:55:21] Production.INFO: 31 MB #Memory Used# [2025-02-15 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:56:05 [end_date_ymd] => 2025-02-15 08:56:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:56:05' and `end` < '2025-02-15 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-15 08:56:18] Production.INFO: count ==362 [2025-02-15 08:56:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:56:05 - End Time 2025-02-15 08:56:05 [2025-02-15 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479998', 'tblTempUsageDetail_20' ) start [2025-02-15 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14479998', 'tblTempUsageDetail_20' ) end [2025-02-15 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479998', 'tblTempVendorCDR_20' ) start [2025-02-15 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14479998', 'tblTempVendorCDR_20' ) end [2025-02-15 08:56:18] Production.INFO: ProcessCDR(1,14479998,1,1,2) [2025-02-15 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14479998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14479998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14479998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14479998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479998', 'tblTempUsageDetail_20' ) start [2025-02-15 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14479998', 'tblTempUsageDetail_20' ) end [2025-02-15 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:56:21] Production.INFO: ==26596== Releasing lock... [2025-02-15 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:56:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-15 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:57:05 [end_date_ymd] => 2025-02-15 08:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:57:05' and `end` < '2025-02-15 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-15 08:57:18] Production.INFO: count ==362 [2025-02-15 08:57:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:57:05 - End Time 2025-02-15 08:57:05 [2025-02-15 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480003', 'tblTempUsageDetail_20' ) start [2025-02-15 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480003', 'tblTempUsageDetail_20' ) end [2025-02-15 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480003', 'tblTempVendorCDR_20' ) start [2025-02-15 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480003', 'tblTempVendorCDR_20' ) end [2025-02-15 08:57:18] Production.INFO: ProcessCDR(1,14480003,1,1,2) [2025-02-15 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480003', 'tblTempUsageDetail_20' ) start [2025-02-15 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480003', 'tblTempUsageDetail_20' ) end [2025-02-15 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:57:22] Production.INFO: ==26700== Releasing lock... [2025-02-15 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:57:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-15 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:58:04 [end_date_ymd] => 2025-02-15 08:58:04 [RateCDR] => 1 ) [2025-02-15 08: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-15 05:58:04' and `end` < '2025-02-15 08: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-15 08:58:18] Production.INFO: count ==362 [2025-02-15 08:58:18] Production.ERROR: pbx CDR StartTime 2025-02-15 05:58:04 - End Time 2025-02-15 08:58:04 [2025-02-15 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480008', 'tblTempUsageDetail_20' ) start [2025-02-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480008', 'tblTempUsageDetail_20' ) end [2025-02-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480008', 'tblTempVendorCDR_20' ) start [2025-02-15 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480008', 'tblTempVendorCDR_20' ) end [2025-02-15 08:58:18] Production.INFO: ProcessCDR(1,14480008,1,1,2) [2025-02-15 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480008', 'tblTempUsageDetail_20' ) start [2025-02-15 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480008', 'tblTempUsageDetail_20' ) end [2025-02-15 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:58:22] Production.INFO: ==26800== Releasing lock... [2025-02-15 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:58:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-15 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 05:59:05 [end_date_ymd] => 2025-02-15 08:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 05:59:05' and `end` < '2025-02-15 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-15 08:59:19] Production.INFO: count ==362 [2025-02-15 08:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 05:59:05 - End Time 2025-02-15 08:59:05 [2025-02-15 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480013', 'tblTempUsageDetail_20' ) start [2025-02-15 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480013', 'tblTempUsageDetail_20' ) end [2025-02-15 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480013', 'tblTempVendorCDR_20' ) start [2025-02-15 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480013', 'tblTempVendorCDR_20' ) end [2025-02-15 08:59:19] Production.INFO: ProcessCDR(1,14480013,1,1,2) [2025-02-15 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480013', 'tblTempUsageDetail_20' ) start [2025-02-15 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480013', 'tblTempUsageDetail_20' ) end [2025-02-15 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 08:59:23] Production.INFO: ==26904== Releasing lock... [2025-02-15 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 08:59:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-15 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:00:06 [end_date_ymd] => 2025-02-15 09:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 06:00:06' and `end` < '2025-02-15 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-15 09:00:19] Production.INFO: count ==368 [2025-02-15 09:00:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:00:06 - End Time 2025-02-15 09:00:06 [2025-02-15 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480018', 'tblTempUsageDetail_20' ) start [2025-02-15 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480018', 'tblTempUsageDetail_20' ) end [2025-02-15 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480018', 'tblTempVendorCDR_20' ) start [2025-02-15 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480018', 'tblTempVendorCDR_20' ) end [2025-02-15 09:00:19] Production.INFO: ProcessCDR(1,14480018,1,1,2) [2025-02-15 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480018', 'tblTempUsageDetail_20' ) start [2025-02-15 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480018', 'tblTempUsageDetail_20' ) end [2025-02-15 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:00:23] Production.INFO: ==27005== Releasing lock... [2025-02-15 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:00:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-15 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:01:05 [end_date_ymd] => 2025-02-15 09:01:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:01:05' and `end` < '2025-02-15 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-15 09:01:18] Production.INFO: count ==368 [2025-02-15 09:01:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:01:05 - End Time 2025-02-15 09:01:05 [2025-02-15 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480024', 'tblTempUsageDetail_20' ) start [2025-02-15 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480024', 'tblTempUsageDetail_20' ) end [2025-02-15 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480024', 'tblTempVendorCDR_20' ) start [2025-02-15 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480024', 'tblTempVendorCDR_20' ) end [2025-02-15 09:01:18] Production.INFO: ProcessCDR(1,14480024,1,1,2) [2025-02-15 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480024', 'tblTempUsageDetail_20' ) start [2025-02-15 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480024', 'tblTempUsageDetail_20' ) end [2025-02-15 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:01:21] Production.INFO: ==27094== Releasing lock... [2025-02-15 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:01:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-15 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:02:06 [end_date_ymd] => 2025-02-15 09:02:06 [RateCDR] => 1 ) [2025-02-15 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-15 06:02:06' and `end` < '2025-02-15 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-15 09:02:19] Production.INFO: count ==368 [2025-02-15 09:02:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:02:06 - End Time 2025-02-15 09:02:06 [2025-02-15 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480029', 'tblTempUsageDetail_20' ) start [2025-02-15 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480029', 'tblTempUsageDetail_20' ) end [2025-02-15 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480029', 'tblTempVendorCDR_20' ) start [2025-02-15 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480029', 'tblTempVendorCDR_20' ) end [2025-02-15 09:02:19] Production.INFO: ProcessCDR(1,14480029,1,1,2) [2025-02-15 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480029', 'tblTempUsageDetail_20' ) start [2025-02-15 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480029', 'tblTempUsageDetail_20' ) end [2025-02-15 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:02:22] Production.INFO: ==27186== Releasing lock... [2025-02-15 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-15 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:03:05 [end_date_ymd] => 2025-02-15 09:03:05 [RateCDR] => 1 ) [2025-02-15 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:03:05' and `end` < '2025-02-15 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:03:18] Production.INFO: count ==377 [2025-02-15 09:03:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:03:05 - End Time 2025-02-15 09:03:05 [2025-02-15 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480034', 'tblTempUsageDetail_20' ) start [2025-02-15 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480034', 'tblTempUsageDetail_20' ) end [2025-02-15 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480034', 'tblTempVendorCDR_20' ) start [2025-02-15 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480034', 'tblTempVendorCDR_20' ) end [2025-02-15 09:03:18] Production.INFO: ProcessCDR(1,14480034,1,1,2) [2025-02-15 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480034', 'tblTempUsageDetail_20' ) start [2025-02-15 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480034', 'tblTempUsageDetail_20' ) end [2025-02-15 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:03:21] Production.INFO: ==27273== Releasing lock... [2025-02-15 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-15 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:04:05 [end_date_ymd] => 2025-02-15 09:04:05 [RateCDR] => 1 ) [2025-02-15 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:04:05' and `end` < '2025-02-15 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:04:19] Production.INFO: count ==389 [2025-02-15 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:04:05 - End Time 2025-02-15 09:04:05 [2025-02-15 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480039', 'tblTempUsageDetail_20' ) start [2025-02-15 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480039', 'tblTempUsageDetail_20' ) end [2025-02-15 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480039', 'tblTempVendorCDR_20' ) start [2025-02-15 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480039', 'tblTempVendorCDR_20' ) end [2025-02-15 09:04:19] Production.INFO: ProcessCDR(1,14480039,1,1,2) [2025-02-15 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480039', 'tblTempUsageDetail_20' ) start [2025-02-15 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480039', 'tblTempUsageDetail_20' ) end [2025-02-15 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:04:24] Production.INFO: ==27345== Releasing lock... [2025-02-15 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:04:24] Production.INFO: 31.5 MB #Memory Used# [2025-02-15 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:05:05 [end_date_ymd] => 2025-02-15 09:05:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:05:05' and `end` < '2025-02-15 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-15 09:05:18] Production.INFO: count ==410 [2025-02-15 09:05:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:05:05 - End Time 2025-02-15 09:05:05 [2025-02-15 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480044', 'tblTempUsageDetail_20' ) start [2025-02-15 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480044', 'tblTempUsageDetail_20' ) end [2025-02-15 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480044', 'tblTempVendorCDR_20' ) start [2025-02-15 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480044', 'tblTempVendorCDR_20' ) end [2025-02-15 09:05:18] Production.INFO: ProcessCDR(1,14480044,1,1,2) [2025-02-15 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480044', 'tblTempUsageDetail_20' ) start [2025-02-15 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480044', 'tblTempUsageDetail_20' ) end [2025-02-15 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:05:21] Production.INFO: ==27420== Releasing lock... [2025-02-15 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:05:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-15 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:06:06 [end_date_ymd] => 2025-02-15 09:06:06 [RateCDR] => 1 ) [2025-02-15 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-15 06:06:06' and `end` < '2025-02-15 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-15 09:06:19] Production.INFO: count ==412 [2025-02-15 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:06:06 - End Time 2025-02-15 09:06:06 [2025-02-15 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480049', 'tblTempUsageDetail_20' ) start [2025-02-15 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480049', 'tblTempUsageDetail_20' ) end [2025-02-15 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480049', 'tblTempVendorCDR_20' ) start [2025-02-15 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480049', 'tblTempVendorCDR_20' ) end [2025-02-15 09:06:19] Production.INFO: ProcessCDR(1,14480049,1,1,2) [2025-02-15 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480049', 'tblTempUsageDetail_20' ) start [2025-02-15 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480049', 'tblTempUsageDetail_20' ) end [2025-02-15 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:06:24] Production.INFO: ==27492== Releasing lock... [2025-02-15 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:06:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-15 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:07:05 [end_date_ymd] => 2025-02-15 09:07:05 [RateCDR] => 1 ) [2025-02-15 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:07:05' and `end` < '2025-02-15 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:07:18] Production.INFO: count ==412 [2025-02-15 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:07:05 - End Time 2025-02-15 09:07:05 [2025-02-15 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480054', 'tblTempUsageDetail_20' ) start [2025-02-15 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480054', 'tblTempUsageDetail_20' ) end [2025-02-15 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480054', 'tblTempVendorCDR_20' ) start [2025-02-15 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480054', 'tblTempVendorCDR_20' ) end [2025-02-15 09:07:18] Production.INFO: ProcessCDR(1,14480054,1,1,2) [2025-02-15 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480054', 'tblTempUsageDetail_20' ) start [2025-02-15 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480054', 'tblTempUsageDetail_20' ) end [2025-02-15 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:07:21] Production.INFO: ==27566== Releasing lock... [2025-02-15 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:07:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-15 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:08:05 [end_date_ymd] => 2025-02-15 09:08:05 [RateCDR] => 1 ) [2025-02-15 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:08:05' and `end` < '2025-02-15 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:08:18] Production.INFO: count ==419 [2025-02-15 09:08:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:08:05 - End Time 2025-02-15 09:08:05 [2025-02-15 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480059', 'tblTempUsageDetail_20' ) start [2025-02-15 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480059', 'tblTempUsageDetail_20' ) end [2025-02-15 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480059', 'tblTempVendorCDR_20' ) start [2025-02-15 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480059', 'tblTempVendorCDR_20' ) end [2025-02-15 09:08:18] Production.INFO: ProcessCDR(1,14480059,1,1,2) [2025-02-15 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480059', 'tblTempUsageDetail_20' ) start [2025-02-15 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480059', 'tblTempUsageDetail_20' ) end [2025-02-15 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:08:23] Production.INFO: ==27640== Releasing lock... [2025-02-15 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:08:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-15 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:09:05 [end_date_ymd] => 2025-02-15 09:09:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:09:05' and `end` < '2025-02-15 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-15 09:09:19] Production.INFO: count ==420 [2025-02-15 09:09:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:09:05 - End Time 2025-02-15 09:09:05 [2025-02-15 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480064', 'tblTempUsageDetail_20' ) start [2025-02-15 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480064', 'tblTempUsageDetail_20' ) end [2025-02-15 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480064', 'tblTempVendorCDR_20' ) start [2025-02-15 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480064', 'tblTempVendorCDR_20' ) end [2025-02-15 09:09:19] Production.INFO: ProcessCDR(1,14480064,1,1,2) [2025-02-15 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480064', 'tblTempUsageDetail_20' ) start [2025-02-15 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480064', 'tblTempUsageDetail_20' ) end [2025-02-15 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:09:24] Production.INFO: ==27710== Releasing lock... [2025-02-15 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:09:24] Production.INFO: 32 MB #Memory Used# [2025-02-15 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:10:06 [end_date_ymd] => 2025-02-15 09:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 06:10:06' and `end` < '2025-02-15 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-15 09:10:19] Production.INFO: count ==431 [2025-02-15 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:10:06 - End Time 2025-02-15 09:10:06 [2025-02-15 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480070', 'tblTempUsageDetail_20' ) start [2025-02-15 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480070', 'tblTempUsageDetail_20' ) end [2025-02-15 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480070', 'tblTempVendorCDR_20' ) start [2025-02-15 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480070', 'tblTempVendorCDR_20' ) end [2025-02-15 09:10:19] Production.INFO: ProcessCDR(1,14480070,1,1,2) [2025-02-15 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480070', 'tblTempUsageDetail_20' ) start [2025-02-15 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480070', 'tblTempUsageDetail_20' ) end [2025-02-15 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:10:25] Production.INFO: ==27783== Releasing lock... [2025-02-15 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:10:25] Production.INFO: 31.5 MB #Memory Used# [2025-02-15 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:11:05 [end_date_ymd] => 2025-02-15 09:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:11:05' and `end` < '2025-02-15 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-15 09:11:18] Production.INFO: count ==447 [2025-02-15 09:11:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:11:05 - End Time 2025-02-15 09:11:05 [2025-02-15 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480075', 'tblTempUsageDetail_20' ) start [2025-02-15 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480075', 'tblTempUsageDetail_20' ) end [2025-02-15 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480075', 'tblTempVendorCDR_20' ) start [2025-02-15 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480075', 'tblTempVendorCDR_20' ) end [2025-02-15 09:11:18] Production.INFO: ProcessCDR(1,14480075,1,1,2) [2025-02-15 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480075', 'tblTempUsageDetail_20' ) start [2025-02-15 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480075', 'tblTempUsageDetail_20' ) end [2025-02-15 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:11:21] Production.INFO: ==27855== Releasing lock... [2025-02-15 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-15 09:12:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:12:07 [end_date_ymd] => 2025-02-15 09:12:07 [RateCDR] => 1 ) [2025-02-15 09:12: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-15 06:12:07' and `end` < '2025-02-15 09:12: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-15 09:12:20] Production.INFO: count ==461 [2025-02-15 09:12:20] Production.ERROR: pbx CDR StartTime 2025-02-15 06:12:07 - End Time 2025-02-15 09:12:07 [2025-02-15 09:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480080', 'tblTempUsageDetail_20' ) start [2025-02-15 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480080', 'tblTempUsageDetail_20' ) end [2025-02-15 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480080', 'tblTempVendorCDR_20' ) start [2025-02-15 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480080', 'tblTempVendorCDR_20' ) end [2025-02-15 09:12:20] Production.INFO: ProcessCDR(1,14480080,1,1,2) [2025-02-15 09:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480080', 'tblTempUsageDetail_20' ) start [2025-02-15 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480080', 'tblTempUsageDetail_20' ) end [2025-02-15 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:12:23] Production.INFO: ==27926== Releasing lock... [2025-02-15 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:12:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:13:04 [end_date_ymd] => 2025-02-15 09:13:04 [RateCDR] => 1 ) [2025-02-15 09: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-15 06:13:04' and `end` < '2025-02-15 09: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-15 09:13:18] Production.INFO: count ==461 [2025-02-15 09:13:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:13:04 - End Time 2025-02-15 09:13:04 [2025-02-15 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480085', 'tblTempUsageDetail_20' ) start [2025-02-15 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480085', 'tblTempUsageDetail_20' ) end [2025-02-15 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480085', 'tblTempVendorCDR_20' ) start [2025-02-15 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480085', 'tblTempVendorCDR_20' ) end [2025-02-15 09:13:18] Production.INFO: ProcessCDR(1,14480085,1,1,2) [2025-02-15 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480085', 'tblTempUsageDetail_20' ) start [2025-02-15 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480085', 'tblTempUsageDetail_20' ) end [2025-02-15 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:13:21] Production.INFO: ==27996== Releasing lock... [2025-02-15 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:13:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-15 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:14:05 [end_date_ymd] => 2025-02-15 09:14:05 [RateCDR] => 1 ) [2025-02-15 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:14:05' and `end` < '2025-02-15 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:14:19] Production.INFO: count ==479 [2025-02-15 09:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:14:05 - End Time 2025-02-15 09:14:05 [2025-02-15 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480090', 'tblTempUsageDetail_20' ) start [2025-02-15 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480090', 'tblTempUsageDetail_20' ) end [2025-02-15 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480090', 'tblTempVendorCDR_20' ) start [2025-02-15 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480090', 'tblTempVendorCDR_20' ) end [2025-02-15 09:14:19] Production.INFO: ProcessCDR(1,14480090,1,1,2) [2025-02-15 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480090', 'tblTempUsageDetail_20' ) start [2025-02-15 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480090', 'tblTempUsageDetail_20' ) end [2025-02-15 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:14:22] Production.INFO: ==28068== Releasing lock... [2025-02-15 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:14:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-15 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:15:05 [end_date_ymd] => 2025-02-15 09:15:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:15:05' and `end` < '2025-02-15 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-15 09:15:18] Production.INFO: count ==542 [2025-02-15 09:15:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:15:05 - End Time 2025-02-15 09:15:05 [2025-02-15 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480095', 'tblTempUsageDetail_20' ) start [2025-02-15 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480095', 'tblTempUsageDetail_20' ) end [2025-02-15 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480095', 'tblTempVendorCDR_20' ) start [2025-02-15 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480095', 'tblTempVendorCDR_20' ) end [2025-02-15 09:15:18] Production.INFO: ProcessCDR(1,14480095,1,1,2) [2025-02-15 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480095', 'tblTempUsageDetail_20' ) start [2025-02-15 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480095', 'tblTempUsageDetail_20' ) end [2025-02-15 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:15:23] Production.INFO: ==28139== Releasing lock... [2025-02-15 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:15:23] Production.INFO: 33 MB #Memory Used# [2025-02-15 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:16:06 [end_date_ymd] => 2025-02-15 09:16:06 [RateCDR] => 1 ) [2025-02-15 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-15 06:16:06' and `end` < '2025-02-15 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-15 09:16:19] Production.INFO: count ==598 [2025-02-15 09:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:16:06 - End Time 2025-02-15 09:16:06 [2025-02-15 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480100', 'tblTempUsageDetail_20' ) start [2025-02-15 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480100', 'tblTempUsageDetail_20' ) end [2025-02-15 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480100', 'tblTempVendorCDR_20' ) start [2025-02-15 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480100', 'tblTempVendorCDR_20' ) end [2025-02-15 09:16:19] Production.INFO: ProcessCDR(1,14480100,1,1,2) [2025-02-15 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480100', 'tblTempUsageDetail_20' ) start [2025-02-15 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480100', 'tblTempUsageDetail_20' ) end [2025-02-15 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:16:22] Production.INFO: ==28209== Releasing lock... [2025-02-15 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-15 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:17:05 [end_date_ymd] => 2025-02-15 09:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:17:05' and `end` < '2025-02-15 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-15 09:17:18] Production.INFO: count ==602 [2025-02-15 09:17:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:17:05 - End Time 2025-02-15 09:17:05 [2025-02-15 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480105', 'tblTempUsageDetail_20' ) start [2025-02-15 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480105', 'tblTempUsageDetail_20' ) end [2025-02-15 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480105', 'tblTempVendorCDR_20' ) start [2025-02-15 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480105', 'tblTempVendorCDR_20' ) end [2025-02-15 09:17:19] Production.INFO: ProcessCDR(1,14480105,1,1,2) [2025-02-15 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480105', 'tblTempUsageDetail_20' ) start [2025-02-15 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480105', 'tblTempUsageDetail_20' ) end [2025-02-15 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:17:22] Production.INFO: ==28278== Releasing lock... [2025-02-15 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:17:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:18:06 [end_date_ymd] => 2025-02-15 09:18:06 [RateCDR] => 1 ) [2025-02-15 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-15 06:18:06' and `end` < '2025-02-15 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-15 09:18:20] Production.INFO: count ==612 [2025-02-15 09:18:20] Production.ERROR: pbx CDR StartTime 2025-02-15 06:18:06 - End Time 2025-02-15 09:18:06 [2025-02-15 09:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480110', 'tblTempUsageDetail_20' ) start [2025-02-15 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480110', 'tblTempUsageDetail_20' ) end [2025-02-15 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480110', 'tblTempVendorCDR_20' ) start [2025-02-15 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480110', 'tblTempVendorCDR_20' ) end [2025-02-15 09:18:20] Production.INFO: ProcessCDR(1,14480110,1,1,2) [2025-02-15 09:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480110', 'tblTempUsageDetail_20' ) start [2025-02-15 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480110', 'tblTempUsageDetail_20' ) end [2025-02-15 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:18:23] Production.INFO: ==28391== Releasing lock... [2025-02-15 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:18:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:19:05 [end_date_ymd] => 2025-02-15 09:19:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:19:05' and `end` < '2025-02-15 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-15 09:19:18] Production.INFO: count ==637 [2025-02-15 09:19:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:19:05 - End Time 2025-02-15 09:19:05 [2025-02-15 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480115', 'tblTempUsageDetail_20' ) start [2025-02-15 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480115', 'tblTempUsageDetail_20' ) end [2025-02-15 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480115', 'tblTempVendorCDR_20' ) start [2025-02-15 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480115', 'tblTempVendorCDR_20' ) end [2025-02-15 09:19:19] Production.INFO: ProcessCDR(1,14480115,1,1,2) [2025-02-15 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480115', 'tblTempUsageDetail_20' ) start [2025-02-15 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480115', 'tblTempUsageDetail_20' ) end [2025-02-15 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:19:22] Production.INFO: ==28470== Releasing lock... [2025-02-15 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:19:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-15 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:20:06 [end_date_ymd] => 2025-02-15 09:20:06 [RateCDR] => 1 ) [2025-02-15 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:20:06' and `end` < '2025-02-15 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:20:19] Production.INFO: count ==704 [2025-02-15 09:20:20] Production.ERROR: pbx CDR StartTime 2025-02-15 06:20:06 - End Time 2025-02-15 09:20:06 [2025-02-15 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480120', 'tblTempUsageDetail_20' ) start [2025-02-15 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480120', 'tblTempUsageDetail_20' ) end [2025-02-15 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480120', 'tblTempVendorCDR_20' ) start [2025-02-15 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480120', 'tblTempVendorCDR_20' ) end [2025-02-15 09:20:20] Production.INFO: ProcessCDR(1,14480120,1,1,2) [2025-02-15 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480120', 'tblTempUsageDetail_20' ) start [2025-02-15 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480120', 'tblTempUsageDetail_20' ) end [2025-02-15 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:20:25] Production.INFO: ==28549== Releasing lock... [2025-02-15 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:20:25] Production.INFO: 33.75 MB #Memory Used# [2025-02-15 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:21:05 [end_date_ymd] => 2025-02-15 09:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:21:05' and `end` < '2025-02-15 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-15 09:21:18] Production.INFO: count ==823 [2025-02-15 09:21:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:21:05 - End Time 2025-02-15 09:21:05 [2025-02-15 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480126', 'tblTempUsageDetail_20' ) start [2025-02-15 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480126', 'tblTempUsageDetail_20' ) end [2025-02-15 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480126', 'tblTempVendorCDR_20' ) start [2025-02-15 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480126', 'tblTempVendorCDR_20' ) end [2025-02-15 09:21:19] Production.INFO: ProcessCDR(1,14480126,1,1,2) [2025-02-15 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480126', 'tblTempUsageDetail_20' ) start [2025-02-15 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480126', 'tblTempUsageDetail_20' ) end [2025-02-15 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:21:22] Production.INFO: ==28622== Releasing lock... [2025-02-15 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:21:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-15 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:22:05 [end_date_ymd] => 2025-02-15 09:22:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:22:05' and `end` < '2025-02-15 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-15 09:22:19] Production.INFO: count ==824 [2025-02-15 09:22:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:22:05 - End Time 2025-02-15 09:22:05 [2025-02-15 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480131', 'tblTempUsageDetail_20' ) start [2025-02-15 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480131', 'tblTempUsageDetail_20' ) end [2025-02-15 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480131', 'tblTempVendorCDR_20' ) start [2025-02-15 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480131', 'tblTempVendorCDR_20' ) end [2025-02-15 09:22:19] Production.INFO: ProcessCDR(1,14480131,1,1,2) [2025-02-15 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480131', 'tblTempUsageDetail_20' ) start [2025-02-15 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480131', 'tblTempUsageDetail_20' ) end [2025-02-15 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:22:24] Production.INFO: ==28692== Releasing lock... [2025-02-15 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:22:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-15 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:23:05 [end_date_ymd] => 2025-02-15 09:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:23:05' and `end` < '2025-02-15 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-15 09:23:18] Production.INFO: count ==864 [2025-02-15 09:23:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:23:05 - End Time 2025-02-15 09:23:05 [2025-02-15 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480136', 'tblTempUsageDetail_20' ) start [2025-02-15 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480136', 'tblTempUsageDetail_20' ) end [2025-02-15 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480136', 'tblTempVendorCDR_20' ) start [2025-02-15 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480136', 'tblTempVendorCDR_20' ) end [2025-02-15 09:23:18] Production.INFO: ProcessCDR(1,14480136,1,1,2) [2025-02-15 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480136', 'tblTempUsageDetail_20' ) start [2025-02-15 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480136', 'tblTempUsageDetail_20' ) end [2025-02-15 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:23:22] Production.INFO: ==28762== Releasing lock... [2025-02-15 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:23:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-15 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:24:05 [end_date_ymd] => 2025-02-15 09:24:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:24:05' and `end` < '2025-02-15 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-15 09:24:19] Production.INFO: count ==921 [2025-02-15 09:24:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:24:05 - End Time 2025-02-15 09:24:05 [2025-02-15 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480141', 'tblTempUsageDetail_20' ) start [2025-02-15 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480141', 'tblTempUsageDetail_20' ) end [2025-02-15 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480141', 'tblTempVendorCDR_20' ) start [2025-02-15 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480141', 'tblTempVendorCDR_20' ) end [2025-02-15 09:24:19] Production.INFO: ProcessCDR(1,14480141,1,1,2) [2025-02-15 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480141', 'tblTempUsageDetail_20' ) start [2025-02-15 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480141', 'tblTempUsageDetail_20' ) end [2025-02-15 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:24:22] Production.INFO: ==28835== Releasing lock... [2025-02-15 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:24:22] Production.INFO: 35 MB #Memory Used# [2025-02-15 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:25:05 [end_date_ymd] => 2025-02-15 09:25:05 [RateCDR] => 1 ) [2025-02-15 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:25:05' and `end` < '2025-02-15 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:25:18] Production.INFO: count ==923 [2025-02-15 09:25:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:25:05 - End Time 2025-02-15 09:25:05 [2025-02-15 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480146', 'tblTempUsageDetail_20' ) start [2025-02-15 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480146', 'tblTempUsageDetail_20' ) end [2025-02-15 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480146', 'tblTempVendorCDR_20' ) start [2025-02-15 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480146', 'tblTempVendorCDR_20' ) end [2025-02-15 09:25:18] Production.INFO: ProcessCDR(1,14480146,1,1,2) [2025-02-15 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480146', 'tblTempUsageDetail_20' ) start [2025-02-15 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480146', 'tblTempUsageDetail_20' ) end [2025-02-15 09:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:25:22] Production.INFO: ==28905== Releasing lock... [2025-02-15 09:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:25:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-15 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:26:05 [end_date_ymd] => 2025-02-15 09:26:05 [RateCDR] => 1 ) [2025-02-15 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:26:05' and `end` < '2025-02-15 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:26:19] Production.INFO: count ==918 [2025-02-15 09:26:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:26:05 - End Time 2025-02-15 09:26:05 [2025-02-15 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480151', 'tblTempUsageDetail_20' ) start [2025-02-15 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480151', 'tblTempUsageDetail_20' ) end [2025-02-15 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480151', 'tblTempVendorCDR_20' ) start [2025-02-15 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480151', 'tblTempVendorCDR_20' ) end [2025-02-15 09:26:19] Production.INFO: ProcessCDR(1,14480151,1,1,2) [2025-02-15 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480151', 'tblTempUsageDetail_20' ) start [2025-02-15 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480151', 'tblTempUsageDetail_20' ) end [2025-02-15 09:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:26:22] Production.INFO: ==28975== Releasing lock... [2025-02-15 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:26:22] Production.INFO: 35 MB #Memory Used# [2025-02-15 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:27:05 [end_date_ymd] => 2025-02-15 09:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:27:05' and `end` < '2025-02-15 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-15 09:27:19] Production.INFO: count ==919 [2025-02-15 09:27:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:27:05 - End Time 2025-02-15 09:27:05 [2025-02-15 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480156', 'tblTempUsageDetail_20' ) start [2025-02-15 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480156', 'tblTempUsageDetail_20' ) end [2025-02-15 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480156', 'tblTempVendorCDR_20' ) start [2025-02-15 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480156', 'tblTempVendorCDR_20' ) end [2025-02-15 09:27:19] Production.INFO: ProcessCDR(1,14480156,1,1,2) [2025-02-15 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480156', 'tblTempUsageDetail_20' ) start [2025-02-15 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480156', 'tblTempUsageDetail_20' ) end [2025-02-15 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:27:24] Production.INFO: ==29045== Releasing lock... [2025-02-15 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:27:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-15 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:28:05 [end_date_ymd] => 2025-02-15 09:28:05 [RateCDR] => 1 ) [2025-02-15 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:28:05' and `end` < '2025-02-15 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:28:18] Production.INFO: count ==920 [2025-02-15 09:28:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:28:05 - End Time 2025-02-15 09:28:05 [2025-02-15 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480161', 'tblTempUsageDetail_20' ) start [2025-02-15 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480161', 'tblTempUsageDetail_20' ) end [2025-02-15 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480161', 'tblTempVendorCDR_20' ) start [2025-02-15 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480161', 'tblTempVendorCDR_20' ) end [2025-02-15 09:28:19] Production.INFO: ProcessCDR(1,14480161,1,1,2) [2025-02-15 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480161', 'tblTempUsageDetail_20' ) start [2025-02-15 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480161', 'tblTempUsageDetail_20' ) end [2025-02-15 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:28:24] Production.INFO: ==29114== Releasing lock... [2025-02-15 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:28:24] Production.INFO: 35 MB #Memory Used# [2025-02-15 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:29:06 [end_date_ymd] => 2025-02-15 09:29:06 [RateCDR] => 1 ) [2025-02-15 09:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:29:06' and `end` < '2025-02-15 09:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:29:19] Production.INFO: count ==920 [2025-02-15 09:29:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:29:06 - End Time 2025-02-15 09:29:06 [2025-02-15 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480166', 'tblTempUsageDetail_20' ) start [2025-02-15 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480166', 'tblTempUsageDetail_20' ) end [2025-02-15 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480166', 'tblTempVendorCDR_20' ) start [2025-02-15 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480166', 'tblTempVendorCDR_20' ) end [2025-02-15 09:29:19] Production.INFO: ProcessCDR(1,14480166,1,1,2) [2025-02-15 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480166', 'tblTempUsageDetail_20' ) start [2025-02-15 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480166', 'tblTempUsageDetail_20' ) end [2025-02-15 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:29:22] Production.INFO: ==29184== Releasing lock... [2025-02-15 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:29:22] Production.INFO: 35 MB #Memory Used# [2025-02-15 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:30:06 [end_date_ymd] => 2025-02-15 09:30:06 [RateCDR] => 1 ) [2025-02-15 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-15 06:30:06' and `end` < '2025-02-15 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-15 09:30:19] Production.INFO: count ==925 [2025-02-15 09:30:20] Production.ERROR: pbx CDR StartTime 2025-02-15 06:30:06 - End Time 2025-02-15 09:30:06 [2025-02-15 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480172', 'tblTempUsageDetail_20' ) start [2025-02-15 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480172', 'tblTempUsageDetail_20' ) end [2025-02-15 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480172', 'tblTempVendorCDR_20' ) start [2025-02-15 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480172', 'tblTempVendorCDR_20' ) end [2025-02-15 09:30:20] Production.INFO: ProcessCDR(1,14480172,1,1,2) [2025-02-15 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480172', 'tblTempUsageDetail_20' ) start [2025-02-15 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480172', 'tblTempUsageDetail_20' ) end [2025-02-15 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:30:23] Production.INFO: ==29259== Releasing lock... [2025-02-15 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:30:23] Production.INFO: 35 MB #Memory Used# [2025-02-15 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:31:05 [end_date_ymd] => 2025-02-15 09:31:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:31:05' and `end` < '2025-02-15 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-15 09:31:18] Production.INFO: count ==937 [2025-02-15 09:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:31:05 - End Time 2025-02-15 09:31:05 [2025-02-15 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480177', 'tblTempUsageDetail_20' ) start [2025-02-15 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480177', 'tblTempUsageDetail_20' ) end [2025-02-15 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480177', 'tblTempVendorCDR_20' ) start [2025-02-15 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480177', 'tblTempVendorCDR_20' ) end [2025-02-15 09:31:19] Production.INFO: ProcessCDR(1,14480177,1,1,2) [2025-02-15 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480177', 'tblTempUsageDetail_20' ) start [2025-02-15 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480177', 'tblTempUsageDetail_20' ) end [2025-02-15 09:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:31:22] Production.INFO: ==29337== Releasing lock... [2025-02-15 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:31:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:32:05 [end_date_ymd] => 2025-02-15 09:32:05 [RateCDR] => 1 ) [2025-02-15 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:32:05' and `end` < '2025-02-15 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:32:18] Production.INFO: count ==937 [2025-02-15 09:32:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:32:05 - End Time 2025-02-15 09:32:05 [2025-02-15 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480182', 'tblTempUsageDetail_20' ) start [2025-02-15 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480182', 'tblTempUsageDetail_20' ) end [2025-02-15 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480182', 'tblTempVendorCDR_20' ) start [2025-02-15 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480182', 'tblTempVendorCDR_20' ) end [2025-02-15 09:32:19] Production.INFO: ProcessCDR(1,14480182,1,1,2) [2025-02-15 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480182', 'tblTempUsageDetail_20' ) start [2025-02-15 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480182', 'tblTempUsageDetail_20' ) end [2025-02-15 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:32:22] Production.INFO: ==29407== Releasing lock... [2025-02-15 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:32:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:33:05 [end_date_ymd] => 2025-02-15 09:33:05 [RateCDR] => 1 ) [2025-02-15 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:33:05' and `end` < '2025-02-15 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:33:18] Production.INFO: count ==937 [2025-02-15 09:33:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:33:05 - End Time 2025-02-15 09:33:05 [2025-02-15 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480187', 'tblTempUsageDetail_20' ) start [2025-02-15 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480187', 'tblTempUsageDetail_20' ) end [2025-02-15 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480187', 'tblTempVendorCDR_20' ) start [2025-02-15 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480187', 'tblTempVendorCDR_20' ) end [2025-02-15 09:33:18] Production.INFO: ProcessCDR(1,14480187,1,1,2) [2025-02-15 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480187', 'tblTempUsageDetail_20' ) start [2025-02-15 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480187', 'tblTempUsageDetail_20' ) end [2025-02-15 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:33:22] Production.INFO: ==29519== Releasing lock... [2025-02-15 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:33:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:34:05 [end_date_ymd] => 2025-02-15 09:34:05 [RateCDR] => 1 ) [2025-02-15 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:34:05' and `end` < '2025-02-15 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:34:18] Production.INFO: count ==937 [2025-02-15 09:34:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:34:05 - End Time 2025-02-15 09:34:05 [2025-02-15 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480192', 'tblTempUsageDetail_20' ) start [2025-02-15 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480192', 'tblTempUsageDetail_20' ) end [2025-02-15 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480192', 'tblTempVendorCDR_20' ) start [2025-02-15 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480192', 'tblTempVendorCDR_20' ) end [2025-02-15 09:34:19] Production.INFO: ProcessCDR(1,14480192,1,1,2) [2025-02-15 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480192', 'tblTempUsageDetail_20' ) start [2025-02-15 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480192', 'tblTempUsageDetail_20' ) end [2025-02-15 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:34:22] Production.INFO: ==29593== Releasing lock... [2025-02-15 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:34:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:35:05 [end_date_ymd] => 2025-02-15 09:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:35:05' and `end` < '2025-02-15 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-15 09:35:18] Production.INFO: count ==945 [2025-02-15 09:35:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:35:05 - End Time 2025-02-15 09:35:05 [2025-02-15 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480197', 'tblTempUsageDetail_20' ) start [2025-02-15 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480197', 'tblTempUsageDetail_20' ) end [2025-02-15 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480197', 'tblTempVendorCDR_20' ) start [2025-02-15 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480197', 'tblTempVendorCDR_20' ) end [2025-02-15 09:35:19] Production.INFO: ProcessCDR(1,14480197,1,1,2) [2025-02-15 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480197', 'tblTempUsageDetail_20' ) start [2025-02-15 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480197', 'tblTempUsageDetail_20' ) end [2025-02-15 09:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:35:22] Production.INFO: ==29663== Releasing lock... [2025-02-15 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:35:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:36:05 [end_date_ymd] => 2025-02-15 09:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:36:05' and `end` < '2025-02-15 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-15 09:36:18] Production.INFO: count ==953 [2025-02-15 09:36:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:36:05 - End Time 2025-02-15 09:36:05 [2025-02-15 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480202', 'tblTempUsageDetail_20' ) start [2025-02-15 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480202', 'tblTempUsageDetail_20' ) end [2025-02-15 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480202', 'tblTempVendorCDR_20' ) start [2025-02-15 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480202', 'tblTempVendorCDR_20' ) end [2025-02-15 09:36:19] Production.INFO: ProcessCDR(1,14480202,1,1,2) [2025-02-15 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480202', 'tblTempUsageDetail_20' ) start [2025-02-15 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480202', 'tblTempUsageDetail_20' ) end [2025-02-15 09:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:36:22] Production.INFO: ==29737== Releasing lock... [2025-02-15 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:36:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:37:05 [end_date_ymd] => 2025-02-15 09:37:05 [RateCDR] => 1 ) [2025-02-15 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:37:05' and `end` < '2025-02-15 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:37:18] Production.INFO: count ==950 [2025-02-15 09:37:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:37:05 - End Time 2025-02-15 09:37:05 [2025-02-15 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480207', 'tblTempUsageDetail_20' ) start [2025-02-15 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480207', 'tblTempUsageDetail_20' ) end [2025-02-15 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480207', 'tblTempVendorCDR_20' ) start [2025-02-15 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480207', 'tblTempVendorCDR_20' ) end [2025-02-15 09:37:18] Production.INFO: ProcessCDR(1,14480207,1,1,2) [2025-02-15 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480207', 'tblTempUsageDetail_20' ) start [2025-02-15 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480207', 'tblTempUsageDetail_20' ) end [2025-02-15 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:37:23] Production.INFO: ==29808== Releasing lock... [2025-02-15 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:37:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:38:05 [end_date_ymd] => 2025-02-15 09:38:05 [RateCDR] => 1 ) [2025-02-15 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:38:05' and `end` < '2025-02-15 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:38:18] Production.INFO: count ==950 [2025-02-15 09:38:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:38:05 - End Time 2025-02-15 09:38:05 [2025-02-15 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480212', 'tblTempUsageDetail_20' ) start [2025-02-15 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480212', 'tblTempUsageDetail_20' ) end [2025-02-15 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480212', 'tblTempVendorCDR_20' ) start [2025-02-15 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480212', 'tblTempVendorCDR_20' ) end [2025-02-15 09:38:19] Production.INFO: ProcessCDR(1,14480212,1,1,2) [2025-02-15 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480212', 'tblTempUsageDetail_20' ) start [2025-02-15 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480212', 'tblTempUsageDetail_20' ) end [2025-02-15 09:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:38:22] Production.INFO: ==29882== Releasing lock... [2025-02-15 09:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:38:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:39:06 [end_date_ymd] => 2025-02-15 09:39:06 [RateCDR] => 1 ) [2025-02-15 09:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:39:06' and `end` < '2025-02-15 09:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:39:20] Production.INFO: count ==962 [2025-02-15 09:39:20] Production.ERROR: pbx CDR StartTime 2025-02-15 06:39:06 - End Time 2025-02-15 09:39:06 [2025-02-15 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480217', 'tblTempUsageDetail_20' ) start [2025-02-15 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480217', 'tblTempUsageDetail_20' ) end [2025-02-15 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480217', 'tblTempVendorCDR_20' ) start [2025-02-15 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480217', 'tblTempVendorCDR_20' ) end [2025-02-15 09:39:20] Production.INFO: ProcessCDR(1,14480217,1,1,2) [2025-02-15 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480217', 'tblTempUsageDetail_20' ) start [2025-02-15 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480217', 'tblTempUsageDetail_20' ) end [2025-02-15 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:39:24] Production.INFO: ==29961== Releasing lock... [2025-02-15 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:39:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:40:06 [end_date_ymd] => 2025-02-15 09:40:06 [RateCDR] => 1 ) [2025-02-15 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:40:06' and `end` < '2025-02-15 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:40:19] Production.INFO: count ==966 [2025-02-15 09:40:20] Production.ERROR: pbx CDR StartTime 2025-02-15 06:40:06 - End Time 2025-02-15 09:40:06 [2025-02-15 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480223', 'tblTempUsageDetail_20' ) start [2025-02-15 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480223', 'tblTempUsageDetail_20' ) end [2025-02-15 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480223', 'tblTempVendorCDR_20' ) start [2025-02-15 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480223', 'tblTempVendorCDR_20' ) end [2025-02-15 09:40:20] Production.INFO: ProcessCDR(1,14480223,1,1,2) [2025-02-15 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480223', 'tblTempUsageDetail_20' ) start [2025-02-15 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480223', 'tblTempUsageDetail_20' ) end [2025-02-15 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:40:23] Production.INFO: ==30036== Releasing lock... [2025-02-15 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:40:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:41:05 [end_date_ymd] => 2025-02-15 09:41:05 [RateCDR] => 1 ) [2025-02-15 09:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:41:05' and `end` < '2025-02-15 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-15 09:41:19] Production.INFO: count ==989 [2025-02-15 09:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:41:05 - End Time 2025-02-15 09:41:05 [2025-02-15 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480228', 'tblTempUsageDetail_20' ) start [2025-02-15 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480228', 'tblTempUsageDetail_20' ) end [2025-02-15 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480228', 'tblTempVendorCDR_20' ) start [2025-02-15 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480228', 'tblTempVendorCDR_20' ) end [2025-02-15 09:41:19] Production.INFO: ProcessCDR(1,14480228,1,1,2) [2025-02-15 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480228', 'tblTempUsageDetail_20' ) start [2025-02-15 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480228', 'tblTempUsageDetail_20' ) end [2025-02-15 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:41:23] Production.INFO: ==30109== Releasing lock... [2025-02-15 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:41:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:42:05 [end_date_ymd] => 2025-02-15 09:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:42:05' and `end` < '2025-02-15 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-15 09:42:18] Production.INFO: count ==993 [2025-02-15 09:42:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:42:05 - End Time 2025-02-15 09:42:05 [2025-02-15 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480233', 'tblTempUsageDetail_20' ) start [2025-02-15 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480233', 'tblTempUsageDetail_20' ) end [2025-02-15 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480233', 'tblTempVendorCDR_20' ) start [2025-02-15 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480233', 'tblTempVendorCDR_20' ) end [2025-02-15 09:42:18] Production.INFO: ProcessCDR(1,14480233,1,1,2) [2025-02-15 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480233', 'tblTempUsageDetail_20' ) start [2025-02-15 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480233', 'tblTempUsageDetail_20' ) end [2025-02-15 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:42:23] Production.INFO: ==30188== Releasing lock... [2025-02-15 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:42:23] Production.INFO: 36 MB #Memory Used# [2025-02-15 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:43:05 [end_date_ymd] => 2025-02-15 09:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:43:05' and `end` < '2025-02-15 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-15 09:43:19] Production.INFO: count ==993 [2025-02-15 09:43:20] Production.ERROR: pbx CDR StartTime 2025-02-15 06:43:05 - End Time 2025-02-15 09:43:05 [2025-02-15 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480238', 'tblTempUsageDetail_20' ) start [2025-02-15 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480238', 'tblTempUsageDetail_20' ) end [2025-02-15 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480238', 'tblTempVendorCDR_20' ) start [2025-02-15 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480238', 'tblTempVendorCDR_20' ) end [2025-02-15 09:43:20] Production.INFO: ProcessCDR(1,14480238,1,1,2) [2025-02-15 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480238', 'tblTempUsageDetail_20' ) start [2025-02-15 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480238', 'tblTempUsageDetail_20' ) end [2025-02-15 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:43:25] Production.INFO: ==30264== Releasing lock... [2025-02-15 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:43:25] Production.INFO: 36 MB #Memory Used# [2025-02-15 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:44:05 [end_date_ymd] => 2025-02-15 09:44:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:44:05' and `end` < '2025-02-15 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-15 09:44:19] Production.INFO: count ==991 [2025-02-15 09:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:44:05 - End Time 2025-02-15 09:44:05 [2025-02-15 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480243', 'tblTempUsageDetail_20' ) start [2025-02-15 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480243', 'tblTempUsageDetail_20' ) end [2025-02-15 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480243', 'tblTempVendorCDR_20' ) start [2025-02-15 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480243', 'tblTempVendorCDR_20' ) end [2025-02-15 09:44:19] Production.INFO: ProcessCDR(1,14480243,1,1,2) [2025-02-15 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480243', 'tblTempUsageDetail_20' ) start [2025-02-15 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480243', 'tblTempUsageDetail_20' ) end [2025-02-15 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:44:22] Production.INFO: ==30335== Releasing lock... [2025-02-15 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:44:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:45:05 [end_date_ymd] => 2025-02-15 09:45:05 [RateCDR] => 1 ) [2025-02-15 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:45:05' and `end` < '2025-02-15 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:45:18] Production.INFO: count ==992 [2025-02-15 09:45:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:45:05 - End Time 2025-02-15 09:45:05 [2025-02-15 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480248', 'tblTempUsageDetail_20' ) start [2025-02-15 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480248', 'tblTempUsageDetail_20' ) end [2025-02-15 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480248', 'tblTempVendorCDR_20' ) start [2025-02-15 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480248', 'tblTempVendorCDR_20' ) end [2025-02-15 09:45:19] Production.INFO: ProcessCDR(1,14480248,1,1,2) [2025-02-15 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480248', 'tblTempUsageDetail_20' ) start [2025-02-15 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480248', 'tblTempUsageDetail_20' ) end [2025-02-15 09:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:45:22] Production.INFO: ==30408== Releasing lock... [2025-02-15 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:45:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:46:05 [end_date_ymd] => 2025-02-15 09:46:05 [RateCDR] => 1 ) [2025-02-15 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:46:05' and `end` < '2025-02-15 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:46:18] Production.INFO: count ==993 [2025-02-15 09:46:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:46:05 - End Time 2025-02-15 09:46:05 [2025-02-15 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480253', 'tblTempUsageDetail_20' ) start [2025-02-15 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480253', 'tblTempUsageDetail_20' ) end [2025-02-15 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480253', 'tblTempVendorCDR_20' ) start [2025-02-15 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480253', 'tblTempVendorCDR_20' ) end [2025-02-15 09:46:19] Production.INFO: ProcessCDR(1,14480253,1,1,2) [2025-02-15 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480253', 'tblTempUsageDetail_20' ) start [2025-02-15 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480253', 'tblTempUsageDetail_20' ) end [2025-02-15 09:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:46:22] Production.INFO: ==30481== Releasing lock... [2025-02-15 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:46:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:47:06 [end_date_ymd] => 2025-02-15 09:47:06 [RateCDR] => 1 ) [2025-02-15 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-15 06:47:06' and `end` < '2025-02-15 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-15 09:47:19] Production.INFO: count ==1002 [2025-02-15 09:47:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:47:06 - End Time 2025-02-15 09:47:06 [2025-02-15 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480258', 'tblTempUsageDetail_20' ) start [2025-02-15 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480258', 'tblTempUsageDetail_20' ) end [2025-02-15 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480258', 'tblTempVendorCDR_20' ) start [2025-02-15 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480258', 'tblTempVendorCDR_20' ) end [2025-02-15 09:47:19] Production.INFO: ProcessCDR(1,14480258,1,1,2) [2025-02-15 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480258', 'tblTempUsageDetail_20' ) start [2025-02-15 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480258', 'tblTempUsageDetail_20' ) end [2025-02-15 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:47:24] Production.INFO: ==30554== Releasing lock... [2025-02-15 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:47:24] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:48:05 [end_date_ymd] => 2025-02-15 09:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:48:05' and `end` < '2025-02-15 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-15 09:48:18] Production.INFO: count ==1011 [2025-02-15 09:48:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:48:05 - End Time 2025-02-15 09:48:05 [2025-02-15 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480263', 'tblTempUsageDetail_20' ) start [2025-02-15 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480263', 'tblTempUsageDetail_20' ) end [2025-02-15 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480263', 'tblTempVendorCDR_20' ) start [2025-02-15 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480263', 'tblTempVendorCDR_20' ) end [2025-02-15 09:48:19] Production.INFO: ProcessCDR(1,14480263,1,1,2) [2025-02-15 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480263', 'tblTempUsageDetail_20' ) start [2025-02-15 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480263', 'tblTempUsageDetail_20' ) end [2025-02-15 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:48:22] Production.INFO: ==30630== Releasing lock... [2025-02-15 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:48:22] Production.INFO: 36 MB #Memory Used# [2025-02-15 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:49:05 [end_date_ymd] => 2025-02-15 09:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:49:05' and `end` < '2025-02-15 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-15 09:49:18] Production.INFO: count ==1013 [2025-02-15 09:49:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:49:05 - End Time 2025-02-15 09:49:05 [2025-02-15 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480268', 'tblTempUsageDetail_20' ) start [2025-02-15 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480268', 'tblTempUsageDetail_20' ) end [2025-02-15 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480268', 'tblTempVendorCDR_20' ) start [2025-02-15 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480268', 'tblTempVendorCDR_20' ) end [2025-02-15 09:49:19] Production.INFO: ProcessCDR(1,14480268,1,1,2) [2025-02-15 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480268', 'tblTempUsageDetail_20' ) start [2025-02-15 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480268', 'tblTempUsageDetail_20' ) end [2025-02-15 09:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:49:22] Production.INFO: ==30745== Releasing lock... [2025-02-15 09:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:49:22] Production.INFO: 36 MB #Memory Used# [2025-02-15 09:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:50:07 [end_date_ymd] => 2025-02-15 09:50:07 [RateCDR] => 1 ) [2025-02-15 09: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-15 06:50:07' and `end` < '2025-02-15 09: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-15 09:50:20] Production.INFO: count ==1015 [2025-02-15 09:50:20] Production.ERROR: pbx CDR StartTime 2025-02-15 06:50:07 - End Time 2025-02-15 09:50:07 [2025-02-15 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480274', 'tblTempUsageDetail_20' ) start [2025-02-15 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480274', 'tblTempUsageDetail_20' ) end [2025-02-15 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480274', 'tblTempVendorCDR_20' ) start [2025-02-15 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480274', 'tblTempVendorCDR_20' ) end [2025-02-15 09:50:20] Production.INFO: ProcessCDR(1,14480274,1,1,2) [2025-02-15 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480274', 'tblTempUsageDetail_20' ) start [2025-02-15 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480274', 'tblTempUsageDetail_20' ) end [2025-02-15 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:50:24] Production.INFO: ==30822== Releasing lock... [2025-02-15 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:50:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:51:05 [end_date_ymd] => 2025-02-15 09:51:05 [RateCDR] => 1 ) [2025-02-15 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:51:05' and `end` < '2025-02-15 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:51:19] Production.INFO: count ==1011 [2025-02-15 09:51:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:51:05 - End Time 2025-02-15 09:51:05 [2025-02-15 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480279', 'tblTempUsageDetail_20' ) start [2025-02-15 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480279', 'tblTempUsageDetail_20' ) end [2025-02-15 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480279', 'tblTempVendorCDR_20' ) start [2025-02-15 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480279', 'tblTempVendorCDR_20' ) end [2025-02-15 09:51:19] Production.INFO: ProcessCDR(1,14480279,1,1,2) [2025-02-15 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480279', 'tblTempUsageDetail_20' ) start [2025-02-15 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480279', 'tblTempUsageDetail_20' ) end [2025-02-15 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:51:22] Production.INFO: ==30900== Releasing lock... [2025-02-15 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:51:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:52:06 [end_date_ymd] => 2025-02-15 09:52:06 [RateCDR] => 1 ) [2025-02-15 09:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:52:06' and `end` < '2025-02-15 09:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:52:21] Production.INFO: count ==1010 [2025-02-15 09:52:22] Production.ERROR: pbx CDR StartTime 2025-02-15 06:52:06 - End Time 2025-02-15 09:52:06 [2025-02-15 09:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480284', 'tblTempUsageDetail_20' ) start [2025-02-15 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480284', 'tblTempUsageDetail_20' ) end [2025-02-15 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480284', 'tblTempVendorCDR_20' ) start [2025-02-15 09:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480284', 'tblTempVendorCDR_20' ) end [2025-02-15 09:52:22] Production.INFO: ProcessCDR(1,14480284,1,1,2) [2025-02-15 09:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480284', 'tblTempUsageDetail_20' ) start [2025-02-15 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480284', 'tblTempUsageDetail_20' ) end [2025-02-15 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:52:25] Production.INFO: ==30975== Releasing lock... [2025-02-15 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:52:25] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:53:04 [end_date_ymd] => 2025-02-15 09:53:04 [RateCDR] => 1 ) [2025-02-15 09: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-15 06:53:04' and `end` < '2025-02-15 09: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-15 09:53:17] Production.INFO: count ==1029 [2025-02-15 09:53:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:53:04 - End Time 2025-02-15 09:53:04 [2025-02-15 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480288', 'tblTempUsageDetail_20' ) start [2025-02-15 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480288', 'tblTempUsageDetail_20' ) end [2025-02-15 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480288', 'tblTempVendorCDR_20' ) start [2025-02-15 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480288', 'tblTempVendorCDR_20' ) end [2025-02-15 09:53:18] Production.INFO: ProcessCDR(1,14480288,1,1,2) [2025-02-15 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480288', 'tblTempUsageDetail_20' ) start [2025-02-15 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480288', 'tblTempUsageDetail_20' ) end [2025-02-15 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:53:22] Production.INFO: ==31052== Releasing lock... [2025-02-15 09:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:53:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:54:06 [end_date_ymd] => 2025-02-15 09:54:06 [RateCDR] => 1 ) [2025-02-15 09:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:54:06' and `end` < '2025-02-15 09:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:54:19] Production.INFO: count ==1030 [2025-02-15 09:54:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:54:06 - End Time 2025-02-15 09:54:06 [2025-02-15 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480294', 'tblTempUsageDetail_20' ) start [2025-02-15 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480294', 'tblTempUsageDetail_20' ) end [2025-02-15 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480294', 'tblTempVendorCDR_20' ) start [2025-02-15 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480294', 'tblTempVendorCDR_20' ) end [2025-02-15 09:54:19] Production.INFO: ProcessCDR(1,14480294,1,1,2) [2025-02-15 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480294', 'tblTempUsageDetail_20' ) start [2025-02-15 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480294', 'tblTempUsageDetail_20' ) end [2025-02-15 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:54:23] Production.INFO: ==31125== Releasing lock... [2025-02-15 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:54:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:55:05 [end_date_ymd] => 2025-02-15 09:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:55:05' and `end` < '2025-02-15 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-15 09:55:18] Production.INFO: count ==1030 [2025-02-15 09:55:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:55:05 - End Time 2025-02-15 09:55:05 [2025-02-15 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480299', 'tblTempUsageDetail_20' ) start [2025-02-15 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480299', 'tblTempUsageDetail_20' ) end [2025-02-15 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480299', 'tblTempVendorCDR_20' ) start [2025-02-15 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480299', 'tblTempVendorCDR_20' ) end [2025-02-15 09:55:19] Production.INFO: ProcessCDR(1,14480299,1,1,2) [2025-02-15 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480299', 'tblTempUsageDetail_20' ) start [2025-02-15 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480299', 'tblTempUsageDetail_20' ) end [2025-02-15 09:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:55:22] Production.INFO: ==31198== Releasing lock... [2025-02-15 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:55:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:56:05 [end_date_ymd] => 2025-02-15 09:56:05 [RateCDR] => 1 ) [2025-02-15 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 06:56:05' and `end` < '2025-02-15 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 09:56:20] Production.INFO: count ==1031 [2025-02-15 09:56:20] Production.ERROR: pbx CDR StartTime 2025-02-15 06:56:05 - End Time 2025-02-15 09:56:05 [2025-02-15 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480304', 'tblTempUsageDetail_20' ) start [2025-02-15 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480304', 'tblTempUsageDetail_20' ) end [2025-02-15 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480304', 'tblTempVendorCDR_20' ) start [2025-02-15 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480304', 'tblTempVendorCDR_20' ) end [2025-02-15 09:56:20] Production.INFO: ProcessCDR(1,14480304,1,1,2) [2025-02-15 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480304', 'tblTempUsageDetail_20' ) start [2025-02-15 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480304', 'tblTempUsageDetail_20' ) end [2025-02-15 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:56:25] Production.INFO: ==31274== Releasing lock... [2025-02-15 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:56:25] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:57:05 [end_date_ymd] => 2025-02-15 09:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:57:05' and `end` < '2025-02-15 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-15 09:57:18] Production.INFO: count ==1032 [2025-02-15 09:57:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:57:05 - End Time 2025-02-15 09:57:05 [2025-02-15 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480309', 'tblTempUsageDetail_20' ) start [2025-02-15 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480309', 'tblTempUsageDetail_20' ) end [2025-02-15 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480309', 'tblTempVendorCDR_20' ) start [2025-02-15 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480309', 'tblTempVendorCDR_20' ) end [2025-02-15 09:57:19] Production.INFO: ProcessCDR(1,14480309,1,1,2) [2025-02-15 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480309', 'tblTempUsageDetail_20' ) start [2025-02-15 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480309', 'tblTempUsageDetail_20' ) end [2025-02-15 09:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:57:22] Production.INFO: ==31345== Releasing lock... [2025-02-15 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:57:22] Production.INFO: 36 MB #Memory Used# [2025-02-15 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:58:05 [end_date_ymd] => 2025-02-15 09:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:58:05' and `end` < '2025-02-15 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-15 09:58:19] Production.INFO: count ==1039 [2025-02-15 09:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 06:58:05 - End Time 2025-02-15 09:58:05 [2025-02-15 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480314', 'tblTempUsageDetail_20' ) start [2025-02-15 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480314', 'tblTempUsageDetail_20' ) end [2025-02-15 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480314', 'tblTempVendorCDR_20' ) start [2025-02-15 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480314', 'tblTempVendorCDR_20' ) end [2025-02-15 09:58:19] Production.INFO: ProcessCDR(1,14480314,1,1,2) [2025-02-15 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480314', 'tblTempUsageDetail_20' ) start [2025-02-15 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480314', 'tblTempUsageDetail_20' ) end [2025-02-15 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:58:24] Production.INFO: ==31418== Releasing lock... [2025-02-15 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:58:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 06:59:05 [end_date_ymd] => 2025-02-15 09:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 06:59:05' and `end` < '2025-02-15 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-15 09:59:18] Production.INFO: count ==1041 [2025-02-15 09:59:18] Production.ERROR: pbx CDR StartTime 2025-02-15 06:59:05 - End Time 2025-02-15 09:59:05 [2025-02-15 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480319', 'tblTempUsageDetail_20' ) start [2025-02-15 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480319', 'tblTempUsageDetail_20' ) end [2025-02-15 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480319', 'tblTempVendorCDR_20' ) start [2025-02-15 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480319', 'tblTempVendorCDR_20' ) end [2025-02-15 09:59:18] Production.INFO: ProcessCDR(1,14480319,1,1,2) [2025-02-15 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480319', 'tblTempUsageDetail_20' ) start [2025-02-15 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480319', 'tblTempUsageDetail_20' ) end [2025-02-15 09:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 09:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 09:59:22] Production.INFO: ==31498== Releasing lock... [2025-02-15 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 09:59:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:00:06 [end_date_ymd] => 2025-02-15 10:00:06 [RateCDR] => 1 ) [2025-02-15 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:00:06' and `end` < '2025-02-15 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:00:20] Production.INFO: count ==1054 [2025-02-15 10:00:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:00:06 - End Time 2025-02-15 10:00:06 [2025-02-15 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480325', 'tblTempUsageDetail_20' ) start [2025-02-15 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480325', 'tblTempUsageDetail_20' ) end [2025-02-15 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480325', 'tblTempVendorCDR_20' ) start [2025-02-15 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480325', 'tblTempVendorCDR_20' ) end [2025-02-15 10:00:20] Production.INFO: ProcessCDR(1,14480325,1,1,2) [2025-02-15 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480325', 'tblTempUsageDetail_20' ) start [2025-02-15 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480325', 'tblTempUsageDetail_20' ) end [2025-02-15 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:00:24] Production.INFO: ==31575== Releasing lock... [2025-02-15 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:00:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:01:04 [end_date_ymd] => 2025-02-15 10:01:04 [RateCDR] => 1 ) [2025-02-15 10:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:01:04' and `end` < '2025-02-15 10:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:01:17] Production.INFO: count ==1060 [2025-02-15 10:01:18] Production.ERROR: pbx CDR StartTime 2025-02-15 07:01:04 - End Time 2025-02-15 10:01:04 [2025-02-15 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480330', 'tblTempUsageDetail_20' ) start [2025-02-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480330', 'tblTempUsageDetail_20' ) end [2025-02-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480330', 'tblTempVendorCDR_20' ) start [2025-02-15 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480330', 'tblTempVendorCDR_20' ) end [2025-02-15 10:01:18] Production.INFO: ProcessCDR(1,14480330,1,1,2) [2025-02-15 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480330', 'tblTempUsageDetail_20' ) start [2025-02-15 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480330', 'tblTempUsageDetail_20' ) end [2025-02-15 10:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:01:21] Production.INFO: ==31670== Releasing lock... [2025-02-15 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:01:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:02:05 [end_date_ymd] => 2025-02-15 10:02:05 [RateCDR] => 1 ) [2025-02-15 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:02:05' and `end` < '2025-02-15 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:02:18] Production.INFO: count ==1062 [2025-02-15 10:02:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:02:05 - End Time 2025-02-15 10:02:05 [2025-02-15 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480335', 'tblTempUsageDetail_20' ) start [2025-02-15 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480335', 'tblTempUsageDetail_20' ) end [2025-02-15 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480335', 'tblTempVendorCDR_20' ) start [2025-02-15 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480335', 'tblTempVendorCDR_20' ) end [2025-02-15 10:02:19] Production.INFO: ProcessCDR(1,14480335,1,1,2) [2025-02-15 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480335', 'tblTempUsageDetail_20' ) start [2025-02-15 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480335', 'tblTempUsageDetail_20' ) end [2025-02-15 10:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:02:22] Production.INFO: ==31747== Releasing lock... [2025-02-15 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:02:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:03:05 [end_date_ymd] => 2025-02-15 10:03:05 [RateCDR] => 1 ) [2025-02-15 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:03:05' and `end` < '2025-02-15 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:03:18] Production.INFO: count ==1062 [2025-02-15 10:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:03:05 - End Time 2025-02-15 10:03:05 [2025-02-15 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480340', 'tblTempUsageDetail_20' ) start [2025-02-15 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480340', 'tblTempUsageDetail_20' ) end [2025-02-15 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480340', 'tblTempVendorCDR_20' ) start [2025-02-15 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480340', 'tblTempVendorCDR_20' ) end [2025-02-15 10:03:19] Production.INFO: ProcessCDR(1,14480340,1,1,2) [2025-02-15 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480340', 'tblTempUsageDetail_20' ) start [2025-02-15 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480340', 'tblTempUsageDetail_20' ) end [2025-02-15 10:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:03:22] Production.INFO: ==31818== Releasing lock... [2025-02-15 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:03:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:04:06 [end_date_ymd] => 2025-02-15 10:04:06 [RateCDR] => 1 ) [2025-02-15 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-15 07:04:06' and `end` < '2025-02-15 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-15 10:04:20] Production.INFO: count ==1092 [2025-02-15 10:04:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:04:06 - End Time 2025-02-15 10:04:06 [2025-02-15 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480345', 'tblTempUsageDetail_20' ) start [2025-02-15 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480345', 'tblTempUsageDetail_20' ) end [2025-02-15 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480345', 'tblTempVendorCDR_20' ) start [2025-02-15 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480345', 'tblTempVendorCDR_20' ) end [2025-02-15 10:04:20] Production.INFO: ProcessCDR(1,14480345,1,1,2) [2025-02-15 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480345', 'tblTempUsageDetail_20' ) start [2025-02-15 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480345', 'tblTempUsageDetail_20' ) end [2025-02-15 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:04:26] Production.INFO: ==31933== Releasing lock... [2025-02-15 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:04:26] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:05:05 [end_date_ymd] => 2025-02-15 10:05:05 [RateCDR] => 1 ) [2025-02-15 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:05:05' and `end` < '2025-02-15 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:05:18] Production.INFO: count ==1093 [2025-02-15 10:05:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:05:05 - End Time 2025-02-15 10:05:05 [2025-02-15 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480350', 'tblTempUsageDetail_20' ) start [2025-02-15 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480350', 'tblTempUsageDetail_20' ) end [2025-02-15 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480350', 'tblTempVendorCDR_20' ) start [2025-02-15 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480350', 'tblTempVendorCDR_20' ) end [2025-02-15 10:05:19] Production.INFO: ProcessCDR(1,14480350,1,1,2) [2025-02-15 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480350', 'tblTempUsageDetail_20' ) start [2025-02-15 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480350', 'tblTempUsageDetail_20' ) end [2025-02-15 10:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:05:22] Production.INFO: ==32010== Releasing lock... [2025-02-15 10:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:05:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:06:06 [end_date_ymd] => 2025-02-15 10:06:06 [RateCDR] => 1 ) [2025-02-15 10: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-15 07:06:06' and `end` < '2025-02-15 10: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-15 10:06:19] Production.INFO: count ==1100 [2025-02-15 10:06:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:06:06 - End Time 2025-02-15 10:06:06 [2025-02-15 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480355', 'tblTempUsageDetail_20' ) start [2025-02-15 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480355', 'tblTempUsageDetail_20' ) end [2025-02-15 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480355', 'tblTempVendorCDR_20' ) start [2025-02-15 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480355', 'tblTempVendorCDR_20' ) end [2025-02-15 10:06:19] Production.INFO: ProcessCDR(1,14480355,1,1,2) [2025-02-15 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480355', 'tblTempUsageDetail_20' ) start [2025-02-15 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480355', 'tblTempUsageDetail_20' ) end [2025-02-15 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:06:25] Production.INFO: ==32081== Releasing lock... [2025-02-15 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:06:25] Production.INFO: 37 MB #Memory Used# [2025-02-15 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:07:06 [end_date_ymd] => 2025-02-15 10:07:06 [RateCDR] => 1 ) [2025-02-15 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-15 07:07:06' and `end` < '2025-02-15 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-15 10:07:19] Production.INFO: count ==1106 [2025-02-15 10:07:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:07:06 - End Time 2025-02-15 10:07:06 [2025-02-15 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480360', 'tblTempUsageDetail_20' ) start [2025-02-15 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480360', 'tblTempUsageDetail_20' ) end [2025-02-15 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480360', 'tblTempVendorCDR_20' ) start [2025-02-15 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480360', 'tblTempVendorCDR_20' ) end [2025-02-15 10:07:20] Production.INFO: ProcessCDR(1,14480360,1,1,2) [2025-02-15 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480360', 'tblTempUsageDetail_20' ) start [2025-02-15 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480360', 'tblTempUsageDetail_20' ) end [2025-02-15 10:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:07:23] Production.INFO: ==32156== Releasing lock... [2025-02-15 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:07:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:08:06 [end_date_ymd] => 2025-02-15 10:08:06 [RateCDR] => 1 ) [2025-02-15 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:08:06' and `end` < '2025-02-15 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:08:19] Production.INFO: count ==1106 [2025-02-15 10:08:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:08:06 - End Time 2025-02-15 10:08:06 [2025-02-15 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480365', 'tblTempUsageDetail_20' ) start [2025-02-15 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480365', 'tblTempUsageDetail_20' ) end [2025-02-15 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480365', 'tblTempVendorCDR_20' ) start [2025-02-15 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480365', 'tblTempVendorCDR_20' ) end [2025-02-15 10:08:19] Production.INFO: ProcessCDR(1,14480365,1,1,2) [2025-02-15 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480365', 'tblTempUsageDetail_20' ) start [2025-02-15 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480365', 'tblTempUsageDetail_20' ) end [2025-02-15 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:08:23] Production.INFO: ==32231== Releasing lock... [2025-02-15 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:08:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:09:06 [end_date_ymd] => 2025-02-15 10:09:06 [RateCDR] => 1 ) [2025-02-15 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-15 07:09:06' and `end` < '2025-02-15 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-15 10:09:19] Production.INFO: count ==1107 [2025-02-15 10:09:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:09:06 - End Time 2025-02-15 10:09:06 [2025-02-15 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480370', 'tblTempUsageDetail_20' ) start [2025-02-15 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480370', 'tblTempUsageDetail_20' ) end [2025-02-15 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480370', 'tblTempVendorCDR_20' ) start [2025-02-15 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480370', 'tblTempVendorCDR_20' ) end [2025-02-15 10:09:20] Production.INFO: ProcessCDR(1,14480370,1,1,2) [2025-02-15 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480370', 'tblTempUsageDetail_20' ) start [2025-02-15 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480370', 'tblTempUsageDetail_20' ) end [2025-02-15 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:09:25] Production.INFO: ==32304== Releasing lock... [2025-02-15 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:09:25] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:10:07 [end_date_ymd] => 2025-02-15 10:10:07 [RateCDR] => 1 ) [2025-02-15 10:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:10:07' and `end` < '2025-02-15 10:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:10:20] Production.INFO: count ==1108 [2025-02-15 10:10:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:10:07 - End Time 2025-02-15 10:10:07 [2025-02-15 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480376', 'tblTempUsageDetail_20' ) start [2025-02-15 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480376', 'tblTempUsageDetail_20' ) end [2025-02-15 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480376', 'tblTempVendorCDR_20' ) start [2025-02-15 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480376', 'tblTempVendorCDR_20' ) end [2025-02-15 10:10:20] Production.INFO: ProcessCDR(1,14480376,1,1,2) [2025-02-15 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480376', 'tblTempUsageDetail_20' ) start [2025-02-15 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480376', 'tblTempUsageDetail_20' ) end [2025-02-15 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:10:24] Production.INFO: ==32382== Releasing lock... [2025-02-15 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:10:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:11:06 [end_date_ymd] => 2025-02-15 10:11:06 [RateCDR] => 1 ) [2025-02-15 10: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-15 07:11:06' and `end` < '2025-02-15 10: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-15 10:11:19] Production.INFO: count ==1141 [2025-02-15 10:11:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:11:06 - End Time 2025-02-15 10:11:06 [2025-02-15 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480381', 'tblTempUsageDetail_20' ) start [2025-02-15 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480381', 'tblTempUsageDetail_20' ) end [2025-02-15 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480381', 'tblTempVendorCDR_20' ) start [2025-02-15 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480381', 'tblTempVendorCDR_20' ) end [2025-02-15 10:11:20] Production.INFO: ProcessCDR(1,14480381,1,1,2) [2025-02-15 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480381', 'tblTempUsageDetail_20' ) start [2025-02-15 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480381', 'tblTempUsageDetail_20' ) end [2025-02-15 10:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:11:24] Production.INFO: ==32471== Releasing lock... [2025-02-15 10:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:11:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:12:05 [end_date_ymd] => 2025-02-15 10:12:05 [RateCDR] => 1 ) [2025-02-15 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:12:05' and `end` < '2025-02-15 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-15 10:12:19] Production.INFO: count ==1139 [2025-02-15 10:12:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:12:05 - End Time 2025-02-15 10:12:05 [2025-02-15 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480386', 'tblTempUsageDetail_20' ) start [2025-02-15 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480386', 'tblTempUsageDetail_20' ) end [2025-02-15 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480386', 'tblTempVendorCDR_20' ) start [2025-02-15 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480386', 'tblTempVendorCDR_20' ) end [2025-02-15 10:12:19] Production.INFO: ProcessCDR(1,14480386,1,1,2) [2025-02-15 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480386', 'tblTempUsageDetail_20' ) start [2025-02-15 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480386', 'tblTempUsageDetail_20' ) end [2025-02-15 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:12:23] Production.INFO: ==32554== Releasing lock... [2025-02-15 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:12:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 10:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:13:04 [end_date_ymd] => 2025-02-15 10:13:04 [RateCDR] => 1 ) [2025-02-15 10:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:13:04' and `end` < '2025-02-15 10:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:13:19] Production.INFO: count ==1147 [2025-02-15 10:13:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:13:04 - End Time 2025-02-15 10:13:04 [2025-02-15 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480391', 'tblTempUsageDetail_20' ) start [2025-02-15 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480391', 'tblTempUsageDetail_20' ) end [2025-02-15 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480391', 'tblTempVendorCDR_20' ) start [2025-02-15 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480391', 'tblTempVendorCDR_20' ) end [2025-02-15 10:13:19] Production.INFO: ProcessCDR(1,14480391,1,1,2) [2025-02-15 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480391', 'tblTempUsageDetail_20' ) start [2025-02-15 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480391', 'tblTempUsageDetail_20' ) end [2025-02-15 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:13:23] Production.INFO: ==32631== Releasing lock... [2025-02-15 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:13:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:14:06 [end_date_ymd] => 2025-02-15 10:14:06 [RateCDR] => 1 ) [2025-02-15 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:14:06' and `end` < '2025-02-15 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:14:19] Production.INFO: count ==1155 [2025-02-15 10:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:14:06 - End Time 2025-02-15 10:14:06 [2025-02-15 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480396', 'tblTempUsageDetail_20' ) start [2025-02-15 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480396', 'tblTempUsageDetail_20' ) end [2025-02-15 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480396', 'tblTempVendorCDR_20' ) start [2025-02-15 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480396', 'tblTempVendorCDR_20' ) end [2025-02-15 10:14:19] Production.INFO: ProcessCDR(1,14480396,1,1,2) [2025-02-15 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480396', 'tblTempUsageDetail_20' ) start [2025-02-15 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480396', 'tblTempUsageDetail_20' ) end [2025-02-15 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:14:25] Production.INFO: ==32707== Releasing lock... [2025-02-15 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:14:25] Production.INFO: 37.25 MB #Memory Used# [2025-02-15 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:15:05 [end_date_ymd] => 2025-02-15 10:15:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:15:05' and `end` < '2025-02-15 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-15 10:15:18] Production.INFO: count ==1157 [2025-02-15 10:15:18] Production.ERROR: pbx CDR StartTime 2025-02-15 07:15:05 - End Time 2025-02-15 10:15:05 [2025-02-15 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480401', 'tblTempUsageDetail_20' ) start [2025-02-15 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480401', 'tblTempUsageDetail_20' ) end [2025-02-15 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480401', 'tblTempVendorCDR_20' ) start [2025-02-15 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480401', 'tblTempVendorCDR_20' ) end [2025-02-15 10:15:18] Production.INFO: ProcessCDR(1,14480401,1,1,2) [2025-02-15 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480401', 'tblTempUsageDetail_20' ) start [2025-02-15 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480401', 'tblTempUsageDetail_20' ) end [2025-02-15 10:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:15:23] Production.INFO: ==321== Releasing lock... [2025-02-15 10:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:15:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:16:05 [end_date_ymd] => 2025-02-15 10:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:16:05' and `end` < '2025-02-15 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-15 10:16:18] Production.INFO: count ==1165 [2025-02-15 10:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:16:05 - End Time 2025-02-15 10:16:05 [2025-02-15 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480406', 'tblTempUsageDetail_20' ) start [2025-02-15 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480406', 'tblTempUsageDetail_20' ) end [2025-02-15 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480406', 'tblTempVendorCDR_20' ) start [2025-02-15 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480406', 'tblTempVendorCDR_20' ) end [2025-02-15 10:16:19] Production.INFO: ProcessCDR(1,14480406,1,1,2) [2025-02-15 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480406', 'tblTempUsageDetail_20' ) start [2025-02-15 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480406', 'tblTempUsageDetail_20' ) end [2025-02-15 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:16:23] Production.INFO: ==422== Releasing lock... [2025-02-15 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:16:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:17:06 [end_date_ymd] => 2025-02-15 10:17:06 [RateCDR] => 1 ) [2025-02-15 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-15 07:17:06' and `end` < '2025-02-15 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-15 10:17:19] Production.INFO: count ==1169 [2025-02-15 10:17:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:17:06 - End Time 2025-02-15 10:17:06 [2025-02-15 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480411', 'tblTempUsageDetail_20' ) start [2025-02-15 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480411', 'tblTempUsageDetail_20' ) end [2025-02-15 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480411', 'tblTempVendorCDR_20' ) start [2025-02-15 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480411', 'tblTempVendorCDR_20' ) end [2025-02-15 10:17:19] Production.INFO: ProcessCDR(1,14480411,1,1,2) [2025-02-15 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480411', 'tblTempUsageDetail_20' ) start [2025-02-15 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480411', 'tblTempUsageDetail_20' ) end [2025-02-15 10:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:17:23] Production.INFO: ==507== Releasing lock... [2025-02-15 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:17:23] Production.INFO: 37 MB #Memory Used# [2025-02-15 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:18:05 [end_date_ymd] => 2025-02-15 10:18:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:18:05' and `end` < '2025-02-15 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-15 10:18:19] Production.INFO: count ==1177 [2025-02-15 10:18:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:18:05 - End Time 2025-02-15 10:18:05 [2025-02-15 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480416', 'tblTempUsageDetail_20' ) start [2025-02-15 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480416', 'tblTempUsageDetail_20' ) end [2025-02-15 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480416', 'tblTempVendorCDR_20' ) start [2025-02-15 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480416', 'tblTempVendorCDR_20' ) end [2025-02-15 10:18:19] Production.INFO: ProcessCDR(1,14480416,1,1,2) [2025-02-15 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480416', 'tblTempUsageDetail_20' ) start [2025-02-15 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480416', 'tblTempUsageDetail_20' ) end [2025-02-15 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:18:24] Production.INFO: ==591== Releasing lock... [2025-02-15 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:18:24] Production.INFO: 37 MB #Memory Used# [2025-02-15 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:19:05 [end_date_ymd] => 2025-02-15 10:19:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:19:05' and `end` < '2025-02-15 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-15 10:19:18] Production.INFO: count ==1180 [2025-02-15 10:19:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:19:05 - End Time 2025-02-15 10:19:05 [2025-02-15 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480421', 'tblTempUsageDetail_20' ) start [2025-02-15 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480421', 'tblTempUsageDetail_20' ) end [2025-02-15 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480421', 'tblTempVendorCDR_20' ) start [2025-02-15 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480421', 'tblTempVendorCDR_20' ) end [2025-02-15 10:19:19] Production.INFO: ProcessCDR(1,14480421,1,1,2) [2025-02-15 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480421', 'tblTempUsageDetail_20' ) start [2025-02-15 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480421', 'tblTempUsageDetail_20' ) end [2025-02-15 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:19:24] Production.INFO: ==704== Releasing lock... [2025-02-15 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:19:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:20:05 [end_date_ymd] => 2025-02-15 10:20:05 [RateCDR] => 1 ) [2025-02-15 10: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-15 07:20:05' and `end` < '2025-02-15 10: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-15 10:20:19] Production.INFO: count ==1208 [2025-02-15 10:20:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:20:05 - End Time 2025-02-15 10:20:05 [2025-02-15 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480427', 'tblTempUsageDetail_20' ) start [2025-02-15 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480427', 'tblTempUsageDetail_20' ) end [2025-02-15 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480427', 'tblTempVendorCDR_20' ) start [2025-02-15 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480427', 'tblTempVendorCDR_20' ) end [2025-02-15 10:20:19] Production.INFO: ProcessCDR(1,14480427,1,1,2) [2025-02-15 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480427', 'tblTempUsageDetail_20' ) start [2025-02-15 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480427', 'tblTempUsageDetail_20' ) end [2025-02-15 10:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:20:24] Production.INFO: ==825== Releasing lock... [2025-02-15 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:20:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-15 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:21:05 [end_date_ymd] => 2025-02-15 10:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:21:05' and `end` < '2025-02-15 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-15 10:21:20] Production.INFO: count ==1331 [2025-02-15 10:21:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:21:05 - End Time 2025-02-15 10:21:05 [2025-02-15 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480432', 'tblTempUsageDetail_20' ) start [2025-02-15 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480432', 'tblTempUsageDetail_20' ) end [2025-02-15 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480432', 'tblTempVendorCDR_20' ) start [2025-02-15 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480432', 'tblTempVendorCDR_20' ) end [2025-02-15 10:21:20] Production.INFO: ProcessCDR(1,14480432,1,1,2) [2025-02-15 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480432', 'tblTempUsageDetail_20' ) start [2025-02-15 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480432', 'tblTempUsageDetail_20' ) end [2025-02-15 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:21:23] Production.INFO: ==909== Releasing lock... [2025-02-15 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:21:23] Production.INFO: 38 MB #Memory Used# [2025-02-15 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:22:05 [end_date_ymd] => 2025-02-15 10:22:05 [RateCDR] => 1 ) [2025-02-15 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:22:05' and `end` < '2025-02-15 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:22:18] Production.INFO: count ==1340 [2025-02-15 10:22:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:22:05 - End Time 2025-02-15 10:22:05 [2025-02-15 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480437', 'tblTempUsageDetail_20' ) start [2025-02-15 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480437', 'tblTempUsageDetail_20' ) end [2025-02-15 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480437', 'tblTempVendorCDR_20' ) start [2025-02-15 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480437', 'tblTempVendorCDR_20' ) end [2025-02-15 10:22:19] Production.INFO: ProcessCDR(1,14480437,1,1,2) [2025-02-15 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480437', 'tblTempUsageDetail_20' ) start [2025-02-15 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480437', 'tblTempUsageDetail_20' ) end [2025-02-15 10:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:22:22] Production.INFO: ==994== Releasing lock... [2025-02-15 10:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:22:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:23:05 [end_date_ymd] => 2025-02-15 10:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:23:05' and `end` < '2025-02-15 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-15 10:23:18] Production.INFO: count ==1345 [2025-02-15 10:23:18] Production.ERROR: pbx CDR StartTime 2025-02-15 07:23:05 - End Time 2025-02-15 10:23:05 [2025-02-15 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480442', 'tblTempUsageDetail_20' ) start [2025-02-15 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480442', 'tblTempUsageDetail_20' ) end [2025-02-15 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480442', 'tblTempVendorCDR_20' ) start [2025-02-15 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480442', 'tblTempVendorCDR_20' ) end [2025-02-15 10:23:18] Production.INFO: ProcessCDR(1,14480442,1,1,2) [2025-02-15 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480442', 'tblTempUsageDetail_20' ) start [2025-02-15 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480442', 'tblTempUsageDetail_20' ) end [2025-02-15 10:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:23:23] Production.INFO: ==1073== Releasing lock... [2025-02-15 10:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:23:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:24:06 [end_date_ymd] => 2025-02-15 10:24:06 [RateCDR] => 1 ) [2025-02-15 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-15 07:24:06' and `end` < '2025-02-15 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-15 10:24:19] Production.INFO: count ==1367 [2025-02-15 10:24:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:24:06 - End Time 2025-02-15 10:24:06 [2025-02-15 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480447', 'tblTempUsageDetail_20' ) start [2025-02-15 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480447', 'tblTempUsageDetail_20' ) end [2025-02-15 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480447', 'tblTempVendorCDR_20' ) start [2025-02-15 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480447', 'tblTempVendorCDR_20' ) end [2025-02-15 10:24:20] Production.INFO: ProcessCDR(1,14480447,1,1,2) [2025-02-15 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480447', 'tblTempUsageDetail_20' ) start [2025-02-15 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480447', 'tblTempUsageDetail_20' ) end [2025-02-15 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:24:24] Production.INFO: ==1156== Releasing lock... [2025-02-15 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:24:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:25:04 [end_date_ymd] => 2025-02-15 10:25:04 [RateCDR] => 1 ) [2025-02-15 10: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-15 07:25:04' and `end` < '2025-02-15 10: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-15 10:25:18] Production.INFO: count ==1369 [2025-02-15 10:25:18] Production.ERROR: pbx CDR StartTime 2025-02-15 07:25:04 - End Time 2025-02-15 10:25:04 [2025-02-15 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480452', 'tblTempUsageDetail_20' ) start [2025-02-15 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480452', 'tblTempUsageDetail_20' ) end [2025-02-15 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480452', 'tblTempVendorCDR_20' ) start [2025-02-15 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480452', 'tblTempVendorCDR_20' ) end [2025-02-15 10:25:18] Production.INFO: ProcessCDR(1,14480452,1,1,2) [2025-02-15 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480452', 'tblTempUsageDetail_20' ) start [2025-02-15 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480452', 'tblTempUsageDetail_20' ) end [2025-02-15 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:25:23] Production.INFO: ==1235== Releasing lock... [2025-02-15 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:25:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:26:05 [end_date_ymd] => 2025-02-15 10:26:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:26:05' and `end` < '2025-02-15 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-15 10:26:19] Production.INFO: count ==1369 [2025-02-15 10:26:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:26:05 - End Time 2025-02-15 10:26:05 [2025-02-15 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480457', 'tblTempUsageDetail_20' ) start [2025-02-15 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480457', 'tblTempUsageDetail_20' ) end [2025-02-15 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480457', 'tblTempVendorCDR_20' ) start [2025-02-15 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480457', 'tblTempVendorCDR_20' ) end [2025-02-15 10:26:19] Production.INFO: ProcessCDR(1,14480457,1,1,2) [2025-02-15 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480457', 'tblTempUsageDetail_20' ) start [2025-02-15 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480457', 'tblTempUsageDetail_20' ) end [2025-02-15 10:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:26:22] Production.INFO: ==1327== Releasing lock... [2025-02-15 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:26:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:27:05 [end_date_ymd] => 2025-02-15 10:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:27:05' and `end` < '2025-02-15 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-15 10:27:19] Production.INFO: count ==1370 [2025-02-15 10:27:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:27:05 - End Time 2025-02-15 10:27:05 [2025-02-15 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480462', 'tblTempUsageDetail_20' ) start [2025-02-15 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480462', 'tblTempUsageDetail_20' ) end [2025-02-15 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480462', 'tblTempVendorCDR_20' ) start [2025-02-15 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480462', 'tblTempVendorCDR_20' ) end [2025-02-15 10:27:19] Production.INFO: ProcessCDR(1,14480462,1,1,2) [2025-02-15 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480462', 'tblTempUsageDetail_20' ) start [2025-02-15 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480462', 'tblTempUsageDetail_20' ) end [2025-02-15 10:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:27:23] Production.INFO: ==1405== Releasing lock... [2025-02-15 10:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:27:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:28:05 [end_date_ymd] => 2025-02-15 10:28:05 [RateCDR] => 1 ) [2025-02-15 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:28:05' and `end` < '2025-02-15 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:28:18] Production.INFO: count ==1378 [2025-02-15 10:28:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:28:05 - End Time 2025-02-15 10:28:05 [2025-02-15 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480467', 'tblTempUsageDetail_20' ) start [2025-02-15 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480467', 'tblTempUsageDetail_20' ) end [2025-02-15 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480467', 'tblTempVendorCDR_20' ) start [2025-02-15 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480467', 'tblTempVendorCDR_20' ) end [2025-02-15 10:28:19] Production.INFO: ProcessCDR(1,14480467,1,1,2) [2025-02-15 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480467', 'tblTempUsageDetail_20' ) start [2025-02-15 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480467', 'tblTempUsageDetail_20' ) end [2025-02-15 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:28:24] Production.INFO: ==1485== Releasing lock... [2025-02-15 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:28:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-15 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:29:06 [end_date_ymd] => 2025-02-15 10:29:06 [RateCDR] => 1 ) [2025-02-15 10:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:29:06' and `end` < '2025-02-15 10:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:29:19] Production.INFO: count ==1380 [2025-02-15 10:29:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:29:06 - End Time 2025-02-15 10:29:06 [2025-02-15 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480472', 'tblTempUsageDetail_20' ) start [2025-02-15 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480472', 'tblTempUsageDetail_20' ) end [2025-02-15 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480472', 'tblTempVendorCDR_20' ) start [2025-02-15 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480472', 'tblTempVendorCDR_20' ) end [2025-02-15 10:29:20] Production.INFO: ProcessCDR(1,14480472,1,1,2) [2025-02-15 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480472', 'tblTempUsageDetail_20' ) start [2025-02-15 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480472', 'tblTempUsageDetail_20' ) end [2025-02-15 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:29:24] Production.INFO: ==1598== Releasing lock... [2025-02-15 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:29:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-15 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:30:06 [end_date_ymd] => 2025-02-15 10:30:06 [RateCDR] => 1 ) [2025-02-15 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-15 07:30:06' and `end` < '2025-02-15 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-15 10:30:19] Production.INFO: count ==1412 [2025-02-15 10:30:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:30:06 - End Time 2025-02-15 10:30:06 [2025-02-15 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480478', 'tblTempUsageDetail_20' ) start [2025-02-15 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480478', 'tblTempUsageDetail_20' ) end [2025-02-15 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480478', 'tblTempVendorCDR_20' ) start [2025-02-15 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480478', 'tblTempVendorCDR_20' ) end [2025-02-15 10:30:20] Production.INFO: ProcessCDR(1,14480478,1,1,2) [2025-02-15 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480478', 'tblTempUsageDetail_20' ) start [2025-02-15 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480478', 'tblTempUsageDetail_20' ) end [2025-02-15 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:30:25] Production.INFO: ==1685== Releasing lock... [2025-02-15 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:30:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:31:05 [end_date_ymd] => 2025-02-15 10:31:05 [RateCDR] => 1 ) [2025-02-15 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:31:05' and `end` < '2025-02-15 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:31:18] Production.INFO: count ==1426 [2025-02-15 10:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:31:05 - End Time 2025-02-15 10:31:05 [2025-02-15 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480483', 'tblTempUsageDetail_20' ) start [2025-02-15 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480483', 'tblTempUsageDetail_20' ) end [2025-02-15 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480483', 'tblTempVendorCDR_20' ) start [2025-02-15 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480483', 'tblTempVendorCDR_20' ) end [2025-02-15 10:31:19] Production.INFO: ProcessCDR(1,14480483,1,1,2) [2025-02-15 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480483', 'tblTempUsageDetail_20' ) start [2025-02-15 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480483', 'tblTempUsageDetail_20' ) end [2025-02-15 10:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:31:22] Production.INFO: ==1764== Releasing lock... [2025-02-15 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:31:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:32:05 [end_date_ymd] => 2025-02-15 10:32:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:32:05' and `end` < '2025-02-15 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-15 10:32:18] Production.INFO: count ==1434 [2025-02-15 10:32:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:32:05 - End Time 2025-02-15 10:32:05 [2025-02-15 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480488', 'tblTempUsageDetail_20' ) start [2025-02-15 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480488', 'tblTempUsageDetail_20' ) end [2025-02-15 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480488', 'tblTempVendorCDR_20' ) start [2025-02-15 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480488', 'tblTempVendorCDR_20' ) end [2025-02-15 10:32:19] Production.INFO: ProcessCDR(1,14480488,1,1,2) [2025-02-15 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480488', 'tblTempUsageDetail_20' ) start [2025-02-15 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480488', 'tblTempUsageDetail_20' ) end [2025-02-15 10:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:32:24] Production.INFO: ==1844== Releasing lock... [2025-02-15 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:32:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:33:05 [end_date_ymd] => 2025-02-15 10:33:05 [RateCDR] => 1 ) [2025-02-15 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:33:05' and `end` < '2025-02-15 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:33:19] Production.INFO: count ==1441 [2025-02-15 10:33:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:33:05 - End Time 2025-02-15 10:33:05 [2025-02-15 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480493', 'tblTempUsageDetail_20' ) start [2025-02-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480493', 'tblTempUsageDetail_20' ) end [2025-02-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480493', 'tblTempVendorCDR_20' ) start [2025-02-15 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480493', 'tblTempVendorCDR_20' ) end [2025-02-15 10:33:19] Production.INFO: ProcessCDR(1,14480493,1,1,2) [2025-02-15 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480493', 'tblTempUsageDetail_20' ) start [2025-02-15 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480493', 'tblTempUsageDetail_20' ) end [2025-02-15 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:33:24] Production.INFO: ==1925== Releasing lock... [2025-02-15 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:33:24] Production.INFO: 39 MB #Memory Used# [2025-02-15 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:34:05 [end_date_ymd] => 2025-02-15 10:34:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:34:05' and `end` < '2025-02-15 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-15 10:34:19] Production.INFO: count ==1452 [2025-02-15 10:34:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:34:05 - End Time 2025-02-15 10:34:05 [2025-02-15 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480498', 'tblTempUsageDetail_20' ) start [2025-02-15 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480498', 'tblTempUsageDetail_20' ) end [2025-02-15 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480498', 'tblTempVendorCDR_20' ) start [2025-02-15 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480498', 'tblTempVendorCDR_20' ) end [2025-02-15 10:34:19] Production.INFO: ProcessCDR(1,14480498,1,1,2) [2025-02-15 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480498', 'tblTempUsageDetail_20' ) start [2025-02-15 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480498', 'tblTempUsageDetail_20' ) end [2025-02-15 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:34:24] Production.INFO: ==2005== Releasing lock... [2025-02-15 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:34:24] Production.INFO: 39 MB #Memory Used# [2025-02-15 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:35:05 [end_date_ymd] => 2025-02-15 10:35:05 [RateCDR] => 1 ) [2025-02-15 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:35:05' and `end` < '2025-02-15 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:35:19] Production.INFO: count ==1464 [2025-02-15 10:35:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:35:05 - End Time 2025-02-15 10:35:05 [2025-02-15 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480503', 'tblTempUsageDetail_20' ) start [2025-02-15 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480503', 'tblTempUsageDetail_20' ) end [2025-02-15 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480503', 'tblTempVendorCDR_20' ) start [2025-02-15 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480503', 'tblTempVendorCDR_20' ) end [2025-02-15 10:35:19] Production.INFO: ProcessCDR(1,14480503,1,1,2) [2025-02-15 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480503', 'tblTempUsageDetail_20' ) start [2025-02-15 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480503', 'tblTempUsageDetail_20' ) end [2025-02-15 10:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:35:24] Production.INFO: ==2119== Releasing lock... [2025-02-15 10:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:35:24] Production.INFO: 39 MB #Memory Used# [2025-02-15 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:36:06 [end_date_ymd] => 2025-02-15 10:36:06 [RateCDR] => 1 ) [2025-02-15 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:36:06' and `end` < '2025-02-15 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:36:19] Production.INFO: count ==1478 [2025-02-15 10:36:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:36:06 - End Time 2025-02-15 10:36:06 [2025-02-15 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480508', 'tblTempUsageDetail_20' ) start [2025-02-15 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480508', 'tblTempUsageDetail_20' ) end [2025-02-15 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480508', 'tblTempVendorCDR_20' ) start [2025-02-15 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480508', 'tblTempVendorCDR_20' ) end [2025-02-15 10:36:20] Production.INFO: ProcessCDR(1,14480508,1,1,2) [2025-02-15 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480508', 'tblTempUsageDetail_20' ) start [2025-02-15 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480508', 'tblTempUsageDetail_20' ) end [2025-02-15 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:36:25] Production.INFO: ==2201== Releasing lock... [2025-02-15 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:36:25] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:37:05 [end_date_ymd] => 2025-02-15 10:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:37:05' and `end` < '2025-02-15 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-15 10:37:18] Production.INFO: count ==1492 [2025-02-15 10:37:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:37:05 - End Time 2025-02-15 10:37:05 [2025-02-15 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480513', 'tblTempUsageDetail_20' ) start [2025-02-15 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480513', 'tblTempUsageDetail_20' ) end [2025-02-15 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480513', 'tblTempVendorCDR_20' ) start [2025-02-15 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480513', 'tblTempVendorCDR_20' ) end [2025-02-15 10:37:19] Production.INFO: ProcessCDR(1,14480513,1,1,2) [2025-02-15 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480513', 'tblTempUsageDetail_20' ) start [2025-02-15 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480513', 'tblTempUsageDetail_20' ) end [2025-02-15 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:37:24] Production.INFO: ==2284== Releasing lock... [2025-02-15 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:37:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-15 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:38:05 [end_date_ymd] => 2025-02-15 10:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:38:05' and `end` < '2025-02-15 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-15 10:38:19] Production.INFO: count ==1498 [2025-02-15 10:38:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:38:05 - End Time 2025-02-15 10:38:05 [2025-02-15 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480518', 'tblTempUsageDetail_20' ) start [2025-02-15 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480518', 'tblTempUsageDetail_20' ) end [2025-02-15 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480518', 'tblTempVendorCDR_20' ) start [2025-02-15 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480518', 'tblTempVendorCDR_20' ) end [2025-02-15 10:38:19] Production.INFO: ProcessCDR(1,14480518,1,1,2) [2025-02-15 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480518', 'tblTempUsageDetail_20' ) start [2025-02-15 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480518', 'tblTempUsageDetail_20' ) end [2025-02-15 10:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:38:24] Production.INFO: ==2361== Releasing lock... [2025-02-15 10:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:38:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:39:05 [end_date_ymd] => 2025-02-15 10:39:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:39:05' and `end` < '2025-02-15 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-15 10:39:18] Production.INFO: count ==1498 [2025-02-15 10:39:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:39:05 - End Time 2025-02-15 10:39:05 [2025-02-15 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480523', 'tblTempUsageDetail_20' ) start [2025-02-15 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480523', 'tblTempUsageDetail_20' ) end [2025-02-15 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480523', 'tblTempVendorCDR_20' ) start [2025-02-15 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480523', 'tblTempVendorCDR_20' ) end [2025-02-15 10:39:19] Production.INFO: ProcessCDR(1,14480523,1,1,2) [2025-02-15 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480523', 'tblTempUsageDetail_20' ) start [2025-02-15 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480523', 'tblTempUsageDetail_20' ) end [2025-02-15 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:39:22] Production.INFO: ==2442== Releasing lock... [2025-02-15 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:39:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:40:06 [end_date_ymd] => 2025-02-15 10:40:06 [RateCDR] => 1 ) [2025-02-15 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-15 07:40:06' and `end` < '2025-02-15 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-15 10:40:19] Production.INFO: count ==1502 [2025-02-15 10:40:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:40:06 - End Time 2025-02-15 10:40:06 [2025-02-15 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480529', 'tblTempUsageDetail_20' ) start [2025-02-15 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480529', 'tblTempUsageDetail_20' ) end [2025-02-15 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480529', 'tblTempVendorCDR_20' ) start [2025-02-15 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480529', 'tblTempVendorCDR_20' ) end [2025-02-15 10:40:20] Production.INFO: ProcessCDR(1,14480529,1,1,2) [2025-02-15 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480529', 'tblTempUsageDetail_20' ) start [2025-02-15 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480529', 'tblTempUsageDetail_20' ) end [2025-02-15 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:40:25] Production.INFO: ==2527== Releasing lock... [2025-02-15 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:40:25] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:41:05 [end_date_ymd] => 2025-02-15 10:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:41:05' and `end` < '2025-02-15 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-15 10:41:18] Production.INFO: count ==1516 [2025-02-15 10:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:41:05 - End Time 2025-02-15 10:41:05 [2025-02-15 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480534', 'tblTempUsageDetail_20' ) start [2025-02-15 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480534', 'tblTempUsageDetail_20' ) end [2025-02-15 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480534', 'tblTempVendorCDR_20' ) start [2025-02-15 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480534', 'tblTempVendorCDR_20' ) end [2025-02-15 10:41:19] Production.INFO: ProcessCDR(1,14480534,1,1,2) [2025-02-15 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480534', 'tblTempUsageDetail_20' ) start [2025-02-15 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480534', 'tblTempUsageDetail_20' ) end [2025-02-15 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:41:24] Production.INFO: ==2605== Releasing lock... [2025-02-15 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:41:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-15 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:42:05 [end_date_ymd] => 2025-02-15 10:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:42:05' and `end` < '2025-02-15 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-15 10:42:19] Production.INFO: count ==1531 [2025-02-15 10:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:42:05 - End Time 2025-02-15 10:42:05 [2025-02-15 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480539', 'tblTempUsageDetail_20' ) start [2025-02-15 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480539', 'tblTempUsageDetail_20' ) end [2025-02-15 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480539', 'tblTempVendorCDR_20' ) start [2025-02-15 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480539', 'tblTempVendorCDR_20' ) end [2025-02-15 10:42:19] Production.INFO: ProcessCDR(1,14480539,1,1,2) [2025-02-15 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480539', 'tblTempUsageDetail_20' ) start [2025-02-15 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480539', 'tblTempUsageDetail_20' ) end [2025-02-15 10:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:42:23] Production.INFO: ==2683== Releasing lock... [2025-02-15 10:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:42:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-15 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:43:05 [end_date_ymd] => 2025-02-15 10:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:43:05' and `end` < '2025-02-15 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-15 10:43:19] Production.INFO: count ==1531 [2025-02-15 10:43:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:43:05 - End Time 2025-02-15 10:43:05 [2025-02-15 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480544', 'tblTempUsageDetail_20' ) start [2025-02-15 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480544', 'tblTempUsageDetail_20' ) end [2025-02-15 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480544', 'tblTempVendorCDR_20' ) start [2025-02-15 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480544', 'tblTempVendorCDR_20' ) end [2025-02-15 10:43:19] Production.INFO: ProcessCDR(1,14480544,1,1,2) [2025-02-15 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480544', 'tblTempUsageDetail_20' ) start [2025-02-15 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480544', 'tblTempUsageDetail_20' ) end [2025-02-15 10:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:43:23] Production.INFO: ==2764== Releasing lock... [2025-02-15 10:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:43:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-15 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:44:04 [end_date_ymd] => 2025-02-15 10:44:04 [RateCDR] => 1 ) [2025-02-15 10: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-15 07:44:04' and `end` < '2025-02-15 10: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-15 10:44:18] Production.INFO: count ==1538 [2025-02-15 10:44:18] Production.ERROR: pbx CDR StartTime 2025-02-15 07:44:04 - End Time 2025-02-15 10:44:04 [2025-02-15 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480549', 'tblTempUsageDetail_20' ) start [2025-02-15 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480549', 'tblTempUsageDetail_20' ) end [2025-02-15 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480549', 'tblTempVendorCDR_20' ) start [2025-02-15 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480549', 'tblTempVendorCDR_20' ) end [2025-02-15 10:44:18] Production.INFO: ProcessCDR(1,14480549,1,1,2) [2025-02-15 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480549', 'tblTempUsageDetail_20' ) start [2025-02-15 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480549', 'tblTempUsageDetail_20' ) end [2025-02-15 10:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:44:22] Production.INFO: ==2841== Releasing lock... [2025-02-15 10:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:44:22] Production.INFO: 40 MB #Memory Used# [2025-02-15 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:45:06 [end_date_ymd] => 2025-02-15 10:45:06 [RateCDR] => 1 ) [2025-02-15 10: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-15 07:45:06' and `end` < '2025-02-15 10: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-15 10:45:19] Production.INFO: count ==1539 [2025-02-15 10:45:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:45:06 - End Time 2025-02-15 10:45:06 [2025-02-15 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480554', 'tblTempUsageDetail_20' ) start [2025-02-15 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480554', 'tblTempUsageDetail_20' ) end [2025-02-15 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480554', 'tblTempVendorCDR_20' ) start [2025-02-15 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480554', 'tblTempVendorCDR_20' ) end [2025-02-15 10:45:20] Production.INFO: ProcessCDR(1,14480554,1,1,2) [2025-02-15 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480554', 'tblTempUsageDetail_20' ) start [2025-02-15 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480554', 'tblTempUsageDetail_20' ) end [2025-02-15 10:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:45:24] Production.INFO: ==2925== Releasing lock... [2025-02-15 10:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:45:24] Production.INFO: 40 MB #Memory Used# [2025-02-15 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:46:05 [end_date_ymd] => 2025-02-15 10:46:05 [RateCDR] => 1 ) [2025-02-15 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:46:05' and `end` < '2025-02-15 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:46:18] Production.INFO: count ==1594 [2025-02-15 10:46:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:46:05 - End Time 2025-02-15 10:46:05 [2025-02-15 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480559', 'tblTempUsageDetail_20' ) start [2025-02-15 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480559', 'tblTempUsageDetail_20' ) end [2025-02-15 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480559', 'tblTempVendorCDR_20' ) start [2025-02-15 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480559', 'tblTempVendorCDR_20' ) end [2025-02-15 10:46:19] Production.INFO: ProcessCDR(1,14480559,1,1,2) [2025-02-15 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480559', 'tblTempUsageDetail_20' ) start [2025-02-15 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480559', 'tblTempUsageDetail_20' ) end [2025-02-15 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:46:24] Production.INFO: ==3002== Releasing lock... [2025-02-15 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:46:24] Production.INFO: 40 MB #Memory Used# [2025-02-15 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:47:05 [end_date_ymd] => 2025-02-15 10:47:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:47:05' and `end` < '2025-02-15 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-15 10:47:19] Production.INFO: count ==1645 [2025-02-15 10:47:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:47:05 - End Time 2025-02-15 10:47:05 [2025-02-15 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480564', 'tblTempUsageDetail_20' ) start [2025-02-15 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480564', 'tblTempUsageDetail_20' ) end [2025-02-15 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480564', 'tblTempVendorCDR_20' ) start [2025-02-15 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480564', 'tblTempVendorCDR_20' ) end [2025-02-15 10:47:19] Production.INFO: ProcessCDR(1,14480564,1,1,2) [2025-02-15 10:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480564', 'tblTempUsageDetail_20' ) start [2025-02-15 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480564', 'tblTempUsageDetail_20' ) end [2025-02-15 10:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:47:23] Production.INFO: ==3086== Releasing lock... [2025-02-15 10:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:47:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:48:05 [end_date_ymd] => 2025-02-15 10:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:48:05' and `end` < '2025-02-15 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-15 10:48:19] Production.INFO: count ==1648 [2025-02-15 10:48:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:48:05 - End Time 2025-02-15 10:48:05 [2025-02-15 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480569', 'tblTempUsageDetail_20' ) start [2025-02-15 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480569', 'tblTempUsageDetail_20' ) end [2025-02-15 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480569', 'tblTempVendorCDR_20' ) start [2025-02-15 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480569', 'tblTempVendorCDR_20' ) end [2025-02-15 10:48:20] Production.INFO: ProcessCDR(1,14480569,1,1,2) [2025-02-15 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480569', 'tblTempUsageDetail_20' ) start [2025-02-15 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480569', 'tblTempUsageDetail_20' ) end [2025-02-15 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:48:25] Production.INFO: ==3168== Releasing lock... [2025-02-15 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:48:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:49:05 [end_date_ymd] => 2025-02-15 10:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:49:05' and `end` < '2025-02-15 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-15 10:49:20] Production.INFO: count ==1673 [2025-02-15 10:49:21] Production.ERROR: pbx CDR StartTime 2025-02-15 07:49:05 - End Time 2025-02-15 10:49:05 [2025-02-15 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480574', 'tblTempUsageDetail_20' ) start [2025-02-15 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480574', 'tblTempUsageDetail_20' ) end [2025-02-15 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480574', 'tblTempVendorCDR_20' ) start [2025-02-15 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480574', 'tblTempVendorCDR_20' ) end [2025-02-15 10:49:21] Production.INFO: ProcessCDR(1,14480574,1,1,2) [2025-02-15 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480574', 'tblTempUsageDetail_20' ) start [2025-02-15 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480574', 'tblTempUsageDetail_20' ) end [2025-02-15 10:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:49:25] Production.INFO: ==3247== Releasing lock... [2025-02-15 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:49:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:50:06 [end_date_ymd] => 2025-02-15 10:50:06 [RateCDR] => 1 ) [2025-02-15 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-15 07:50:06' and `end` < '2025-02-15 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-15 10:50:19] Production.INFO: count ==1680 [2025-02-15 10:50:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:50:06 - End Time 2025-02-15 10:50:06 [2025-02-15 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480579', 'tblTempUsageDetail_20' ) start [2025-02-15 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480579', 'tblTempUsageDetail_20' ) end [2025-02-15 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480579', 'tblTempVendorCDR_20' ) start [2025-02-15 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480579', 'tblTempVendorCDR_20' ) end [2025-02-15 10:50:20] Production.INFO: ProcessCDR(1,14480579,1,1,2) [2025-02-15 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480579', 'tblTempUsageDetail_20' ) start [2025-02-15 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480579', 'tblTempUsageDetail_20' ) end [2025-02-15 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:50:25] Production.INFO: ==3325== Releasing lock... [2025-02-15 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:50:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:51:06 [end_date_ymd] => 2025-02-15 10:51:06 [RateCDR] => 1 ) [2025-02-15 10: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-15 07:51:06' and `end` < '2025-02-15 10: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-15 10:51:19] Production.INFO: count ==1712 [2025-02-15 10:51:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:51:06 - End Time 2025-02-15 10:51:06 [2025-02-15 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480585', 'tblTempUsageDetail_20' ) start [2025-02-15 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480585', 'tblTempUsageDetail_20' ) end [2025-02-15 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480585', 'tblTempVendorCDR_20' ) start [2025-02-15 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480585', 'tblTempVendorCDR_20' ) end [2025-02-15 10:51:20] Production.INFO: ProcessCDR(1,14480585,1,1,2) [2025-02-15 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480585', 'tblTempUsageDetail_20' ) start [2025-02-15 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480585', 'tblTempUsageDetail_20' ) end [2025-02-15 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:51:25] Production.INFO: ==3444== Releasing lock... [2025-02-15 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:51:25] Production.INFO: 41 MB #Memory Used# [2025-02-15 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:52:05 [end_date_ymd] => 2025-02-15 10:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:52:05' and `end` < '2025-02-15 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-15 10:52:18] Production.INFO: count ==1714 [2025-02-15 10:52:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:52:05 - End Time 2025-02-15 10:52:05 [2025-02-15 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480588', 'tblTempUsageDetail_20' ) start [2025-02-15 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480588', 'tblTempUsageDetail_20' ) end [2025-02-15 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480588', 'tblTempVendorCDR_20' ) start [2025-02-15 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480588', 'tblTempVendorCDR_20' ) end [2025-02-15 10:52:19] Production.INFO: ProcessCDR(1,14480588,1,1,2) [2025-02-15 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480588', 'tblTempUsageDetail_20' ) start [2025-02-15 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480588', 'tblTempUsageDetail_20' ) end [2025-02-15 10:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:52:24] Production.INFO: ==3522== Releasing lock... [2025-02-15 10:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:52:24] Production.INFO: 41 MB #Memory Used# [2025-02-15 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:53:05 [end_date_ymd] => 2025-02-15 10:53:05 [RateCDR] => 1 ) [2025-02-15 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:53:05' and `end` < '2025-02-15 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:53:19] Production.INFO: count ==1714 [2025-02-15 10:53:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:53:05 - End Time 2025-02-15 10:53:05 [2025-02-15 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480595', 'tblTempUsageDetail_20' ) start [2025-02-15 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480595', 'tblTempUsageDetail_20' ) end [2025-02-15 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480595', 'tblTempVendorCDR_20' ) start [2025-02-15 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480595', 'tblTempVendorCDR_20' ) end [2025-02-15 10:53:20] Production.INFO: ProcessCDR(1,14480595,1,1,2) [2025-02-15 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480595', 'tblTempUsageDetail_20' ) start [2025-02-15 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480595', 'tblTempUsageDetail_20' ) end [2025-02-15 10:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:53:23] Production.INFO: ==3604== Releasing lock... [2025-02-15 10:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:53:23] Production.INFO: 41 MB #Memory Used# [2025-02-15 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:54:04 [end_date_ymd] => 2025-02-15 10:54:04 [RateCDR] => 1 ) [2025-02-15 10: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-15 07:54:04' and `end` < '2025-02-15 10: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-15 10:54:18] Production.INFO: count ==1730 [2025-02-15 10:54:18] Production.ERROR: pbx CDR StartTime 2025-02-15 07:54:04 - End Time 2025-02-15 10:54:04 [2025-02-15 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480600', 'tblTempUsageDetail_20' ) start [2025-02-15 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480600', 'tblTempUsageDetail_20' ) end [2025-02-15 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480600', 'tblTempVendorCDR_20' ) start [2025-02-15 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480600', 'tblTempVendorCDR_20' ) end [2025-02-15 10:54:18] Production.INFO: ProcessCDR(1,14480600,1,1,2) [2025-02-15 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480600', 'tblTempUsageDetail_20' ) start [2025-02-15 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480600', 'tblTempUsageDetail_20' ) end [2025-02-15 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:54:23] Production.INFO: ==3678== Releasing lock... [2025-02-15 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:54:23] Production.INFO: 41 MB #Memory Used# [2025-02-15 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:55:05 [end_date_ymd] => 2025-02-15 10:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:55:05' and `end` < '2025-02-15 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-15 10:55:19] Production.INFO: count ==1736 [2025-02-15 10:55:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:55:05 - End Time 2025-02-15 10:55:05 [2025-02-15 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480605', 'tblTempUsageDetail_20' ) start [2025-02-15 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480605', 'tblTempUsageDetail_20' ) end [2025-02-15 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480605', 'tblTempVendorCDR_20' ) start [2025-02-15 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480605', 'tblTempVendorCDR_20' ) end [2025-02-15 10:55:19] Production.INFO: ProcessCDR(1,14480605,1,1,2) [2025-02-15 10:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480605', 'tblTempUsageDetail_20' ) start [2025-02-15 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480605', 'tblTempUsageDetail_20' ) end [2025-02-15 10:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:55:23] Production.INFO: ==3756== Releasing lock... [2025-02-15 10:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:55:23] Production.INFO: 41 MB #Memory Used# [2025-02-15 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:56:05 [end_date_ymd] => 2025-02-15 10:56:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:56:05' and `end` < '2025-02-15 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-15 10:56:18] Production.INFO: count ==1742 [2025-02-15 10:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:56:05 - End Time 2025-02-15 10:56:05 [2025-02-15 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480610', 'tblTempUsageDetail_20' ) start [2025-02-15 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480610', 'tblTempUsageDetail_20' ) end [2025-02-15 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480610', 'tblTempVendorCDR_20' ) start [2025-02-15 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480610', 'tblTempVendorCDR_20' ) end [2025-02-15 10:56:19] Production.INFO: ProcessCDR(1,14480610,1,1,2) [2025-02-15 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480610', 'tblTempUsageDetail_20' ) start [2025-02-15 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480610', 'tblTempUsageDetail_20' ) end [2025-02-15 10:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:56:23] Production.INFO: ==3830== Releasing lock... [2025-02-15 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:56:23] Production.INFO: 41 MB #Memory Used# [2025-02-15 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:57:06 [end_date_ymd] => 2025-02-15 10:57:06 [RateCDR] => 1 ) [2025-02-15 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-15 07:57:06' and `end` < '2025-02-15 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-15 10:57:20] Production.INFO: count ==1753 [2025-02-15 10:57:20] Production.ERROR: pbx CDR StartTime 2025-02-15 07:57:06 - End Time 2025-02-15 10:57:06 [2025-02-15 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480615', 'tblTempUsageDetail_20' ) start [2025-02-15 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480615', 'tblTempUsageDetail_20' ) end [2025-02-15 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480615', 'tblTempVendorCDR_20' ) start [2025-02-15 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480615', 'tblTempVendorCDR_20' ) end [2025-02-15 10:57:21] Production.INFO: ProcessCDR(1,14480615,1,1,2) [2025-02-15 10:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480615', 'tblTempUsageDetail_20' ) start [2025-02-15 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480615', 'tblTempUsageDetail_20' ) end [2025-02-15 10:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:57:24] Production.INFO: ==3912== Releasing lock... [2025-02-15 10:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:57:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:58:05 [end_date_ymd] => 2025-02-15 10:58:05 [RateCDR] => 1 ) [2025-02-15 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 07:58:05' and `end` < '2025-02-15 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 10:58:18] Production.INFO: count ==1755 [2025-02-15 10:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:58:05 - End Time 2025-02-15 10:58:05 [2025-02-15 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480620', 'tblTempUsageDetail_20' ) start [2025-02-15 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480620', 'tblTempUsageDetail_20' ) end [2025-02-15 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480620', 'tblTempVendorCDR_20' ) start [2025-02-15 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480620', 'tblTempVendorCDR_20' ) end [2025-02-15 10:58:19] Production.INFO: ProcessCDR(1,14480620,1,1,2) [2025-02-15 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480620', 'tblTempUsageDetail_20' ) start [2025-02-15 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480620', 'tblTempUsageDetail_20' ) end [2025-02-15 10:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:58:23] Production.INFO: ==3993== Releasing lock... [2025-02-15 10:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:58:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 07:59:05 [end_date_ymd] => 2025-02-15 10:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 07:59:05' and `end` < '2025-02-15 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-15 10:59:18] Production.INFO: count ==1757 [2025-02-15 10:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 07:59:05 - End Time 2025-02-15 10:59:05 [2025-02-15 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480625', 'tblTempUsageDetail_20' ) start [2025-02-15 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480625', 'tblTempUsageDetail_20' ) end [2025-02-15 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480625', 'tblTempVendorCDR_20' ) start [2025-02-15 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480625', 'tblTempVendorCDR_20' ) end [2025-02-15 10:59:19] Production.INFO: ProcessCDR(1,14480625,1,1,2) [2025-02-15 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480625', 'tblTempUsageDetail_20' ) start [2025-02-15 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480625', 'tblTempUsageDetail_20' ) end [2025-02-15 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 10:59:24] Production.INFO: ==4068== Releasing lock... [2025-02-15 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 10:59:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:00:06 [end_date_ymd] => 2025-02-15 11:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 08:00:06' and `end` < '2025-02-15 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-15 11:00:19] Production.INFO: count ==1763 [2025-02-15 11:00:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:00:06 - End Time 2025-02-15 11:00:06 [2025-02-15 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480631', 'tblTempUsageDetail_20' ) start [2025-02-15 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480631', 'tblTempUsageDetail_20' ) end [2025-02-15 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480631', 'tblTempVendorCDR_20' ) start [2025-02-15 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480631', 'tblTempVendorCDR_20' ) end [2025-02-15 11:00:20] Production.INFO: ProcessCDR(1,14480631,1,1,2) [2025-02-15 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480631', 'tblTempUsageDetail_20' ) start [2025-02-15 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480631', 'tblTempUsageDetail_20' ) end [2025-02-15 11:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:00:24] Production.INFO: ==4152== Releasing lock... [2025-02-15 11:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:00:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:01:05 [end_date_ymd] => 2025-02-15 11:01:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:01:05' and `end` < '2025-02-15 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-15 11:01:18] Production.INFO: count ==1811 [2025-02-15 11:01:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:01:05 - End Time 2025-02-15 11:01:05 [2025-02-15 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480636', 'tblTempUsageDetail_20' ) start [2025-02-15 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480636', 'tblTempUsageDetail_20' ) end [2025-02-15 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480636', 'tblTempVendorCDR_20' ) start [2025-02-15 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480636', 'tblTempVendorCDR_20' ) end [2025-02-15 11:01:19] Production.INFO: ProcessCDR(1,14480636,1,1,2) [2025-02-15 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480636', 'tblTempUsageDetail_20' ) start [2025-02-15 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480636', 'tblTempUsageDetail_20' ) end [2025-02-15 11:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:01:24] Production.INFO: ==4240== Releasing lock... [2025-02-15 11:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:01:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:02:05 [end_date_ymd] => 2025-02-15 11:02:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:02:05' and `end` < '2025-02-15 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-15 11:02:19] Production.INFO: count ==1813 [2025-02-15 11:02:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:02:05 - End Time 2025-02-15 11:02:05 [2025-02-15 11:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480641', 'tblTempUsageDetail_20' ) start [2025-02-15 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480641', 'tblTempUsageDetail_20' ) end [2025-02-15 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480641', 'tblTempVendorCDR_20' ) start [2025-02-15 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480641', 'tblTempVendorCDR_20' ) end [2025-02-15 11:02:20] Production.INFO: ProcessCDR(1,14480641,1,1,2) [2025-02-15 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480641', 'tblTempUsageDetail_20' ) start [2025-02-15 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480641', 'tblTempUsageDetail_20' ) end [2025-02-15 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:02:25] Production.INFO: ==4396== Releasing lock... [2025-02-15 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:02:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:03:06 [end_date_ymd] => 2025-02-15 11:03:06 [RateCDR] => 1 ) [2025-02-15 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-15 08:03:06' and `end` < '2025-02-15 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-15 11:03:19] Production.INFO: count ==1811 [2025-02-15 11:03:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:03:06 - End Time 2025-02-15 11:03:06 [2025-02-15 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480646', 'tblTempUsageDetail_20' ) start [2025-02-15 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480646', 'tblTempUsageDetail_20' ) end [2025-02-15 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480646', 'tblTempVendorCDR_20' ) start [2025-02-15 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480646', 'tblTempVendorCDR_20' ) end [2025-02-15 11:03:20] Production.INFO: ProcessCDR(1,14480646,1,1,2) [2025-02-15 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480646', 'tblTempUsageDetail_20' ) start [2025-02-15 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480646', 'tblTempUsageDetail_20' ) end [2025-02-15 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:03:26] Production.INFO: ==4469== Releasing lock... [2025-02-15 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:03:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:04:06 [end_date_ymd] => 2025-02-15 11:04:06 [RateCDR] => 1 ) [2025-02-15 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:04:06' and `end` < '2025-02-15 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:04:19] Production.INFO: count ==1811 [2025-02-15 11:04:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:04:06 - End Time 2025-02-15 11:04:06 [2025-02-15 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480651', 'tblTempUsageDetail_20' ) start [2025-02-15 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480651', 'tblTempUsageDetail_20' ) end [2025-02-15 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480651', 'tblTempVendorCDR_20' ) start [2025-02-15 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480651', 'tblTempVendorCDR_20' ) end [2025-02-15 11:04:20] Production.INFO: ProcessCDR(1,14480651,1,1,2) [2025-02-15 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480651', 'tblTempUsageDetail_20' ) start [2025-02-15 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480651', 'tblTempUsageDetail_20' ) end [2025-02-15 11:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:04:24] Production.INFO: ==4546== Releasing lock... [2025-02-15 11:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:04:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:05:05 [end_date_ymd] => 2025-02-15 11:05:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:05:05' and `end` < '2025-02-15 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-15 11:05:18] Production.INFO: count ==1813 [2025-02-15 11:05:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:05:05 - End Time 2025-02-15 11:05:05 [2025-02-15 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480656', 'tblTempUsageDetail_20' ) start [2025-02-15 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480656', 'tblTempUsageDetail_20' ) end [2025-02-15 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480656', 'tblTempVendorCDR_20' ) start [2025-02-15 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480656', 'tblTempVendorCDR_20' ) end [2025-02-15 11:05:19] Production.INFO: ProcessCDR(1,14480656,1,1,2) [2025-02-15 11:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480656', 'tblTempUsageDetail_20' ) start [2025-02-15 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480656', 'tblTempUsageDetail_20' ) end [2025-02-15 11:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:05:23] Production.INFO: ==4711== Releasing lock... [2025-02-15 11:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:05:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:06:06 [end_date_ymd] => 2025-02-15 11:06:06 [RateCDR] => 1 ) [2025-02-15 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:06:06' and `end` < '2025-02-15 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:06:20] Production.INFO: count ==1821 [2025-02-15 11:06:21] Production.ERROR: pbx CDR StartTime 2025-02-15 08:06:06 - End Time 2025-02-15 11:06:06 [2025-02-15 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480661', 'tblTempUsageDetail_20' ) start [2025-02-15 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480661', 'tblTempUsageDetail_20' ) end [2025-02-15 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480661', 'tblTempVendorCDR_20' ) start [2025-02-15 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480661', 'tblTempVendorCDR_20' ) end [2025-02-15 11:06:21] Production.INFO: ProcessCDR(1,14480661,1,1,2) [2025-02-15 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480661', 'tblTempUsageDetail_20' ) start [2025-02-15 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480661', 'tblTempUsageDetail_20' ) end [2025-02-15 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:06:25] Production.INFO: ==4824== Releasing lock... [2025-02-15 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:06:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:07:05 [end_date_ymd] => 2025-02-15 11:07:05 [RateCDR] => 1 ) [2025-02-15 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:07:05' and `end` < '2025-02-15 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:07:18] Production.INFO: count ==1818 [2025-02-15 11:07:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:07:05 - End Time 2025-02-15 11:07:05 [2025-02-15 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480666', 'tblTempUsageDetail_20' ) start [2025-02-15 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480666', 'tblTempUsageDetail_20' ) end [2025-02-15 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480666', 'tblTempVendorCDR_20' ) start [2025-02-15 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480666', 'tblTempVendorCDR_20' ) end [2025-02-15 11:07:19] Production.INFO: ProcessCDR(1,14480666,1,1,2) [2025-02-15 11:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480666', 'tblTempUsageDetail_20' ) start [2025-02-15 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480666', 'tblTempUsageDetail_20' ) end [2025-02-15 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:07:23] Production.INFO: ==4896== Releasing lock... [2025-02-15 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:07:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:08:05 [end_date_ymd] => 2025-02-15 11:08:05 [RateCDR] => 1 ) [2025-02-15 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:08:05' and `end` < '2025-02-15 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:08:18] Production.INFO: count ==1817 [2025-02-15 11:08:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:08:05 - End Time 2025-02-15 11:08:05 [2025-02-15 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480671', 'tblTempUsageDetail_20' ) start [2025-02-15 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480671', 'tblTempUsageDetail_20' ) end [2025-02-15 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480671', 'tblTempVendorCDR_20' ) start [2025-02-15 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480671', 'tblTempVendorCDR_20' ) end [2025-02-15 11:08:19] Production.INFO: ProcessCDR(1,14480671,1,1,2) [2025-02-15 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480671', 'tblTempUsageDetail_20' ) start [2025-02-15 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480671', 'tblTempUsageDetail_20' ) end [2025-02-15 11:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:08:23] Production.INFO: ==4970== Releasing lock... [2025-02-15 11:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:08:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:09:05 [end_date_ymd] => 2025-02-15 11:09:05 [RateCDR] => 1 ) [2025-02-15 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:09:05' and `end` < '2025-02-15 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:09:19] Production.INFO: count ==1817 [2025-02-15 11:09:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:09:05 - End Time 2025-02-15 11:09:05 [2025-02-15 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480676', 'tblTempUsageDetail_20' ) start [2025-02-15 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480676', 'tblTempUsageDetail_20' ) end [2025-02-15 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480676', 'tblTempVendorCDR_20' ) start [2025-02-15 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480676', 'tblTempVendorCDR_20' ) end [2025-02-15 11:09:20] Production.INFO: ProcessCDR(1,14480676,1,1,2) [2025-02-15 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480676', 'tblTempUsageDetail_20' ) start [2025-02-15 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480676', 'tblTempUsageDetail_20' ) end [2025-02-15 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:09:23] Production.INFO: ==5122== Releasing lock... [2025-02-15 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:09:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:10:07 [end_date_ymd] => 2025-02-15 11:10:07 [RateCDR] => 1 ) [2025-02-15 11:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:10:07' and `end` < '2025-02-15 11:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:10:20] Production.INFO: count ==1818 [2025-02-15 11:10:21] Production.ERROR: pbx CDR StartTime 2025-02-15 08:10:07 - End Time 2025-02-15 11:10:07 [2025-02-15 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480682', 'tblTempUsageDetail_20' ) start [2025-02-15 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480682', 'tblTempUsageDetail_20' ) end [2025-02-15 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480682', 'tblTempVendorCDR_20' ) start [2025-02-15 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480682', 'tblTempVendorCDR_20' ) end [2025-02-15 11:10:21] Production.INFO: ProcessCDR(1,14480682,1,1,2) [2025-02-15 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480682', 'tblTempUsageDetail_20' ) start [2025-02-15 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480682', 'tblTempUsageDetail_20' ) end [2025-02-15 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:10:26] Production.INFO: ==5197== Releasing lock... [2025-02-15 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:10:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:11:05 [end_date_ymd] => 2025-02-15 11:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:11:05' and `end` < '2025-02-15 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-15 11:11:19] Production.INFO: count ==1838 [2025-02-15 11:11:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:11:05 - End Time 2025-02-15 11:11:05 [2025-02-15 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480687', 'tblTempUsageDetail_20' ) start [2025-02-15 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480687', 'tblTempUsageDetail_20' ) end [2025-02-15 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480687', 'tblTempVendorCDR_20' ) start [2025-02-15 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480687', 'tblTempVendorCDR_20' ) end [2025-02-15 11:11:20] Production.INFO: ProcessCDR(1,14480687,1,1,2) [2025-02-15 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480687', 'tblTempUsageDetail_20' ) start [2025-02-15 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480687', 'tblTempUsageDetail_20' ) end [2025-02-15 11:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:11:24] Production.INFO: ==5274== Releasing lock... [2025-02-15 11:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:11:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:12:05 [end_date_ymd] => 2025-02-15 11:12:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:12:05' and `end` < '2025-02-15 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-15 11:12:18] Production.INFO: count ==1847 [2025-02-15 11:12:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:12:05 - End Time 2025-02-15 11:12:05 [2025-02-15 11:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480692', 'tblTempUsageDetail_20' ) start [2025-02-15 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480692', 'tblTempUsageDetail_20' ) end [2025-02-15 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480692', 'tblTempVendorCDR_20' ) start [2025-02-15 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480692', 'tblTempVendorCDR_20' ) end [2025-02-15 11:12:19] Production.INFO: ProcessCDR(1,14480692,1,1,2) [2025-02-15 11:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480692', 'tblTempUsageDetail_20' ) start [2025-02-15 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480692', 'tblTempUsageDetail_20' ) end [2025-02-15 11:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:12:23] Production.INFO: ==5427== Releasing lock... [2025-02-15 11:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:12:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:13:05 [end_date_ymd] => 2025-02-15 11:13:05 [RateCDR] => 1 ) [2025-02-15 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:13:05' and `end` < '2025-02-15 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:13:19] Production.INFO: count ==1851 [2025-02-15 11:13:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:13:05 - End Time 2025-02-15 11:13:05 [2025-02-15 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480697', 'tblTempUsageDetail_20' ) start [2025-02-15 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480697', 'tblTempUsageDetail_20' ) end [2025-02-15 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480697', 'tblTempVendorCDR_20' ) start [2025-02-15 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480697', 'tblTempVendorCDR_20' ) end [2025-02-15 11:13:20] Production.INFO: ProcessCDR(1,14480697,1,1,2) [2025-02-15 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480697', 'tblTempUsageDetail_20' ) start [2025-02-15 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480697', 'tblTempUsageDetail_20' ) end [2025-02-15 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:13:25] Production.INFO: ==5504== Releasing lock... [2025-02-15 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:13:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:14:05 [end_date_ymd] => 2025-02-15 11:14:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:14:05' and `end` < '2025-02-15 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-15 11:14:18] Production.INFO: count ==1893 [2025-02-15 11:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:14:05 - End Time 2025-02-15 11:14:05 [2025-02-15 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480702', 'tblTempUsageDetail_20' ) start [2025-02-15 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480702', 'tblTempUsageDetail_20' ) end [2025-02-15 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480702', 'tblTempVendorCDR_20' ) start [2025-02-15 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480702', 'tblTempVendorCDR_20' ) end [2025-02-15 11:14:19] Production.INFO: ProcessCDR(1,14480702,1,1,2) [2025-02-15 11:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480702', 'tblTempUsageDetail_20' ) start [2025-02-15 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480702', 'tblTempUsageDetail_20' ) end [2025-02-15 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:14:25] Production.INFO: ==5578== Releasing lock... [2025-02-15 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:14:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:15:06 [end_date_ymd] => 2025-02-15 11:15:06 [RateCDR] => 1 ) [2025-02-15 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:15:06' and `end` < '2025-02-15 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:15:19] Production.INFO: count ==1954 [2025-02-15 11:15:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:15:06 - End Time 2025-02-15 11:15:06 [2025-02-15 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480707', 'tblTempUsageDetail_20' ) start [2025-02-15 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480707', 'tblTempUsageDetail_20' ) end [2025-02-15 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480707', 'tblTempVendorCDR_20' ) start [2025-02-15 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480707', 'tblTempVendorCDR_20' ) end [2025-02-15 11:15:20] Production.INFO: ProcessCDR(1,14480707,1,1,2) [2025-02-15 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480707', 'tblTempUsageDetail_20' ) start [2025-02-15 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480707', 'tblTempUsageDetail_20' ) end [2025-02-15 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:15:25] Production.INFO: ==5692== Releasing lock... [2025-02-15 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:15:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:16:05 [end_date_ymd] => 2025-02-15 11:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:16:05' and `end` < '2025-02-15 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-15 11:16:19] Production.INFO: count ==1955 [2025-02-15 11:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:16:05 - End Time 2025-02-15 11:16:05 [2025-02-15 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480712', 'tblTempUsageDetail_20' ) start [2025-02-15 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480712', 'tblTempUsageDetail_20' ) end [2025-02-15 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480712', 'tblTempVendorCDR_20' ) start [2025-02-15 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480712', 'tblTempVendorCDR_20' ) end [2025-02-15 11:16:19] Production.INFO: ProcessCDR(1,14480712,1,1,2) [2025-02-15 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480712', 'tblTempUsageDetail_20' ) start [2025-02-15 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480712', 'tblTempUsageDetail_20' ) end [2025-02-15 11:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:16:23] Production.INFO: ==5808== Releasing lock... [2025-02-15 11:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:16:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:17:05 [end_date_ymd] => 2025-02-15 11:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:17:05' and `end` < '2025-02-15 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-15 11:17:19] Production.INFO: count ==1975 [2025-02-15 11:17:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:17:05 - End Time 2025-02-15 11:17:05 [2025-02-15 11:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480717', 'tblTempUsageDetail_20' ) start [2025-02-15 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480717', 'tblTempUsageDetail_20' ) end [2025-02-15 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480717', 'tblTempVendorCDR_20' ) start [2025-02-15 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480717', 'tblTempVendorCDR_20' ) end [2025-02-15 11:17:20] Production.INFO: ProcessCDR(1,14480717,1,1,2) [2025-02-15 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480717', 'tblTempUsageDetail_20' ) start [2025-02-15 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480717', 'tblTempUsageDetail_20' ) end [2025-02-15 11:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:17:24] Production.INFO: ==5885== Releasing lock... [2025-02-15 11:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:17:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 11:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:18:04 [end_date_ymd] => 2025-02-15 11:18:04 [RateCDR] => 1 ) [2025-02-15 11: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-15 08:18:04' and `end` < '2025-02-15 11: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-15 11:18:18] Production.INFO: count ==2003 [2025-02-15 11:18:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:18:04 - End Time 2025-02-15 11:18:04 [2025-02-15 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480722', 'tblTempUsageDetail_20' ) start [2025-02-15 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480722', 'tblTempUsageDetail_20' ) end [2025-02-15 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480722', 'tblTempVendorCDR_20' ) start [2025-02-15 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480722', 'tblTempVendorCDR_20' ) end [2025-02-15 11:18:19] Production.INFO: ProcessCDR(1,14480722,1,1,2) [2025-02-15 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480722', 'tblTempUsageDetail_20' ) start [2025-02-15 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480722', 'tblTempUsageDetail_20' ) end [2025-02-15 11:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:18:22] Production.INFO: ==5957== Releasing lock... [2025-02-15 11:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:18:22] Production.INFO: 43 MB #Memory Used# [2025-02-15 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:19:06 [end_date_ymd] => 2025-02-15 11:19:06 [RateCDR] => 1 ) [2025-02-15 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-15 08:19:06' and `end` < '2025-02-15 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-15 11:19:19] Production.INFO: count ==2057 [2025-02-15 11:19:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:19:06 - End Time 2025-02-15 11:19:06 [2025-02-15 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480727', 'tblTempUsageDetail_20' ) start [2025-02-15 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480727', 'tblTempUsageDetail_20' ) end [2025-02-15 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480727', 'tblTempVendorCDR_20' ) start [2025-02-15 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480727', 'tblTempVendorCDR_20' ) end [2025-02-15 11:19:20] Production.INFO: ProcessCDR(1,14480727,1,1,2) [2025-02-15 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480727', 'tblTempUsageDetail_20' ) start [2025-02-15 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480727', 'tblTempUsageDetail_20' ) end [2025-02-15 11:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:19:23] Production.INFO: ==6034== Releasing lock... [2025-02-15 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:19:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-15 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:20:05 [end_date_ymd] => 2025-02-15 11:20:05 [RateCDR] => 1 ) [2025-02-15 11: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-15 08:20:05' and `end` < '2025-02-15 11: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-15 11:20:19] Production.INFO: count ==2061 [2025-02-15 11:20:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:20:05 - End Time 2025-02-15 11:20:05 [2025-02-15 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480733', 'tblTempUsageDetail_20' ) start [2025-02-15 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480733', 'tblTempUsageDetail_20' ) end [2025-02-15 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480733', 'tblTempVendorCDR_20' ) start [2025-02-15 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480733', 'tblTempVendorCDR_20' ) end [2025-02-15 11:20:20] Production.INFO: ProcessCDR(1,14480733,1,1,2) [2025-02-15 11:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480733', 'tblTempUsageDetail_20' ) start [2025-02-15 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480733', 'tblTempUsageDetail_20' ) end [2025-02-15 11:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:20:23] Production.INFO: ==6109== Releasing lock... [2025-02-15 11:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:20:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-15 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:21:05 [end_date_ymd] => 2025-02-15 11:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:21:05' and `end` < '2025-02-15 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-15 11:21:19] Production.INFO: count ==2115 [2025-02-15 11:21:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:21:05 - End Time 2025-02-15 11:21:05 [2025-02-15 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480738', 'tblTempUsageDetail_20' ) start [2025-02-15 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480738', 'tblTempUsageDetail_20' ) end [2025-02-15 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480738', 'tblTempVendorCDR_20' ) start [2025-02-15 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480738', 'tblTempVendorCDR_20' ) end [2025-02-15 11:21:20] Production.INFO: ProcessCDR(1,14480738,1,1,2) [2025-02-15 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480738', 'tblTempUsageDetail_20' ) start [2025-02-15 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480738', 'tblTempUsageDetail_20' ) end [2025-02-15 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:21:25] Production.INFO: ==6188== Releasing lock... [2025-02-15 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:21:25] Production.INFO: 44 MB #Memory Used# [2025-02-15 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:22:06 [end_date_ymd] => 2025-02-15 11:22:06 [RateCDR] => 1 ) [2025-02-15 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-15 08:22:06' and `end` < '2025-02-15 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-15 11:22:20] Production.INFO: count ==2117 [2025-02-15 11:22:21] Production.ERROR: pbx CDR StartTime 2025-02-15 08:22:06 - End Time 2025-02-15 11:22:06 [2025-02-15 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480743', 'tblTempUsageDetail_20' ) start [2025-02-15 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480743', 'tblTempUsageDetail_20' ) end [2025-02-15 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480743', 'tblTempVendorCDR_20' ) start [2025-02-15 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480743', 'tblTempVendorCDR_20' ) end [2025-02-15 11:22:21] Production.INFO: ProcessCDR(1,14480743,1,1,2) [2025-02-15 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480743', 'tblTempUsageDetail_20' ) start [2025-02-15 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480743', 'tblTempUsageDetail_20' ) end [2025-02-15 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:22:26] Production.INFO: ==6301== Releasing lock... [2025-02-15 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:22:26] Production.INFO: 44 MB #Memory Used# [2025-02-15 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:23:05 [end_date_ymd] => 2025-02-15 11:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:23:05' and `end` < '2025-02-15 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-15 11:23:19] Production.INFO: count ==2125 [2025-02-15 11:23:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:23:05 - End Time 2025-02-15 11:23:05 [2025-02-15 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480748', 'tblTempUsageDetail_20' ) start [2025-02-15 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480748', 'tblTempUsageDetail_20' ) end [2025-02-15 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480748', 'tblTempVendorCDR_20' ) start [2025-02-15 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480748', 'tblTempVendorCDR_20' ) end [2025-02-15 11:23:20] Production.INFO: ProcessCDR(1,14480748,1,1,2) [2025-02-15 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480748', 'tblTempUsageDetail_20' ) start [2025-02-15 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480748', 'tblTempUsageDetail_20' ) end [2025-02-15 11:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:23:24] Production.INFO: ==6375== Releasing lock... [2025-02-15 11:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:23:24] Production.INFO: 44 MB #Memory Used# [2025-02-15 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:24:06 [end_date_ymd] => 2025-02-15 11:24:06 [RateCDR] => 1 ) [2025-02-15 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-15 08:24:06' and `end` < '2025-02-15 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-15 11:24:20] Production.INFO: count ==2226 [2025-02-15 11:24:21] Production.ERROR: pbx CDR StartTime 2025-02-15 08:24:06 - End Time 2025-02-15 11:24:06 [2025-02-15 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480753', 'tblTempUsageDetail_20' ) start [2025-02-15 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480753', 'tblTempUsageDetail_20' ) end [2025-02-15 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480753', 'tblTempVendorCDR_20' ) start [2025-02-15 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480753', 'tblTempVendorCDR_20' ) end [2025-02-15 11:24:21] Production.INFO: ProcessCDR(1,14480753,1,1,2) [2025-02-15 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480753', 'tblTempUsageDetail_20' ) start [2025-02-15 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480753', 'tblTempUsageDetail_20' ) end [2025-02-15 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:24:26] Production.INFO: ==6449== Releasing lock... [2025-02-15 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:24:26] Production.INFO: 44.75 MB #Memory Used# [2025-02-15 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:25:05 [end_date_ymd] => 2025-02-15 11:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:25:05' and `end` < '2025-02-15 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-15 11:25:18] Production.INFO: count ==2242 [2025-02-15 11:25:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:25:05 - End Time 2025-02-15 11:25:05 [2025-02-15 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480758', 'tblTempUsageDetail_20' ) start [2025-02-15 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480758', 'tblTempUsageDetail_20' ) end [2025-02-15 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480758', 'tblTempVendorCDR_20' ) start [2025-02-15 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480758', 'tblTempVendorCDR_20' ) end [2025-02-15 11:25:19] Production.INFO: ProcessCDR(1,14480758,1,1,2) [2025-02-15 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480758', 'tblTempUsageDetail_20' ) start [2025-02-15 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480758', 'tblTempUsageDetail_20' ) end [2025-02-15 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:25:24] Production.INFO: ==6523== Releasing lock... [2025-02-15 11:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:25:24] Production.INFO: 45 MB #Memory Used# [2025-02-15 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:26:05 [end_date_ymd] => 2025-02-15 11:26:05 [RateCDR] => 1 ) [2025-02-15 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:26:05' and `end` < '2025-02-15 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:26:19] Production.INFO: count ==2255 [2025-02-15 11:26:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:26:05 - End Time 2025-02-15 11:26:05 [2025-02-15 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480763', 'tblTempUsageDetail_20' ) start [2025-02-15 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480763', 'tblTempUsageDetail_20' ) end [2025-02-15 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480763', 'tblTempVendorCDR_20' ) start [2025-02-15 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480763', 'tblTempVendorCDR_20' ) end [2025-02-15 11:26:20] Production.INFO: ProcessCDR(1,14480763,1,1,2) [2025-02-15 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480763', 'tblTempUsageDetail_20' ) start [2025-02-15 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480763', 'tblTempUsageDetail_20' ) end [2025-02-15 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:26:25] Production.INFO: ==6600== Releasing lock... [2025-02-15 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:26:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-15 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:27:05 [end_date_ymd] => 2025-02-15 11:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:27:05' and `end` < '2025-02-15 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-15 11:27:18] Production.INFO: count ==2255 [2025-02-15 11:27:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:27:05 - End Time 2025-02-15 11:27:05 [2025-02-15 11:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480768', 'tblTempUsageDetail_20' ) start [2025-02-15 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480768', 'tblTempUsageDetail_20' ) end [2025-02-15 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480768', 'tblTempVendorCDR_20' ) start [2025-02-15 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480768', 'tblTempVendorCDR_20' ) end [2025-02-15 11:27:19] Production.INFO: ProcessCDR(1,14480768,1,1,2) [2025-02-15 11:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480768', 'tblTempUsageDetail_20' ) start [2025-02-15 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480768', 'tblTempUsageDetail_20' ) end [2025-02-15 11:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:27:23] Production.INFO: ==6675== Releasing lock... [2025-02-15 11:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:27:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-15 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:28:06 [end_date_ymd] => 2025-02-15 11:28:06 [RateCDR] => 1 ) [2025-02-15 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-15 08:28:06' and `end` < '2025-02-15 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-15 11:28:19] Production.INFO: count ==2255 [2025-02-15 11:28:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:28:06 - End Time 2025-02-15 11:28:06 [2025-02-15 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480773', 'tblTempUsageDetail_20' ) start [2025-02-15 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480773', 'tblTempUsageDetail_20' ) end [2025-02-15 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480773', 'tblTempVendorCDR_20' ) start [2025-02-15 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480773', 'tblTempVendorCDR_20' ) end [2025-02-15 11:28:20] Production.INFO: ProcessCDR(1,14480773,1,1,2) [2025-02-15 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480773', 'tblTempUsageDetail_20' ) start [2025-02-15 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480773', 'tblTempUsageDetail_20' ) end [2025-02-15 11:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:28:24] Production.INFO: ==6751== Releasing lock... [2025-02-15 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:28:24] Production.INFO: 45 MB #Memory Used# [2025-02-15 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:29:05 [end_date_ymd] => 2025-02-15 11:29:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:29:05' and `end` < '2025-02-15 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-15 11:29:19] Production.INFO: count ==2265 [2025-02-15 11:29:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:29:05 - End Time 2025-02-15 11:29:05 [2025-02-15 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480778', 'tblTempUsageDetail_20' ) start [2025-02-15 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480778', 'tblTempUsageDetail_20' ) end [2025-02-15 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480778', 'tblTempVendorCDR_20' ) start [2025-02-15 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480778', 'tblTempVendorCDR_20' ) end [2025-02-15 11:29:20] Production.INFO: ProcessCDR(1,14480778,1,1,2) [2025-02-15 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480778', 'tblTempUsageDetail_20' ) start [2025-02-15 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480778', 'tblTempUsageDetail_20' ) end [2025-02-15 11:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:29:24] Production.INFO: ==6826== Releasing lock... [2025-02-15 11:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:29:24] Production.INFO: 45 MB #Memory Used# [2025-02-15 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:30:06 [end_date_ymd] => 2025-02-15 11:30:06 [RateCDR] => 1 ) [2025-02-15 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:30:06' and `end` < '2025-02-15 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:30:20] Production.INFO: count ==2280 [2025-02-15 11:30:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:30:06 - End Time 2025-02-15 11:30:06 [2025-02-15 11:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480784', 'tblTempUsageDetail_20' ) start [2025-02-15 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480784', 'tblTempUsageDetail_20' ) end [2025-02-15 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480784', 'tblTempVendorCDR_20' ) start [2025-02-15 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480784', 'tblTempVendorCDR_20' ) end [2025-02-15 11:30:21] Production.INFO: ProcessCDR(1,14480784,1,1,2) [2025-02-15 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480784', 'tblTempUsageDetail_20' ) start [2025-02-15 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480784', 'tblTempUsageDetail_20' ) end [2025-02-15 11:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:30:25] Production.INFO: ==6910== Releasing lock... [2025-02-15 11:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:30:25] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:31:05 [end_date_ymd] => 2025-02-15 11:31:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:31:05' and `end` < '2025-02-15 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-15 11:31:18] Production.INFO: count ==2323 [2025-02-15 11:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:31:05 - End Time 2025-02-15 11:31:05 [2025-02-15 11:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480789', 'tblTempUsageDetail_20' ) start [2025-02-15 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480789', 'tblTempUsageDetail_20' ) end [2025-02-15 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480789', 'tblTempVendorCDR_20' ) start [2025-02-15 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480789', 'tblTempVendorCDR_20' ) end [2025-02-15 11:31:19] Production.INFO: ProcessCDR(1,14480789,1,1,2) [2025-02-15 11:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480789', 'tblTempUsageDetail_20' ) start [2025-02-15 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480789', 'tblTempUsageDetail_20' ) end [2025-02-15 11:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:31:23] Production.INFO: ==6988== Releasing lock... [2025-02-15 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:31:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:32:05 [end_date_ymd] => 2025-02-15 11:32:05 [RateCDR] => 1 ) [2025-02-15 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:32:05' and `end` < '2025-02-15 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:32:19] Production.INFO: count ==2330 [2025-02-15 11:32:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:32:05 - End Time 2025-02-15 11:32:05 [2025-02-15 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480794', 'tblTempUsageDetail_20' ) start [2025-02-15 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480794', 'tblTempUsageDetail_20' ) end [2025-02-15 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480794', 'tblTempVendorCDR_20' ) start [2025-02-15 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480794', 'tblTempVendorCDR_20' ) end [2025-02-15 11:32:20] Production.INFO: ProcessCDR(1,14480794,1,1,2) [2025-02-15 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480794', 'tblTempUsageDetail_20' ) start [2025-02-15 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480794', 'tblTempUsageDetail_20' ) end [2025-02-15 11:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:32:25] Production.INFO: ==7063== Releasing lock... [2025-02-15 11:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:32:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 11:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:33:04 [end_date_ymd] => 2025-02-15 11:33:04 [RateCDR] => 1 ) [2025-02-15 11: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-15 08:33:04' and `end` < '2025-02-15 11: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-15 11:33:18] Production.INFO: count ==2331 [2025-02-15 11:33:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:33:04 - End Time 2025-02-15 11:33:04 [2025-02-15 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480799', 'tblTempUsageDetail_20' ) start [2025-02-15 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480799', 'tblTempUsageDetail_20' ) end [2025-02-15 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480799', 'tblTempVendorCDR_20' ) start [2025-02-15 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480799', 'tblTempVendorCDR_20' ) end [2025-02-15 11:33:19] Production.INFO: ProcessCDR(1,14480799,1,1,2) [2025-02-15 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480799', 'tblTempUsageDetail_20' ) start [2025-02-15 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480799', 'tblTempUsageDetail_20' ) end [2025-02-15 11:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:33:24] Production.INFO: ==7142== Releasing lock... [2025-02-15 11:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:33:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:34:05 [end_date_ymd] => 2025-02-15 11:34:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:34:05' and `end` < '2025-02-15 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-15 11:34:19] Production.INFO: count ==2332 [2025-02-15 11:34:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:34:05 - End Time 2025-02-15 11:34:05 [2025-02-15 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480804', 'tblTempUsageDetail_20' ) start [2025-02-15 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480804', 'tblTempUsageDetail_20' ) end [2025-02-15 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480804', 'tblTempVendorCDR_20' ) start [2025-02-15 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480804', 'tblTempVendorCDR_20' ) end [2025-02-15 11:34:20] Production.INFO: ProcessCDR(1,14480804,1,1,2) [2025-02-15 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480804', 'tblTempUsageDetail_20' ) start [2025-02-15 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480804', 'tblTempUsageDetail_20' ) end [2025-02-15 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:34:25] Production.INFO: ==7220== Releasing lock... [2025-02-15 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:34:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:35:05 [end_date_ymd] => 2025-02-15 11:35:05 [RateCDR] => 1 ) [2025-02-15 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:35:05' and `end` < '2025-02-15 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:35:18] Production.INFO: count ==2333 [2025-02-15 11:35:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:35:05 - End Time 2025-02-15 11:35:05 [2025-02-15 11:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480809', 'tblTempUsageDetail_20' ) start [2025-02-15 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480809', 'tblTempUsageDetail_20' ) end [2025-02-15 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480809', 'tblTempVendorCDR_20' ) start [2025-02-15 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480809', 'tblTempVendorCDR_20' ) end [2025-02-15 11:35:19] Production.INFO: ProcessCDR(1,14480809,1,1,2) [2025-02-15 11:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480809', 'tblTempUsageDetail_20' ) start [2025-02-15 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480809', 'tblTempUsageDetail_20' ) end [2025-02-15 11:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:35:24] Production.INFO: ==7300== Releasing lock... [2025-02-15 11:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:35:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:36:05 [end_date_ymd] => 2025-02-15 11:36:05 [RateCDR] => 1 ) [2025-02-15 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:36:05' and `end` < '2025-02-15 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:36:19] Production.INFO: count ==2327 [2025-02-15 11:36:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:36:05 - End Time 2025-02-15 11:36:05 [2025-02-15 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480814', 'tblTempUsageDetail_20' ) start [2025-02-15 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480814', 'tblTempUsageDetail_20' ) end [2025-02-15 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480814', 'tblTempVendorCDR_20' ) start [2025-02-15 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480814', 'tblTempVendorCDR_20' ) end [2025-02-15 11:36:20] Production.INFO: ProcessCDR(1,14480814,1,1,2) [2025-02-15 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480814', 'tblTempUsageDetail_20' ) start [2025-02-15 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480814', 'tblTempUsageDetail_20' ) end [2025-02-15 11:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:36:23] Production.INFO: ==7380== Releasing lock... [2025-02-15 11:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:36:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:37:05 [end_date_ymd] => 2025-02-15 11:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:37:05' and `end` < '2025-02-15 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-15 11:37:19] Production.INFO: count ==2328 [2025-02-15 11:37:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:37:05 - End Time 2025-02-15 11:37:05 [2025-02-15 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480819', 'tblTempUsageDetail_20' ) start [2025-02-15 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480819', 'tblTempUsageDetail_20' ) end [2025-02-15 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480819', 'tblTempVendorCDR_20' ) start [2025-02-15 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480819', 'tblTempVendorCDR_20' ) end [2025-02-15 11:37:20] Production.INFO: ProcessCDR(1,14480819,1,1,2) [2025-02-15 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480819', 'tblTempUsageDetail_20' ) start [2025-02-15 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480819', 'tblTempUsageDetail_20' ) end [2025-02-15 11:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:37:23] Production.INFO: ==7492== Releasing lock... [2025-02-15 11:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:37:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:38:05 [end_date_ymd] => 2025-02-15 11:38:05 [RateCDR] => 1 ) [2025-02-15 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:38:05' and `end` < '2025-02-15 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:38:19] Production.INFO: count ==2332 [2025-02-15 11:38:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:38:05 - End Time 2025-02-15 11:38:05 [2025-02-15 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480824', 'tblTempUsageDetail_20' ) start [2025-02-15 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480824', 'tblTempUsageDetail_20' ) end [2025-02-15 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480824', 'tblTempVendorCDR_20' ) start [2025-02-15 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480824', 'tblTempVendorCDR_20' ) end [2025-02-15 11:38:20] Production.INFO: ProcessCDR(1,14480824,1,1,2) [2025-02-15 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480824', 'tblTempUsageDetail_20' ) start [2025-02-15 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480824', 'tblTempUsageDetail_20' ) end [2025-02-15 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:38:25] Production.INFO: ==7568== Releasing lock... [2025-02-15 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:38:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:39:06 [end_date_ymd] => 2025-02-15 11:39:06 [RateCDR] => 1 ) [2025-02-15 11: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-15 08:39:06' and `end` < '2025-02-15 11: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-15 11:39:23] Production.INFO: count ==2325 [2025-02-15 11:39:24] Production.ERROR: pbx CDR StartTime 2025-02-15 08:39:06 - End Time 2025-02-15 11:39:06 [2025-02-15 11:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480829', 'tblTempUsageDetail_20' ) start [2025-02-15 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480829', 'tblTempUsageDetail_20' ) end [2025-02-15 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480829', 'tblTempVendorCDR_20' ) start [2025-02-15 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480829', 'tblTempVendorCDR_20' ) end [2025-02-15 11:39:24] Production.INFO: ProcessCDR(1,14480829,1,1,2) [2025-02-15 11:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480829', 'tblTempUsageDetail_20' ) start [2025-02-15 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480829', 'tblTempUsageDetail_20' ) end [2025-02-15 11:39:28] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:39:28] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:39:28] Production.INFO: ==7645== Releasing lock... [2025-02-15 11:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:39:28] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:40:06 [end_date_ymd] => 2025-02-15 11:40:06 [RateCDR] => 1 ) [2025-02-15 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-15 08:40:06' and `end` < '2025-02-15 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-15 11:40:19] Production.INFO: count ==2326 [2025-02-15 11:40:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:40:06 - End Time 2025-02-15 11:40:06 [2025-02-15 11:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480834', 'tblTempUsageDetail_20' ) start [2025-02-15 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480834', 'tblTempUsageDetail_20' ) end [2025-02-15 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480834', 'tblTempVendorCDR_20' ) start [2025-02-15 11:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480834', 'tblTempVendorCDR_20' ) end [2025-02-15 11:40:20] Production.INFO: ProcessCDR(1,14480834,1,1,2) [2025-02-15 11:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480834', 'tblTempUsageDetail_20' ) start [2025-02-15 11:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480834', 'tblTempUsageDetail_20' ) end [2025-02-15 11:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:40:25] Production.INFO: ==7723== Releasing lock... [2025-02-15 11:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:40:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:41:06 [end_date_ymd] => 2025-02-15 11:41:06 [RateCDR] => 1 ) [2025-02-15 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:41:06' and `end` < '2025-02-15 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:41:19] Production.INFO: count ==2358 [2025-02-15 11:41:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:41:06 - End Time 2025-02-15 11:41:06 [2025-02-15 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480840', 'tblTempUsageDetail_20' ) start [2025-02-15 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480840', 'tblTempUsageDetail_20' ) end [2025-02-15 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480840', 'tblTempVendorCDR_20' ) start [2025-02-15 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480840', 'tblTempVendorCDR_20' ) end [2025-02-15 11:41:20] Production.INFO: ProcessCDR(1,14480840,1,1,2) [2025-02-15 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480840', 'tblTempUsageDetail_20' ) start [2025-02-15 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480840', 'tblTempUsageDetail_20' ) end [2025-02-15 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:41:25] Production.INFO: ==7804== Releasing lock... [2025-02-15 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:41:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:42:05 [end_date_ymd] => 2025-02-15 11:42:05 [RateCDR] => 1 ) [2025-02-15 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:42:05' and `end` < '2025-02-15 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:42:19] Production.INFO: count ==2366 [2025-02-15 11:42:21] Production.ERROR: pbx CDR StartTime 2025-02-15 08:42:05 - End Time 2025-02-15 11:42:05 [2025-02-15 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480845', 'tblTempUsageDetail_20' ) start [2025-02-15 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480845', 'tblTempUsageDetail_20' ) end [2025-02-15 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480845', 'tblTempVendorCDR_20' ) start [2025-02-15 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480845', 'tblTempVendorCDR_20' ) end [2025-02-15 11:42:21] Production.INFO: ProcessCDR(1,14480845,1,1,2) [2025-02-15 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480845', 'tblTempUsageDetail_20' ) start [2025-02-15 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480845', 'tblTempUsageDetail_20' ) end [2025-02-15 11:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:42:24] Production.INFO: ==7875== Releasing lock... [2025-02-15 11:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:42:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:43:06 [end_date_ymd] => 2025-02-15 11:43:06 [RateCDR] => 1 ) [2025-02-15 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:43:06' and `end` < '2025-02-15 11:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:43:20] Production.INFO: count ==2366 [2025-02-15 11:43:21] Production.ERROR: pbx CDR StartTime 2025-02-15 08:43:06 - End Time 2025-02-15 11:43:06 [2025-02-15 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480850', 'tblTempUsageDetail_20' ) start [2025-02-15 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480850', 'tblTempUsageDetail_20' ) end [2025-02-15 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480850', 'tblTempVendorCDR_20' ) start [2025-02-15 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480850', 'tblTempVendorCDR_20' ) end [2025-02-15 11:43:21] Production.INFO: ProcessCDR(1,14480850,1,1,2) [2025-02-15 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480850', 'tblTempUsageDetail_20' ) start [2025-02-15 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480850', 'tblTempUsageDetail_20' ) end [2025-02-15 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:43:26] Production.INFO: ==7950== Releasing lock... [2025-02-15 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:43:26] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:44:05 [end_date_ymd] => 2025-02-15 11:44:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:44:05' and `end` < '2025-02-15 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-15 11:44:19] Production.INFO: count ==2357 [2025-02-15 11:44:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:44:05 - End Time 2025-02-15 11:44:05 [2025-02-15 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480855', 'tblTempUsageDetail_20' ) start [2025-02-15 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480855', 'tblTempUsageDetail_20' ) end [2025-02-15 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480855', 'tblTempVendorCDR_20' ) start [2025-02-15 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480855', 'tblTempVendorCDR_20' ) end [2025-02-15 11:44:20] Production.INFO: ProcessCDR(1,14480855,1,1,2) [2025-02-15 11:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480855', 'tblTempUsageDetail_20' ) start [2025-02-15 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480855', 'tblTempUsageDetail_20' ) end [2025-02-15 11:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:44:25] Production.INFO: ==8026== Releasing lock... [2025-02-15 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:44:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:45:05 [end_date_ymd] => 2025-02-15 11:45:05 [RateCDR] => 1 ) [2025-02-15 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:45:05' and `end` < '2025-02-15 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-15 11:45:19] Production.INFO: count ==2350 [2025-02-15 11:45:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:45:05 - End Time 2025-02-15 11:45:05 [2025-02-15 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480860', 'tblTempUsageDetail_20' ) start [2025-02-15 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480860', 'tblTempUsageDetail_20' ) end [2025-02-15 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480860', 'tblTempVendorCDR_20' ) start [2025-02-15 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480860', 'tblTempVendorCDR_20' ) end [2025-02-15 11:45:20] Production.INFO: ProcessCDR(1,14480860,1,1,2) [2025-02-15 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480860', 'tblTempUsageDetail_20' ) start [2025-02-15 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480860', 'tblTempUsageDetail_20' ) end [2025-02-15 11:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:45:23] Production.INFO: ==8099== Releasing lock... [2025-02-15 11:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:45:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:46:05 [end_date_ymd] => 2025-02-15 11:46:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:46:05' and `end` < '2025-02-15 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-15 11:46:19] Production.INFO: count ==2349 [2025-02-15 11:46:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:46:05 - End Time 2025-02-15 11:46:05 [2025-02-15 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480865', 'tblTempUsageDetail_20' ) start [2025-02-15 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480865', 'tblTempUsageDetail_20' ) end [2025-02-15 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480865', 'tblTempVendorCDR_20' ) start [2025-02-15 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480865', 'tblTempVendorCDR_20' ) end [2025-02-15 11:46:21] Production.INFO: ProcessCDR(1,14480865,1,1,2) [2025-02-15 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480865', 'tblTempUsageDetail_20' ) start [2025-02-15 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480865', 'tblTempUsageDetail_20' ) end [2025-02-15 11:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:46:24] Production.INFO: ==8172== Releasing lock... [2025-02-15 11:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:46:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:47:05 [end_date_ymd] => 2025-02-15 11:47:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:47:05' and `end` < '2025-02-15 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-15 11:47:19] Production.INFO: count ==2364 [2025-02-15 11:47:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:47:05 - End Time 2025-02-15 11:47:05 [2025-02-15 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480870', 'tblTempUsageDetail_20' ) start [2025-02-15 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480870', 'tblTempUsageDetail_20' ) end [2025-02-15 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480870', 'tblTempVendorCDR_20' ) start [2025-02-15 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480870', 'tblTempVendorCDR_20' ) end [2025-02-15 11:47:20] Production.INFO: ProcessCDR(1,14480870,1,1,2) [2025-02-15 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480870', 'tblTempUsageDetail_20' ) start [2025-02-15 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480870', 'tblTempUsageDetail_20' ) end [2025-02-15 11:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:47:25] Production.INFO: ==8246== Releasing lock... [2025-02-15 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:47:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:48:05 [end_date_ymd] => 2025-02-15 11:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:48:05' and `end` < '2025-02-15 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-15 11:48:18] Production.INFO: count ==2369 [2025-02-15 11:48:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:48:05 - End Time 2025-02-15 11:48:05 [2025-02-15 11:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480875', 'tblTempUsageDetail_20' ) start [2025-02-15 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480875', 'tblTempUsageDetail_20' ) end [2025-02-15 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480875', 'tblTempVendorCDR_20' ) start [2025-02-15 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480875', 'tblTempVendorCDR_20' ) end [2025-02-15 11:48:19] Production.INFO: ProcessCDR(1,14480875,1,1,2) [2025-02-15 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480875', 'tblTempUsageDetail_20' ) start [2025-02-15 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480875', 'tblTempUsageDetail_20' ) end [2025-02-15 11:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:48:23] Production.INFO: ==8320== Releasing lock... [2025-02-15 11:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:48:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:49:05 [end_date_ymd] => 2025-02-15 11:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:49:05' and `end` < '2025-02-15 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-15 11:49:18] Production.INFO: count ==2368 [2025-02-15 11:49:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:49:05 - End Time 2025-02-15 11:49:05 [2025-02-15 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480880', 'tblTempUsageDetail_20' ) start [2025-02-15 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480880', 'tblTempUsageDetail_20' ) end [2025-02-15 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480880', 'tblTempVendorCDR_20' ) start [2025-02-15 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480880', 'tblTempVendorCDR_20' ) end [2025-02-15 11:49:19] Production.INFO: ProcessCDR(1,14480880,1,1,2) [2025-02-15 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480880', 'tblTempUsageDetail_20' ) start [2025-02-15 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480880', 'tblTempUsageDetail_20' ) end [2025-02-15 11:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:49:24] Production.INFO: ==8396== Releasing lock... [2025-02-15 11:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:49:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:50:05 [end_date_ymd] => 2025-02-15 11:50:05 [RateCDR] => 1 ) [2025-02-15 11: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-15 08:50:05' and `end` < '2025-02-15 11: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-15 11:50:19] Production.INFO: count ==2376 [2025-02-15 11:50:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:50:05 - End Time 2025-02-15 11:50:05 [2025-02-15 11:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480886', 'tblTempUsageDetail_20' ) start [2025-02-15 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480886', 'tblTempUsageDetail_20' ) end [2025-02-15 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480886', 'tblTempVendorCDR_20' ) start [2025-02-15 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480886', 'tblTempVendorCDR_20' ) end [2025-02-15 11:50:20] Production.INFO: ProcessCDR(1,14480886,1,1,2) [2025-02-15 11:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480886', 'tblTempUsageDetail_20' ) start [2025-02-15 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480886', 'tblTempUsageDetail_20' ) end [2025-02-15 11:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:50:25] Production.INFO: ==8473== Releasing lock... [2025-02-15 11:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:50:25] Production.INFO: 46 MB #Memory Used# [2025-02-15 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:51:05 [end_date_ymd] => 2025-02-15 11:51:05 [RateCDR] => 1 ) [2025-02-15 11: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-15 08:51:05' and `end` < '2025-02-15 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-15 11:51:19] Production.INFO: count ==2414 [2025-02-15 11:51:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:51:05 - End Time 2025-02-15 11:51:05 [2025-02-15 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480891', 'tblTempUsageDetail_20' ) start [2025-02-15 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480891', 'tblTempUsageDetail_20' ) end [2025-02-15 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480891', 'tblTempVendorCDR_20' ) start [2025-02-15 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480891', 'tblTempVendorCDR_20' ) end [2025-02-15 11:51:20] Production.INFO: ProcessCDR(1,14480891,1,1,2) [2025-02-15 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480891', 'tblTempUsageDetail_20' ) start [2025-02-15 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480891', 'tblTempUsageDetail_20' ) end [2025-02-15 11:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:51:25] Production.INFO: ==8553== Releasing lock... [2025-02-15 11:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:51:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:52:05 [end_date_ymd] => 2025-02-15 11:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:52:05' and `end` < '2025-02-15 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-15 11:52:18] Production.INFO: count ==2421 [2025-02-15 11:52:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:52:05 - End Time 2025-02-15 11:52:05 [2025-02-15 11:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480896', 'tblTempUsageDetail_20' ) start [2025-02-15 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480896', 'tblTempUsageDetail_20' ) end [2025-02-15 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480896', 'tblTempVendorCDR_20' ) start [2025-02-15 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480896', 'tblTempVendorCDR_20' ) end [2025-02-15 11:52:19] Production.INFO: ProcessCDR(1,14480896,1,1,2) [2025-02-15 11:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480896', 'tblTempUsageDetail_20' ) start [2025-02-15 11:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480896', 'tblTempUsageDetail_20' ) end [2025-02-15 11:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:52:24] Production.INFO: ==8672== Releasing lock... [2025-02-15 11:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:52:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:53:05 [end_date_ymd] => 2025-02-15 11:53:05 [RateCDR] => 1 ) [2025-02-15 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:53:05' and `end` < '2025-02-15 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:53:18] Production.INFO: count ==2425 [2025-02-15 11:53:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:53:05 - End Time 2025-02-15 11:53:05 [2025-02-15 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480901', 'tblTempUsageDetail_20' ) start [2025-02-15 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480901', 'tblTempUsageDetail_20' ) end [2025-02-15 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480901', 'tblTempVendorCDR_20' ) start [2025-02-15 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480901', 'tblTempVendorCDR_20' ) end [2025-02-15 11:53:19] Production.INFO: ProcessCDR(1,14480901,1,1,2) [2025-02-15 11:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480901', 'tblTempUsageDetail_20' ) start [2025-02-15 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480901', 'tblTempUsageDetail_20' ) end [2025-02-15 11:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:53:24] Production.INFO: ==8745== Releasing lock... [2025-02-15 11:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:53:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:54:06 [end_date_ymd] => 2025-02-15 11:54:06 [RateCDR] => 1 ) [2025-02-15 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:54:06' and `end` < '2025-02-15 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:54:19] Production.INFO: count ==2421 [2025-02-15 11:54:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:54:06 - End Time 2025-02-15 11:54:06 [2025-02-15 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480906', 'tblTempUsageDetail_20' ) start [2025-02-15 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480906', 'tblTempUsageDetail_20' ) end [2025-02-15 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480906', 'tblTempVendorCDR_20' ) start [2025-02-15 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480906', 'tblTempVendorCDR_20' ) end [2025-02-15 11:54:20] Production.INFO: ProcessCDR(1,14480906,1,1,2) [2025-02-15 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480906', 'tblTempUsageDetail_20' ) start [2025-02-15 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480906', 'tblTempUsageDetail_20' ) end [2025-02-15 11:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:54:25] Production.INFO: ==8821== Releasing lock... [2025-02-15 11:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:54:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:55:05 [end_date_ymd] => 2025-02-15 11:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:55:05' and `end` < '2025-02-15 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-15 11:55:18] Production.INFO: count ==2425 [2025-02-15 11:55:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:55:05 - End Time 2025-02-15 11:55:05 [2025-02-15 11:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480911', 'tblTempUsageDetail_20' ) start [2025-02-15 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480911', 'tblTempUsageDetail_20' ) end [2025-02-15 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480911', 'tblTempVendorCDR_20' ) start [2025-02-15 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480911', 'tblTempVendorCDR_20' ) end [2025-02-15 11:55:19] Production.INFO: ProcessCDR(1,14480911,1,1,2) [2025-02-15 11:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480911', 'tblTempUsageDetail_20' ) start [2025-02-15 11:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480911', 'tblTempUsageDetail_20' ) end [2025-02-15 11:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:55:24] Production.INFO: ==8900== Releasing lock... [2025-02-15 11:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:55:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:56:06 [end_date_ymd] => 2025-02-15 11:56:06 [RateCDR] => 1 ) [2025-02-15 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 08:56:06' and `end` < '2025-02-15 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 11:56:19] Production.INFO: count ==2436 [2025-02-15 11:56:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:56:06 - End Time 2025-02-15 11:56:06 [2025-02-15 11:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480916', 'tblTempUsageDetail_20' ) start [2025-02-15 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480916', 'tblTempUsageDetail_20' ) end [2025-02-15 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480916', 'tblTempVendorCDR_20' ) start [2025-02-15 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480916', 'tblTempVendorCDR_20' ) end [2025-02-15 11:56:20] Production.INFO: ProcessCDR(1,14480916,1,1,2) [2025-02-15 11:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480916', 'tblTempUsageDetail_20' ) start [2025-02-15 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480916', 'tblTempUsageDetail_20' ) end [2025-02-15 11:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:56:25] Production.INFO: ==8974== Releasing lock... [2025-02-15 11:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:56:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:57:05 [end_date_ymd] => 2025-02-15 11:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:57:05' and `end` < '2025-02-15 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-15 11:57:19] Production.INFO: count ==2443 [2025-02-15 11:57:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:57:05 - End Time 2025-02-15 11:57:05 [2025-02-15 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480921', 'tblTempUsageDetail_20' ) start [2025-02-15 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480921', 'tblTempUsageDetail_20' ) end [2025-02-15 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480921', 'tblTempVendorCDR_20' ) start [2025-02-15 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480921', 'tblTempVendorCDR_20' ) end [2025-02-15 11:57:20] Production.INFO: ProcessCDR(1,14480921,1,1,2) [2025-02-15 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480921', 'tblTempUsageDetail_20' ) start [2025-02-15 11:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480921', 'tblTempUsageDetail_20' ) end [2025-02-15 11:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:57:25] Production.INFO: ==9049== Releasing lock... [2025-02-15 11:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:57:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:58:05 [end_date_ymd] => 2025-02-15 11:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:58:05' and `end` < '2025-02-15 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-15 11:58:19] Production.INFO: count ==2449 [2025-02-15 11:58:20] Production.ERROR: pbx CDR StartTime 2025-02-15 08:58:05 - End Time 2025-02-15 11:58:05 [2025-02-15 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480926', 'tblTempUsageDetail_20' ) start [2025-02-15 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480926', 'tblTempUsageDetail_20' ) end [2025-02-15 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480926', 'tblTempVendorCDR_20' ) start [2025-02-15 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480926', 'tblTempVendorCDR_20' ) end [2025-02-15 11:58:20] Production.INFO: ProcessCDR(1,14480926,1,1,2) [2025-02-15 11:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480926', 'tblTempUsageDetail_20' ) start [2025-02-15 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480926', 'tblTempUsageDetail_20' ) end [2025-02-15 11:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:58:25] Production.INFO: ==9121== Releasing lock... [2025-02-15 11:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:58:25] Production.INFO: 46.75 MB #Memory Used# [2025-02-15 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 08:59:05 [end_date_ymd] => 2025-02-15 11:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 08:59:05' and `end` < '2025-02-15 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-15 11:59:18] Production.INFO: count ==2452 [2025-02-15 11:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 08:59:05 - End Time 2025-02-15 11:59:05 [2025-02-15 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480931', 'tblTempUsageDetail_20' ) start [2025-02-15 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480931', 'tblTempUsageDetail_20' ) end [2025-02-15 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480931', 'tblTempVendorCDR_20' ) start [2025-02-15 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480931', 'tblTempVendorCDR_20' ) end [2025-02-15 11:59:19] Production.INFO: ProcessCDR(1,14480931,1,1,2) [2025-02-15 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 11:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480931', 'tblTempUsageDetail_20' ) start [2025-02-15 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480931', 'tblTempUsageDetail_20' ) end [2025-02-15 11:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 11:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 11:59:24] Production.INFO: ==9195== Releasing lock... [2025-02-15 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 11:59:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:00:06 [end_date_ymd] => 2025-02-15 12:00:06 [RateCDR] => 1 ) [2025-02-15 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:00:06' and `end` < '2025-02-15 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:00:20] Production.INFO: count ==2457 [2025-02-15 12:00:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:00:06 - End Time 2025-02-15 12:00:06 [2025-02-15 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480937', 'tblTempUsageDetail_20' ) start [2025-02-15 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480937', 'tblTempUsageDetail_20' ) end [2025-02-15 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480937', 'tblTempVendorCDR_20' ) start [2025-02-15 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480937', 'tblTempVendorCDR_20' ) end [2025-02-15 12:00:21] Production.INFO: ProcessCDR(1,14480937,1,1,2) [2025-02-15 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480937', 'tblTempUsageDetail_20' ) start [2025-02-15 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480937', 'tblTempUsageDetail_20' ) end [2025-02-15 12:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:00:26] Production.INFO: ==9273== Releasing lock... [2025-02-15 12:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:00:26] Production.INFO: 46.75 MB #Memory Used# [2025-02-15 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:01:05 [end_date_ymd] => 2025-02-15 12:01:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:01:05' and `end` < '2025-02-15 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-15 12:01:19] Production.INFO: count ==2486 [2025-02-15 12:01:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:01:05 - End Time 2025-02-15 12:01:05 [2025-02-15 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480942', 'tblTempUsageDetail_20' ) start [2025-02-15 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480942', 'tblTempUsageDetail_20' ) end [2025-02-15 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480942', 'tblTempVendorCDR_20' ) start [2025-02-15 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480942', 'tblTempVendorCDR_20' ) end [2025-02-15 12:01:21] Production.INFO: ProcessCDR(1,14480942,1,1,2) [2025-02-15 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480942', 'tblTempUsageDetail_20' ) start [2025-02-15 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480942', 'tblTempUsageDetail_20' ) end [2025-02-15 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:01:26] Production.INFO: ==9357== Releasing lock... [2025-02-15 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:01:26] Production.INFO: 46.75 MB #Memory Used# [2025-02-15 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:02:05 [end_date_ymd] => 2025-02-15 12:02:05 [RateCDR] => 1 ) [2025-02-15 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:02:05' and `end` < '2025-02-15 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:02:19] Production.INFO: count ==2486 [2025-02-15 12:02:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:02:05 - End Time 2025-02-15 12:02:05 [2025-02-15 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480947', 'tblTempUsageDetail_20' ) start [2025-02-15 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480947', 'tblTempUsageDetail_20' ) end [2025-02-15 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480947', 'tblTempVendorCDR_20' ) start [2025-02-15 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480947', 'tblTempVendorCDR_20' ) end [2025-02-15 12:02:20] Production.INFO: ProcessCDR(1,14480947,1,1,2) [2025-02-15 12:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480947', 'tblTempUsageDetail_20' ) start [2025-02-15 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480947', 'tblTempUsageDetail_20' ) end [2025-02-15 12:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:02:23] Production.INFO: ==9431== Releasing lock... [2025-02-15 12:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:02:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-15 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:03:05 [end_date_ymd] => 2025-02-15 12:03:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:03:05' and `end` < '2025-02-15 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-15 12:03:18] Production.INFO: count ==2477 [2025-02-15 12:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:03:05 - End Time 2025-02-15 12:03:05 [2025-02-15 12:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480952', 'tblTempUsageDetail_20' ) start [2025-02-15 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480952', 'tblTempUsageDetail_20' ) end [2025-02-15 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480952', 'tblTempVendorCDR_20' ) start [2025-02-15 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480952', 'tblTempVendorCDR_20' ) end [2025-02-15 12:03:20] Production.INFO: ProcessCDR(1,14480952,1,1,2) [2025-02-15 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480952', 'tblTempUsageDetail_20' ) start [2025-02-15 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480952', 'tblTempUsageDetail_20' ) end [2025-02-15 12:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:03:25] Production.INFO: ==9505== Releasing lock... [2025-02-15 12:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:03:25] Production.INFO: 46.75 MB #Memory Used# [2025-02-15 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:04:05 [end_date_ymd] => 2025-02-15 12:04:05 [RateCDR] => 1 ) [2025-02-15 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:04:05' and `end` < '2025-02-15 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:04:19] Production.INFO: count ==2461 [2025-02-15 12:04:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:04:05 - End Time 2025-02-15 12:04:05 [2025-02-15 12:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480957', 'tblTempUsageDetail_20' ) start [2025-02-15 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480957', 'tblTempUsageDetail_20' ) end [2025-02-15 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480957', 'tblTempVendorCDR_20' ) start [2025-02-15 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480957', 'tblTempVendorCDR_20' ) end [2025-02-15 12:04:20] Production.INFO: ProcessCDR(1,14480957,1,1,2) [2025-02-15 12:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480957', 'tblTempUsageDetail_20' ) start [2025-02-15 12:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480957', 'tblTempUsageDetail_20' ) end [2025-02-15 12:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:04:25] Production.INFO: ==9580== Releasing lock... [2025-02-15 12:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:04:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:05:05 [end_date_ymd] => 2025-02-15 12:05:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:05:05' and `end` < '2025-02-15 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-15 12:05:19] Production.INFO: count ==2446 [2025-02-15 12:05:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:05:05 - End Time 2025-02-15 12:05:05 [2025-02-15 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480962', 'tblTempUsageDetail_20' ) start [2025-02-15 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480962', 'tblTempUsageDetail_20' ) end [2025-02-15 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480962', 'tblTempVendorCDR_20' ) start [2025-02-15 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480962', 'tblTempVendorCDR_20' ) end [2025-02-15 12:05:20] Production.INFO: ProcessCDR(1,14480962,1,1,2) [2025-02-15 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480962', 'tblTempUsageDetail_20' ) start [2025-02-15 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480962', 'tblTempUsageDetail_20' ) end [2025-02-15 12:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:05:25] Production.INFO: ==9652== Releasing lock... [2025-02-15 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:05:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:06:05 [end_date_ymd] => 2025-02-15 12:06:05 [RateCDR] => 1 ) [2025-02-15 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:06:05' and `end` < '2025-02-15 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:06:18] Production.INFO: count ==2446 [2025-02-15 12:06:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:06:05 - End Time 2025-02-15 12:06:05 [2025-02-15 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480967', 'tblTempUsageDetail_20' ) start [2025-02-15 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480967', 'tblTempUsageDetail_20' ) end [2025-02-15 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480967', 'tblTempVendorCDR_20' ) start [2025-02-15 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480967', 'tblTempVendorCDR_20' ) end [2025-02-15 12:06:20] Production.INFO: ProcessCDR(1,14480967,1,1,2) [2025-02-15 12:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480967', 'tblTempUsageDetail_20' ) start [2025-02-15 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480967', 'tblTempUsageDetail_20' ) end [2025-02-15 12:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:06:24] Production.INFO: ==9723== Releasing lock... [2025-02-15 12:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:06:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:07:06 [end_date_ymd] => 2025-02-15 12:07:06 [RateCDR] => 1 ) [2025-02-15 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:07:06' and `end` < '2025-02-15 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:07:19] Production.INFO: count ==2450 [2025-02-15 12:07:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:07:06 - End Time 2025-02-15 12:07:06 [2025-02-15 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480972', 'tblTempUsageDetail_20' ) start [2025-02-15 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480972', 'tblTempUsageDetail_20' ) end [2025-02-15 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480972', 'tblTempVendorCDR_20' ) start [2025-02-15 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480972', 'tblTempVendorCDR_20' ) end [2025-02-15 12:07:20] Production.INFO: ProcessCDR(1,14480972,1,1,2) [2025-02-15 12:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480972', 'tblTempUsageDetail_20' ) start [2025-02-15 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480972', 'tblTempUsageDetail_20' ) end [2025-02-15 12:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:07:25] Production.INFO: ==9798== Releasing lock... [2025-02-15 12:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:07:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:08:06 [end_date_ymd] => 2025-02-15 12:08:06 [RateCDR] => 1 ) [2025-02-15 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:08:06' and `end` < '2025-02-15 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:08:19] Production.INFO: count ==2445 [2025-02-15 12:08:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:08:06 - End Time 2025-02-15 12:08:06 [2025-02-15 12:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480977', 'tblTempUsageDetail_20' ) start [2025-02-15 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480977', 'tblTempUsageDetail_20' ) end [2025-02-15 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480977', 'tblTempVendorCDR_20' ) start [2025-02-15 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480977', 'tblTempVendorCDR_20' ) end [2025-02-15 12:08:20] Production.INFO: ProcessCDR(1,14480977,1,1,2) [2025-02-15 12:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480977', 'tblTempUsageDetail_20' ) start [2025-02-15 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480977', 'tblTempUsageDetail_20' ) end [2025-02-15 12:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:08:25] Production.INFO: ==9913== Releasing lock... [2025-02-15 12:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:08:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:09:06 [end_date_ymd] => 2025-02-15 12:09:06 [RateCDR] => 1 ) [2025-02-15 12:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:09:06' and `end` < '2025-02-15 12:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:09:19] Production.INFO: count ==2444 [2025-02-15 12:09:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:09:06 - End Time 2025-02-15 12:09:06 [2025-02-15 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480982', 'tblTempUsageDetail_20' ) start [2025-02-15 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480982', 'tblTempUsageDetail_20' ) end [2025-02-15 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480982', 'tblTempVendorCDR_20' ) start [2025-02-15 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480982', 'tblTempVendorCDR_20' ) end [2025-02-15 12:09:20] Production.INFO: ProcessCDR(1,14480982,1,1,2) [2025-02-15 12:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480982', 'tblTempUsageDetail_20' ) start [2025-02-15 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480982', 'tblTempUsageDetail_20' ) end [2025-02-15 12:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:09:25] Production.INFO: ==9989== Releasing lock... [2025-02-15 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:09:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:10:06 [end_date_ymd] => 2025-02-15 12:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 09:10:06' and `end` < '2025-02-15 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-15 12:10:20] Production.INFO: count ==2441 [2025-02-15 12:10:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:10:06 - End Time 2025-02-15 12:10:06 [2025-02-15 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480987', 'tblTempUsageDetail_20' ) start [2025-02-15 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480987', 'tblTempUsageDetail_20' ) end [2025-02-15 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480987', 'tblTempVendorCDR_20' ) start [2025-02-15 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480987', 'tblTempVendorCDR_20' ) end [2025-02-15 12:10:21] Production.INFO: ProcessCDR(1,14480987,1,1,2) [2025-02-15 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480987', 'tblTempUsageDetail_20' ) start [2025-02-15 12:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480987', 'tblTempUsageDetail_20' ) end [2025-02-15 12:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:10:25] Production.INFO: ==10064== Releasing lock... [2025-02-15 12:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:10:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:11:06 [end_date_ymd] => 2025-02-15 12:11:06 [RateCDR] => 1 ) [2025-02-15 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-15 09:11:06' and `end` < '2025-02-15 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-15 12:11:19] Production.INFO: count ==2463 [2025-02-15 12:11:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:11:06 - End Time 2025-02-15 12:11:06 [2025-02-15 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480993', 'tblTempUsageDetail_20' ) start [2025-02-15 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480993', 'tblTempUsageDetail_20' ) end [2025-02-15 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480993', 'tblTempVendorCDR_20' ) start [2025-02-15 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480993', 'tblTempVendorCDR_20' ) end [2025-02-15 12:11:20] Production.INFO: ProcessCDR(1,14480993,1,1,2) [2025-02-15 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480993', 'tblTempUsageDetail_20' ) start [2025-02-15 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480993', 'tblTempUsageDetail_20' ) end [2025-02-15 12:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:11:24] Production.INFO: ==10140== Releasing lock... [2025-02-15 12:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:11:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:12:05 [end_date_ymd] => 2025-02-15 12:12:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:12:05' and `end` < '2025-02-15 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:12:19] Production.INFO: count ==2451 [2025-02-15 12:12:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:12:05 - End Time 2025-02-15 12:12:05 [2025-02-15 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480998', 'tblTempUsageDetail_20' ) start [2025-02-15 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14480998', 'tblTempUsageDetail_20' ) end [2025-02-15 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480998', 'tblTempVendorCDR_20' ) start [2025-02-15 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14480998', 'tblTempVendorCDR_20' ) end [2025-02-15 12:12:20] Production.INFO: ProcessCDR(1,14480998,1,1,2) [2025-02-15 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14480998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14480998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14480998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14480998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480998', 'tblTempUsageDetail_20' ) start [2025-02-15 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14480998', 'tblTempUsageDetail_20' ) end [2025-02-15 12:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:12:24] Production.INFO: ==10208== Releasing lock... [2025-02-15 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:12:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:13:06 [end_date_ymd] => 2025-02-15 12:13:06 [RateCDR] => 1 ) [2025-02-15 12:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:13:06' and `end` < '2025-02-15 12:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:13:19] Production.INFO: count ==2452 [2025-02-15 12:13:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:13:06 - End Time 2025-02-15 12:13:06 [2025-02-15 12:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481003', 'tblTempUsageDetail_20' ) start [2025-02-15 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481003', 'tblTempUsageDetail_20' ) end [2025-02-15 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481003', 'tblTempVendorCDR_20' ) start [2025-02-15 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481003', 'tblTempVendorCDR_20' ) end [2025-02-15 12:13:20] Production.INFO: ProcessCDR(1,14481003,1,1,2) [2025-02-15 12:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481003', 'tblTempUsageDetail_20' ) start [2025-02-15 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481003', 'tblTempUsageDetail_20' ) end [2025-02-15 12:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:13:25] Production.INFO: ==10281== Releasing lock... [2025-02-15 12:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:13:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:14:05 [end_date_ymd] => 2025-02-15 12:14:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:14:05' and `end` < '2025-02-15 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-15 12:14:19] Production.INFO: count ==2441 [2025-02-15 12:14:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:14:05 - End Time 2025-02-15 12:14:05 [2025-02-15 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481008', 'tblTempUsageDetail_20' ) start [2025-02-15 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481008', 'tblTempUsageDetail_20' ) end [2025-02-15 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481008', 'tblTempVendorCDR_20' ) start [2025-02-15 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481008', 'tblTempVendorCDR_20' ) end [2025-02-15 12:14:20] Production.INFO: ProcessCDR(1,14481008,1,1,2) [2025-02-15 12:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481008', 'tblTempUsageDetail_20' ) start [2025-02-15 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481008', 'tblTempUsageDetail_20' ) end [2025-02-15 12:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:14:25] Production.INFO: ==10357== Releasing lock... [2025-02-15 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:14:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:15:05 [end_date_ymd] => 2025-02-15 12:15:05 [RateCDR] => 1 ) [2025-02-15 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:15:05' and `end` < '2025-02-15 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:15:19] Production.INFO: count ==2343 [2025-02-15 12:15:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:15:05 - End Time 2025-02-15 12:15:05 [2025-02-15 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481013', 'tblTempUsageDetail_20' ) start [2025-02-15 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481013', 'tblTempUsageDetail_20' ) end [2025-02-15 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481013', 'tblTempVendorCDR_20' ) start [2025-02-15 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481013', 'tblTempVendorCDR_20' ) end [2025-02-15 12:15:20] Production.INFO: ProcessCDR(1,14481013,1,1,2) [2025-02-15 12:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481013', 'tblTempUsageDetail_20' ) start [2025-02-15 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481013', 'tblTempUsageDetail_20' ) end [2025-02-15 12:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:15:25] Production.INFO: ==10433== Releasing lock... [2025-02-15 12:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:15:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:16:05 [end_date_ymd] => 2025-02-15 12:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:16:05' and `end` < '2025-02-15 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-15 12:16:18] Production.INFO: count ==2336 [2025-02-15 12:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:16:05 - End Time 2025-02-15 12:16:05 [2025-02-15 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481018', 'tblTempUsageDetail_20' ) start [2025-02-15 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481018', 'tblTempUsageDetail_20' ) end [2025-02-15 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481018', 'tblTempVendorCDR_20' ) start [2025-02-15 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481018', 'tblTempVendorCDR_20' ) end [2025-02-15 12:16:19] Production.INFO: ProcessCDR(1,14481018,1,1,2) [2025-02-15 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481018', 'tblTempUsageDetail_20' ) start [2025-02-15 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481018', 'tblTempUsageDetail_20' ) end [2025-02-15 12:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:16:24] Production.INFO: ==10503== Releasing lock... [2025-02-15 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:16:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:17:05 [end_date_ymd] => 2025-02-15 12:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:17:05' and `end` < '2025-02-15 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-15 12:17:19] Production.INFO: count ==2337 [2025-02-15 12:17:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:17:05 - End Time 2025-02-15 12:17:05 [2025-02-15 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481023', 'tblTempUsageDetail_20' ) start [2025-02-15 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481023', 'tblTempUsageDetail_20' ) end [2025-02-15 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481023', 'tblTempVendorCDR_20' ) start [2025-02-15 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481023', 'tblTempVendorCDR_20' ) end [2025-02-15 12:17:20] Production.INFO: ProcessCDR(1,14481023,1,1,2) [2025-02-15 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481023', 'tblTempUsageDetail_20' ) start [2025-02-15 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481023', 'tblTempUsageDetail_20' ) end [2025-02-15 12:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:17:25] Production.INFO: ==10574== Releasing lock... [2025-02-15 12:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:17:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:18:05 [end_date_ymd] => 2025-02-15 12:18:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:18:05' and `end` < '2025-02-15 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-15 12:18:18] Production.INFO: count ==2329 [2025-02-15 12:18:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:18:05 - End Time 2025-02-15 12:18:05 [2025-02-15 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481028', 'tblTempUsageDetail_20' ) start [2025-02-15 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481028', 'tblTempUsageDetail_20' ) end [2025-02-15 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481028', 'tblTempVendorCDR_20' ) start [2025-02-15 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481028', 'tblTempVendorCDR_20' ) end [2025-02-15 12:18:20] Production.INFO: ProcessCDR(1,14481028,1,1,2) [2025-02-15 12:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481028', 'tblTempUsageDetail_20' ) start [2025-02-15 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481028', 'tblTempUsageDetail_20' ) end [2025-02-15 12:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:18:23] Production.INFO: ==10655== Releasing lock... [2025-02-15 12:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:18:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:19:05 [end_date_ymd] => 2025-02-15 12:19:05 [RateCDR] => 1 ) [2025-02-15 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:19:05' and `end` < '2025-02-15 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:19:19] Production.INFO: count ==2288 [2025-02-15 12:19:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:19:05 - End Time 2025-02-15 12:19:05 [2025-02-15 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481033', 'tblTempUsageDetail_20' ) start [2025-02-15 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481033', 'tblTempUsageDetail_20' ) end [2025-02-15 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481033', 'tblTempVendorCDR_20' ) start [2025-02-15 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481033', 'tblTempVendorCDR_20' ) end [2025-02-15 12:19:20] Production.INFO: ProcessCDR(1,14481033,1,1,2) [2025-02-15 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481033', 'tblTempUsageDetail_20' ) start [2025-02-15 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481033', 'tblTempUsageDetail_20' ) end [2025-02-15 12:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:19:25] Production.INFO: ==10728== Releasing lock... [2025-02-15 12:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:19:25] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:20:05 [end_date_ymd] => 2025-02-15 12:20:05 [RateCDR] => 1 ) [2025-02-15 12:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:20:05' and `end` < '2025-02-15 12:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:20:19] Production.INFO: count ==2172 [2025-02-15 12:20:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:20:05 - End Time 2025-02-15 12:20:05 [2025-02-15 12:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481039', 'tblTempUsageDetail_20' ) start [2025-02-15 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481039', 'tblTempUsageDetail_20' ) end [2025-02-15 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481039', 'tblTempVendorCDR_20' ) start [2025-02-15 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481039', 'tblTempVendorCDR_20' ) end [2025-02-15 12:20:20] Production.INFO: ProcessCDR(1,14481039,1,1,2) [2025-02-15 12:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481039', 'tblTempUsageDetail_20' ) start [2025-02-15 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481039', 'tblTempUsageDetail_20' ) end [2025-02-15 12:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:20:25] Production.INFO: ==10799== Releasing lock... [2025-02-15 12:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:20:25] Production.INFO: 44.25 MB #Memory Used# [2025-02-15 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:21:05 [end_date_ymd] => 2025-02-15 12:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:21:05' and `end` < '2025-02-15 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-15 12:21:20] Production.INFO: count ==2167 [2025-02-15 12:21:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:21:05 - End Time 2025-02-15 12:21:05 [2025-02-15 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481044', 'tblTempUsageDetail_20' ) start [2025-02-15 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481044', 'tblTempUsageDetail_20' ) end [2025-02-15 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481044', 'tblTempVendorCDR_20' ) start [2025-02-15 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481044', 'tblTempVendorCDR_20' ) end [2025-02-15 12:21:21] Production.INFO: ProcessCDR(1,14481044,1,1,2) [2025-02-15 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481044', 'tblTempUsageDetail_20' ) start [2025-02-15 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481044', 'tblTempUsageDetail_20' ) end [2025-02-15 12:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:21:24] Production.INFO: ==10875== Releasing lock... [2025-02-15 12:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:21:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-15 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:22:06 [end_date_ymd] => 2025-02-15 12:22:06 [RateCDR] => 1 ) [2025-02-15 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:22:06' and `end` < '2025-02-15 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:22:19] Production.INFO: count ==2176 [2025-02-15 12:22:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:22:06 - End Time 2025-02-15 12:22:06 [2025-02-15 12:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481049', 'tblTempUsageDetail_20' ) start [2025-02-15 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481049', 'tblTempUsageDetail_20' ) end [2025-02-15 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481049', 'tblTempVendorCDR_20' ) start [2025-02-15 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481049', 'tblTempVendorCDR_20' ) end [2025-02-15 12:22:20] Production.INFO: ProcessCDR(1,14481049,1,1,2) [2025-02-15 12:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481049', 'tblTempUsageDetail_20' ) start [2025-02-15 12:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481049', 'tblTempUsageDetail_20' ) end [2025-02-15 12:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:22:24] Production.INFO: ==10962== Releasing lock... [2025-02-15 12:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:22:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-15 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:23:05 [end_date_ymd] => 2025-02-15 12:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:23:05' and `end` < '2025-02-15 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-15 12:23:19] Production.INFO: count ==2098 [2025-02-15 12:23:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:23:05 - End Time 2025-02-15 12:23:05 [2025-02-15 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481054', 'tblTempUsageDetail_20' ) start [2025-02-15 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481054', 'tblTempUsageDetail_20' ) end [2025-02-15 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481054', 'tblTempVendorCDR_20' ) start [2025-02-15 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481054', 'tblTempVendorCDR_20' ) end [2025-02-15 12:23:20] Production.INFO: ProcessCDR(1,14481054,1,1,2) [2025-02-15 12:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481054', 'tblTempUsageDetail_20' ) start [2025-02-15 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481054', 'tblTempUsageDetail_20' ) end [2025-02-15 12:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:23:25] Production.INFO: ==11101== Releasing lock... [2025-02-15 12:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:23:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-15 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:24:06 [end_date_ymd] => 2025-02-15 12:24:06 [RateCDR] => 1 ) [2025-02-15 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:24:06' and `end` < '2025-02-15 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:24:19] Production.INFO: count ==2088 [2025-02-15 12:24:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:24:06 - End Time 2025-02-15 12:24:06 [2025-02-15 12:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481059', 'tblTempUsageDetail_20' ) start [2025-02-15 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481059', 'tblTempUsageDetail_20' ) end [2025-02-15 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481059', 'tblTempVendorCDR_20' ) start [2025-02-15 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481059', 'tblTempVendorCDR_20' ) end [2025-02-15 12:24:20] Production.INFO: ProcessCDR(1,14481059,1,1,2) [2025-02-15 12:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481059', 'tblTempUsageDetail_20' ) start [2025-02-15 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481059', 'tblTempUsageDetail_20' ) end [2025-02-15 12:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:24:25] Production.INFO: ==11201== Releasing lock... [2025-02-15 12:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:24:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-15 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:25:05 [end_date_ymd] => 2025-02-15 12:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:25:05' and `end` < '2025-02-15 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-15 12:25:19] Production.INFO: count ==2090 [2025-02-15 12:25:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:25:05 - End Time 2025-02-15 12:25:05 [2025-02-15 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481064', 'tblTempUsageDetail_20' ) start [2025-02-15 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481064', 'tblTempUsageDetail_20' ) end [2025-02-15 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481064', 'tblTempVendorCDR_20' ) start [2025-02-15 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481064', 'tblTempVendorCDR_20' ) end [2025-02-15 12:25:20] Production.INFO: ProcessCDR(1,14481064,1,1,2) [2025-02-15 12:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481064', 'tblTempUsageDetail_20' ) start [2025-02-15 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481064', 'tblTempUsageDetail_20' ) end [2025-02-15 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:25:25] Production.INFO: ==11282== Releasing lock... [2025-02-15 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:25:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-15 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:26:05 [end_date_ymd] => 2025-02-15 12:26:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:26:05' and `end` < '2025-02-15 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-15 12:26:19] Production.INFO: count ==2093 [2025-02-15 12:26:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:26:05 - End Time 2025-02-15 12:26:05 [2025-02-15 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481069', 'tblTempUsageDetail_20' ) start [2025-02-15 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481069', 'tblTempUsageDetail_20' ) end [2025-02-15 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481069', 'tblTempVendorCDR_20' ) start [2025-02-15 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481069', 'tblTempVendorCDR_20' ) end [2025-02-15 12:26:20] Production.INFO: ProcessCDR(1,14481069,1,1,2) [2025-02-15 12:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481069', 'tblTempUsageDetail_20' ) start [2025-02-15 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481069', 'tblTempUsageDetail_20' ) end [2025-02-15 12:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:26:25] Production.INFO: ==11355== Releasing lock... [2025-02-15 12:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:26:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-15 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:27:05 [end_date_ymd] => 2025-02-15 12:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:27:05' and `end` < '2025-02-15 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-15 12:27:19] Production.INFO: count ==2096 [2025-02-15 12:27:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:27:05 - End Time 2025-02-15 12:27:05 [2025-02-15 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481074', 'tblTempUsageDetail_20' ) start [2025-02-15 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481074', 'tblTempUsageDetail_20' ) end [2025-02-15 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481074', 'tblTempVendorCDR_20' ) start [2025-02-15 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481074', 'tblTempVendorCDR_20' ) end [2025-02-15 12:27:20] Production.INFO: ProcessCDR(1,14481074,1,1,2) [2025-02-15 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481074', 'tblTempUsageDetail_20' ) start [2025-02-15 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481074', 'tblTempUsageDetail_20' ) end [2025-02-15 12:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:27:25] Production.INFO: ==11427== Releasing lock... [2025-02-15 12:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:27:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-15 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:28:05 [end_date_ymd] => 2025-02-15 12:28:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:28:05' and `end` < '2025-02-15 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-15 12:28:19] Production.INFO: count ==2106 [2025-02-15 12:28:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:28:05 - End Time 2025-02-15 12:28:05 [2025-02-15 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481079', 'tblTempUsageDetail_20' ) start [2025-02-15 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481079', 'tblTempUsageDetail_20' ) end [2025-02-15 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481079', 'tblTempVendorCDR_20' ) start [2025-02-15 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481079', 'tblTempVendorCDR_20' ) end [2025-02-15 12:28:20] Production.INFO: ProcessCDR(1,14481079,1,1,2) [2025-02-15 12:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481079', 'tblTempUsageDetail_20' ) start [2025-02-15 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481079', 'tblTempUsageDetail_20' ) end [2025-02-15 12:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:28:25] Production.INFO: ==11496== Releasing lock... [2025-02-15 12:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:28:25] Production.INFO: 44 MB #Memory Used# [2025-02-15 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:29:05 [end_date_ymd] => 2025-02-15 12:29:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:29:05' and `end` < '2025-02-15 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-15 12:29:20] Production.INFO: count ==2119 [2025-02-15 12:29:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:29:05 - End Time 2025-02-15 12:29:05 [2025-02-15 12:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481084', 'tblTempUsageDetail_20' ) start [2025-02-15 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481084', 'tblTempUsageDetail_20' ) end [2025-02-15 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481084', 'tblTempVendorCDR_20' ) start [2025-02-15 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481084', 'tblTempVendorCDR_20' ) end [2025-02-15 12:29:20] Production.INFO: ProcessCDR(1,14481084,1,1,2) [2025-02-15 12:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481084', 'tblTempUsageDetail_20' ) start [2025-02-15 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481084', 'tblTempUsageDetail_20' ) end [2025-02-15 12:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:29:25] Production.INFO: ==11568== Releasing lock... [2025-02-15 12:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:29:25] Production.INFO: 44 MB #Memory Used# [2025-02-15 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:30:07 [end_date_ymd] => 2025-02-15 12:30:07 [RateCDR] => 1 ) [2025-02-15 12:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:30:07' and `end` < '2025-02-15 12:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:30:20] Production.INFO: count ==2120 [2025-02-15 12:30:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:30:07 - End Time 2025-02-15 12:30:07 [2025-02-15 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481090', 'tblTempUsageDetail_20' ) start [2025-02-15 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481090', 'tblTempUsageDetail_20' ) end [2025-02-15 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481090', 'tblTempVendorCDR_20' ) start [2025-02-15 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481090', 'tblTempVendorCDR_20' ) end [2025-02-15 12:30:21] Production.INFO: ProcessCDR(1,14481090,1,1,2) [2025-02-15 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481090', 'tblTempUsageDetail_20' ) start [2025-02-15 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481090', 'tblTempUsageDetail_20' ) end [2025-02-15 12:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:30:26] Production.INFO: ==11641== Releasing lock... [2025-02-15 12:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:30:26] Production.INFO: 44 MB #Memory Used# [2025-02-15 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:31:05 [end_date_ymd] => 2025-02-15 12:31:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:31:05' and `end` < '2025-02-15 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-15 12:31:20] Production.INFO: count ==2159 [2025-02-15 12:31:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:31:05 - End Time 2025-02-15 12:31:05 [2025-02-15 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481095', 'tblTempUsageDetail_20' ) start [2025-02-15 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481095', 'tblTempUsageDetail_20' ) end [2025-02-15 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481095', 'tblTempVendorCDR_20' ) start [2025-02-15 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481095', 'tblTempVendorCDR_20' ) end [2025-02-15 12:31:21] Production.INFO: ProcessCDR(1,14481095,1,1,2) [2025-02-15 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481095', 'tblTempUsageDetail_20' ) start [2025-02-15 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481095', 'tblTempUsageDetail_20' ) end [2025-02-15 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:31:26] Production.INFO: ==11713== Releasing lock... [2025-02-15 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:31:26] Production.INFO: 44.25 MB #Memory Used# [2025-02-15 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:32:05 [end_date_ymd] => 2025-02-15 12:32:05 [RateCDR] => 1 ) [2025-02-15 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:32:05' and `end` < '2025-02-15 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:32:19] Production.INFO: count ==2164 [2025-02-15 12:32:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:32:05 - End Time 2025-02-15 12:32:05 [2025-02-15 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481100', 'tblTempUsageDetail_20' ) start [2025-02-15 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481100', 'tblTempUsageDetail_20' ) end [2025-02-15 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481100', 'tblTempVendorCDR_20' ) start [2025-02-15 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481100', 'tblTempVendorCDR_20' ) end [2025-02-15 12:32:20] Production.INFO: ProcessCDR(1,14481100,1,1,2) [2025-02-15 12:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481100', 'tblTempUsageDetail_20' ) start [2025-02-15 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481100', 'tblTempUsageDetail_20' ) end [2025-02-15 12:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:32:25] Production.INFO: ==11783== Releasing lock... [2025-02-15 12:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:32:25] Production.INFO: 44.25 MB #Memory Used# [2025-02-15 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:33:05 [end_date_ymd] => 2025-02-15 12:33:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:33:05' and `end` < '2025-02-15 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-15 12:33:20] Production.INFO: count ==2180 [2025-02-15 12:33:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:33:05 - End Time 2025-02-15 12:33:05 [2025-02-15 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481105', 'tblTempUsageDetail_20' ) start [2025-02-15 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481105', 'tblTempUsageDetail_20' ) end [2025-02-15 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481105', 'tblTempVendorCDR_20' ) start [2025-02-15 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481105', 'tblTempVendorCDR_20' ) end [2025-02-15 12:33:21] Production.INFO: ProcessCDR(1,14481105,1,1,2) [2025-02-15 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481105', 'tblTempUsageDetail_20' ) start [2025-02-15 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481105', 'tblTempUsageDetail_20' ) end [2025-02-15 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:33:26] Production.INFO: ==11853== Releasing lock... [2025-02-15 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:33:26] Production.INFO: 44.5 MB #Memory Used# [2025-02-15 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:34:05 [end_date_ymd] => 2025-02-15 12:34:05 [RateCDR] => 1 ) [2025-02-15 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:34:05' and `end` < '2025-02-15 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:34:19] Production.INFO: count ==2203 [2025-02-15 12:34:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:34:05 - End Time 2025-02-15 12:34:05 [2025-02-15 12:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481110', 'tblTempUsageDetail_20' ) start [2025-02-15 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481110', 'tblTempUsageDetail_20' ) end [2025-02-15 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481110', 'tblTempVendorCDR_20' ) start [2025-02-15 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481110', 'tblTempVendorCDR_20' ) end [2025-02-15 12:34:20] Production.INFO: ProcessCDR(1,14481110,1,1,2) [2025-02-15 12:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481110', 'tblTempUsageDetail_20' ) start [2025-02-15 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481110', 'tblTempUsageDetail_20' ) end [2025-02-15 12:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:34:25] Production.INFO: ==11930== Releasing lock... [2025-02-15 12:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:34:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-15 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:35:05 [end_date_ymd] => 2025-02-15 12:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:35:05' and `end` < '2025-02-15 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-15 12:35:20] Production.INFO: count ==2204 [2025-02-15 12:35:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:35:05 - End Time 2025-02-15 12:35:05 [2025-02-15 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481115', 'tblTempUsageDetail_20' ) start [2025-02-15 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481115', 'tblTempUsageDetail_20' ) end [2025-02-15 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481115', 'tblTempVendorCDR_20' ) start [2025-02-15 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481115', 'tblTempVendorCDR_20' ) end [2025-02-15 12:35:21] Production.INFO: ProcessCDR(1,14481115,1,1,2) [2025-02-15 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481115', 'tblTempUsageDetail_20' ) start [2025-02-15 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481115', 'tblTempUsageDetail_20' ) end [2025-02-15 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:35:26] Production.INFO: ==11999== Releasing lock... [2025-02-15 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:35:26] Production.INFO: 44.5 MB #Memory Used# [2025-02-15 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:36:05 [end_date_ymd] => 2025-02-15 12:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:36:05' and `end` < '2025-02-15 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-15 12:36:19] Production.INFO: count ==2207 [2025-02-15 12:36:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:36:05 - End Time 2025-02-15 12:36:05 [2025-02-15 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481120', 'tblTempUsageDetail_20' ) start [2025-02-15 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481120', 'tblTempUsageDetail_20' ) end [2025-02-15 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481120', 'tblTempVendorCDR_20' ) start [2025-02-15 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481120', 'tblTempVendorCDR_20' ) end [2025-02-15 12:36:20] Production.INFO: ProcessCDR(1,14481120,1,1,2) [2025-02-15 12:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481120', 'tblTempUsageDetail_20' ) start [2025-02-15 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481120', 'tblTempUsageDetail_20' ) end [2025-02-15 12:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:36:25] Production.INFO: ==12070== Releasing lock... [2025-02-15 12:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:36:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-15 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:37:05 [end_date_ymd] => 2025-02-15 12:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:37:05' and `end` < '2025-02-15 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-15 12:37:20] Production.INFO: count ==2212 [2025-02-15 12:37:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:37:05 - End Time 2025-02-15 12:37:05 [2025-02-15 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481125', 'tblTempUsageDetail_20' ) start [2025-02-15 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481125', 'tblTempUsageDetail_20' ) end [2025-02-15 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481125', 'tblTempVendorCDR_20' ) start [2025-02-15 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481125', 'tblTempVendorCDR_20' ) end [2025-02-15 12:37:21] Production.INFO: ProcessCDR(1,14481125,1,1,2) [2025-02-15 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481125', 'tblTempUsageDetail_20' ) start [2025-02-15 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481125', 'tblTempUsageDetail_20' ) end [2025-02-15 12:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:37:24] Production.INFO: ==12140== Releasing lock... [2025-02-15 12:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:37:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-15 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:38:05 [end_date_ymd] => 2025-02-15 12:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:38:05' and `end` < '2025-02-15 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-15 12:38:19] Production.INFO: count ==2212 [2025-02-15 12:38:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:38:05 - End Time 2025-02-15 12:38:05 [2025-02-15 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481130', 'tblTempUsageDetail_20' ) start [2025-02-15 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481130', 'tblTempUsageDetail_20' ) end [2025-02-15 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481130', 'tblTempVendorCDR_20' ) start [2025-02-15 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481130', 'tblTempVendorCDR_20' ) end [2025-02-15 12:38:19] Production.INFO: ProcessCDR(1,14481130,1,1,2) [2025-02-15 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481130', 'tblTempUsageDetail_20' ) start [2025-02-15 12:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481130', 'tblTempUsageDetail_20' ) end [2025-02-15 12:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:38:24] Production.INFO: ==12210== Releasing lock... [2025-02-15 12:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:38:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-15 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:39:05 [end_date_ymd] => 2025-02-15 12:39:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:39:05' and `end` < '2025-02-15 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-15 12:39:20] Production.INFO: count ==2201 [2025-02-15 12:39:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:39:05 - End Time 2025-02-15 12:39:05 [2025-02-15 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481135', 'tblTempUsageDetail_20' ) start [2025-02-15 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481135', 'tblTempUsageDetail_20' ) end [2025-02-15 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481135', 'tblTempVendorCDR_20' ) start [2025-02-15 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481135', 'tblTempVendorCDR_20' ) end [2025-02-15 12:39:21] Production.INFO: ProcessCDR(1,14481135,1,1,2) [2025-02-15 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481135', 'tblTempUsageDetail_20' ) start [2025-02-15 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481135', 'tblTempUsageDetail_20' ) end [2025-02-15 12:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:39:25] Production.INFO: ==12320== Releasing lock... [2025-02-15 12:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:39:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-15 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:40:05 [end_date_ymd] => 2025-02-15 12:40:05 [RateCDR] => 1 ) [2025-02-15 12: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-15 09:40:05' and `end` < '2025-02-15 12: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-15 12:40:19] Production.INFO: count ==2214 [2025-02-15 12:40:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:40:05 - End Time 2025-02-15 12:40:05 [2025-02-15 12:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481141', 'tblTempUsageDetail_20' ) start [2025-02-15 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481141', 'tblTempUsageDetail_20' ) end [2025-02-15 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481141', 'tblTempVendorCDR_20' ) start [2025-02-15 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481141', 'tblTempVendorCDR_20' ) end [2025-02-15 12:40:20] Production.INFO: ProcessCDR(1,14481141,1,1,2) [2025-02-15 12:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481141', 'tblTempUsageDetail_20' ) start [2025-02-15 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481141', 'tblTempUsageDetail_20' ) end [2025-02-15 12:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:40:25] Production.INFO: ==12392== Releasing lock... [2025-02-15 12:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:40:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-15 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:41:05 [end_date_ymd] => 2025-02-15 12:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:41:05' and `end` < '2025-02-15 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-15 12:41:19] Production.INFO: count ==2273 [2025-02-15 12:41:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:41:05 - End Time 2025-02-15 12:41:05 [2025-02-15 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481146', 'tblTempUsageDetail_20' ) start [2025-02-15 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481146', 'tblTempUsageDetail_20' ) end [2025-02-15 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481146', 'tblTempVendorCDR_20' ) start [2025-02-15 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481146', 'tblTempVendorCDR_20' ) end [2025-02-15 12:41:20] Production.INFO: ProcessCDR(1,14481146,1,1,2) [2025-02-15 12:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481146', 'tblTempUsageDetail_20' ) start [2025-02-15 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481146', 'tblTempUsageDetail_20' ) end [2025-02-15 12:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:41:25] Production.INFO: ==12465== Releasing lock... [2025-02-15 12:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:41:25] Production.INFO: 45 MB #Memory Used# [2025-02-15 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:42:05 [end_date_ymd] => 2025-02-15 12:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:42:05' and `end` < '2025-02-15 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-15 12:42:20] Production.INFO: count ==2286 [2025-02-15 12:42:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:42:05 - End Time 2025-02-15 12:42:05 [2025-02-15 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481151', 'tblTempUsageDetail_20' ) start [2025-02-15 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481151', 'tblTempUsageDetail_20' ) end [2025-02-15 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481151', 'tblTempVendorCDR_20' ) start [2025-02-15 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481151', 'tblTempVendorCDR_20' ) end [2025-02-15 12:42:21] Production.INFO: ProcessCDR(1,14481151,1,1,2) [2025-02-15 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481151', 'tblTempUsageDetail_20' ) start [2025-02-15 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481151', 'tblTempUsageDetail_20' ) end [2025-02-15 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:42:26] Production.INFO: ==12538== Releasing lock... [2025-02-15 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:42:26] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:43:05 [end_date_ymd] => 2025-02-15 12:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:43:05' and `end` < '2025-02-15 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-15 12:43:19] Production.INFO: count ==2285 [2025-02-15 12:43:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:43:05 - End Time 2025-02-15 12:43:05 [2025-02-15 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481156', 'tblTempUsageDetail_20' ) start [2025-02-15 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481156', 'tblTempUsageDetail_20' ) end [2025-02-15 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481156', 'tblTempVendorCDR_20' ) start [2025-02-15 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481156', 'tblTempVendorCDR_20' ) end [2025-02-15 12:43:20] Production.INFO: ProcessCDR(1,14481156,1,1,2) [2025-02-15 12:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481156', 'tblTempUsageDetail_20' ) start [2025-02-15 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481156', 'tblTempUsageDetail_20' ) end [2025-02-15 12:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:43:24] Production.INFO: ==12609== Releasing lock... [2025-02-15 12:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:43:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:44:05 [end_date_ymd] => 2025-02-15 12:44:05 [RateCDR] => 1 ) [2025-02-15 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:44:05' and `end` < '2025-02-15 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:44:18] Production.INFO: count ==2301 [2025-02-15 12:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:44:05 - End Time 2025-02-15 12:44:05 [2025-02-15 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481161', 'tblTempUsageDetail_20' ) start [2025-02-15 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481161', 'tblTempUsageDetail_20' ) end [2025-02-15 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481161', 'tblTempVendorCDR_20' ) start [2025-02-15 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481161', 'tblTempVendorCDR_20' ) end [2025-02-15 12:44:19] Production.INFO: ProcessCDR(1,14481161,1,1,2) [2025-02-15 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481161', 'tblTempUsageDetail_20' ) start [2025-02-15 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481161', 'tblTempUsageDetail_20' ) end [2025-02-15 12:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:44:24] Production.INFO: ==12681== Releasing lock... [2025-02-15 12:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:44:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:45:05 [end_date_ymd] => 2025-02-15 12:45:05 [RateCDR] => 1 ) [2025-02-15 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:45:05' and `end` < '2025-02-15 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:45:19] Production.INFO: count ==2289 [2025-02-15 12:45:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:45:05 - End Time 2025-02-15 12:45:05 [2025-02-15 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481166', 'tblTempUsageDetail_20' ) start [2025-02-15 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481166', 'tblTempUsageDetail_20' ) end [2025-02-15 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481166', 'tblTempVendorCDR_20' ) start [2025-02-15 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481166', 'tblTempVendorCDR_20' ) end [2025-02-15 12:45:20] Production.INFO: ProcessCDR(1,14481166,1,1,2) [2025-02-15 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481166', 'tblTempUsageDetail_20' ) start [2025-02-15 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481166', 'tblTempUsageDetail_20' ) end [2025-02-15 12:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:45:24] Production.INFO: ==12752== Releasing lock... [2025-02-15 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:45:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 12:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:46:04 [end_date_ymd] => 2025-02-15 12:46:04 [RateCDR] => 1 ) [2025-02-15 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-15 09:46:04' and `end` < '2025-02-15 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-15 12:46:18] Production.INFO: count ==2297 [2025-02-15 12:46:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:46:04 - End Time 2025-02-15 12:46:04 [2025-02-15 12:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481171', 'tblTempUsageDetail_20' ) start [2025-02-15 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481171', 'tblTempUsageDetail_20' ) end [2025-02-15 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481171', 'tblTempVendorCDR_20' ) start [2025-02-15 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481171', 'tblTempVendorCDR_20' ) end [2025-02-15 12:46:19] Production.INFO: ProcessCDR(1,14481171,1,1,2) [2025-02-15 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481171', 'tblTempUsageDetail_20' ) start [2025-02-15 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481171', 'tblTempUsageDetail_20' ) end [2025-02-15 12:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:46:24] Production.INFO: ==12823== Releasing lock... [2025-02-15 12:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:46:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:47:05 [end_date_ymd] => 2025-02-15 12:47:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:47:05' and `end` < '2025-02-15 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-15 12:47:19] Production.INFO: count ==2298 [2025-02-15 12:47:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:47:05 - End Time 2025-02-15 12:47:05 [2025-02-15 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481176', 'tblTempUsageDetail_20' ) start [2025-02-15 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481176', 'tblTempUsageDetail_20' ) end [2025-02-15 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481176', 'tblTempVendorCDR_20' ) start [2025-02-15 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481176', 'tblTempVendorCDR_20' ) end [2025-02-15 12:47:20] Production.INFO: ProcessCDR(1,14481176,1,1,2) [2025-02-15 12:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481176', 'tblTempUsageDetail_20' ) start [2025-02-15 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481176', 'tblTempUsageDetail_20' ) end [2025-02-15 12:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:47:24] Production.INFO: ==12894== Releasing lock... [2025-02-15 12:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:47:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:48:05 [end_date_ymd] => 2025-02-15 12:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:48:05' and `end` < '2025-02-15 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-15 12:48:19] Production.INFO: count ==2292 [2025-02-15 12:48:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:48:05 - End Time 2025-02-15 12:48:05 [2025-02-15 12:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481181', 'tblTempUsageDetail_20' ) start [2025-02-15 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481181', 'tblTempUsageDetail_20' ) end [2025-02-15 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481181', 'tblTempVendorCDR_20' ) start [2025-02-15 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481181', 'tblTempVendorCDR_20' ) end [2025-02-15 12:48:20] Production.INFO: ProcessCDR(1,14481181,1,1,2) [2025-02-15 12:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481181', 'tblTempUsageDetail_20' ) start [2025-02-15 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481181', 'tblTempUsageDetail_20' ) end [2025-02-15 12:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:48:25] Production.INFO: ==12966== Releasing lock... [2025-02-15 12:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:48:25] Production.INFO: 45 MB #Memory Used# [2025-02-15 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:49:05 [end_date_ymd] => 2025-02-15 12:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:49:05' and `end` < '2025-02-15 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-15 12:49:19] Production.INFO: count ==2283 [2025-02-15 12:49:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:49:05 - End Time 2025-02-15 12:49:05 [2025-02-15 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481186', 'tblTempUsageDetail_20' ) start [2025-02-15 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481186', 'tblTempUsageDetail_20' ) end [2025-02-15 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481186', 'tblTempVendorCDR_20' ) start [2025-02-15 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481186', 'tblTempVendorCDR_20' ) end [2025-02-15 12:49:20] Production.INFO: ProcessCDR(1,14481186,1,1,2) [2025-02-15 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481186', 'tblTempUsageDetail_20' ) start [2025-02-15 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481186', 'tblTempUsageDetail_20' ) end [2025-02-15 12:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:49:25] Production.INFO: ==13037== Releasing lock... [2025-02-15 12:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:49:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:50:07 [end_date_ymd] => 2025-02-15 12:50:07 [RateCDR] => 1 ) [2025-02-15 12: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-15 09:50:07' and `end` < '2025-02-15 12: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-15 12:50:23] Production.INFO: count ==2311 [2025-02-15 12:50:24] Production.ERROR: pbx CDR StartTime 2025-02-15 09:50:07 - End Time 2025-02-15 12:50:07 [2025-02-15 12:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481192', 'tblTempUsageDetail_20' ) start [2025-02-15 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481192', 'tblTempUsageDetail_20' ) end [2025-02-15 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481192', 'tblTempVendorCDR_20' ) start [2025-02-15 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481192', 'tblTempVendorCDR_20' ) end [2025-02-15 12:50:24] Production.INFO: ProcessCDR(1,14481192,1,1,2) [2025-02-15 12:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481192', 'tblTempUsageDetail_20' ) start [2025-02-15 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481192', 'tblTempUsageDetail_20' ) end [2025-02-15 12:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:50:29] Production.INFO: ==13112== Releasing lock... [2025-02-15 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:50:29] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:51:05 [end_date_ymd] => 2025-02-15 12:51:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:51:05' and `end` < '2025-02-15 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-15 12:51:19] Production.INFO: count ==2361 [2025-02-15 12:51:20] Production.ERROR: pbx CDR StartTime 2025-02-15 09:51:05 - End Time 2025-02-15 12:51:05 [2025-02-15 12:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481197', 'tblTempUsageDetail_20' ) start [2025-02-15 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481197', 'tblTempUsageDetail_20' ) end [2025-02-15 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481197', 'tblTempVendorCDR_20' ) start [2025-02-15 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481197', 'tblTempVendorCDR_20' ) end [2025-02-15 12:51:20] Production.INFO: ProcessCDR(1,14481197,1,1,2) [2025-02-15 12:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481197', 'tblTempUsageDetail_20' ) start [2025-02-15 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481197', 'tblTempUsageDetail_20' ) end [2025-02-15 12:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:51:24] Production.INFO: ==13183== Releasing lock... [2025-02-15 12:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:51:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:52:06 [end_date_ymd] => 2025-02-15 12:52:06 [RateCDR] => 1 ) [2025-02-15 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:52:06' and `end` < '2025-02-15 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:52:21] Production.INFO: count ==2372 [2025-02-15 12:52:22] Production.ERROR: pbx CDR StartTime 2025-02-15 09:52:06 - End Time 2025-02-15 12:52:06 [2025-02-15 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481202', 'tblTempUsageDetail_20' ) start [2025-02-15 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481202', 'tblTempUsageDetail_20' ) end [2025-02-15 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481202', 'tblTempVendorCDR_20' ) start [2025-02-15 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481202', 'tblTempVendorCDR_20' ) end [2025-02-15 12:52:22] Production.INFO: ProcessCDR(1,14481202,1,1,2) [2025-02-15 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481202', 'tblTempUsageDetail_20' ) start [2025-02-15 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481202', 'tblTempUsageDetail_20' ) end [2025-02-15 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:52:27] Production.INFO: ==13254== Releasing lock... [2025-02-15 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:52:27] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:53:05 [end_date_ymd] => 2025-02-15 12:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:53:05' and `end` < '2025-02-15 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-15 12:53:20] Production.INFO: count ==2377 [2025-02-15 12:53:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:53:05 - End Time 2025-02-15 12:53:05 [2025-02-15 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481207', 'tblTempUsageDetail_20' ) start [2025-02-15 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481207', 'tblTempUsageDetail_20' ) end [2025-02-15 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481207', 'tblTempVendorCDR_20' ) start [2025-02-15 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481207', 'tblTempVendorCDR_20' ) end [2025-02-15 12:53:21] Production.INFO: ProcessCDR(1,14481207,1,1,2) [2025-02-15 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481207', 'tblTempUsageDetail_20' ) start [2025-02-15 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481207', 'tblTempUsageDetail_20' ) end [2025-02-15 12:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:53:25] Production.INFO: ==13329== Releasing lock... [2025-02-15 12:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:53:25] Production.INFO: 46 MB #Memory Used# [2025-02-15 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:54:05 [end_date_ymd] => 2025-02-15 12:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:54:05' and `end` < '2025-02-15 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-15 12:54:20] Production.INFO: count ==2376 [2025-02-15 12:54:21] Production.ERROR: pbx CDR StartTime 2025-02-15 09:54:05 - End Time 2025-02-15 12:54:05 [2025-02-15 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481212', 'tblTempUsageDetail_20' ) start [2025-02-15 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481212', 'tblTempUsageDetail_20' ) end [2025-02-15 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481212', 'tblTempVendorCDR_20' ) start [2025-02-15 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481212', 'tblTempVendorCDR_20' ) end [2025-02-15 12:54:21] Production.INFO: ProcessCDR(1,14481212,1,1,2) [2025-02-15 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481212', 'tblTempUsageDetail_20' ) start [2025-02-15 12:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481212', 'tblTempUsageDetail_20' ) end [2025-02-15 12:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:54:24] Production.INFO: ==13438== Releasing lock... [2025-02-15 12:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:54:24] Production.INFO: 46 MB #Memory Used# [2025-02-15 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:55:05 [end_date_ymd] => 2025-02-15 12:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:55:05' and `end` < '2025-02-15 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-15 12:55:19] Production.INFO: count ==2384 [2025-02-15 12:55:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:55:05 - End Time 2025-02-15 12:55:05 [2025-02-15 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481217', 'tblTempUsageDetail_20' ) start [2025-02-15 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481217', 'tblTempUsageDetail_20' ) end [2025-02-15 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481217', 'tblTempVendorCDR_20' ) start [2025-02-15 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481217', 'tblTempVendorCDR_20' ) end [2025-02-15 12:55:19] Production.INFO: ProcessCDR(1,14481217,1,1,2) [2025-02-15 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481217', 'tblTempUsageDetail_20' ) start [2025-02-15 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481217', 'tblTempUsageDetail_20' ) end [2025-02-15 12:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:55:23] Production.INFO: ==13533== Releasing lock... [2025-02-15 12:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:55:23] Production.INFO: 46 MB #Memory Used# [2025-02-15 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:56:05 [end_date_ymd] => 2025-02-15 12:56:05 [RateCDR] => 1 ) [2025-02-15 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 09:56:05' and `end` < '2025-02-15 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 12:56:18] Production.INFO: count ==2382 [2025-02-15 12:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:56:05 - End Time 2025-02-15 12:56:05 [2025-02-15 12:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481222', 'tblTempUsageDetail_20' ) start [2025-02-15 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481222', 'tblTempUsageDetail_20' ) end [2025-02-15 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481222', 'tblTempVendorCDR_20' ) start [2025-02-15 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481222', 'tblTempVendorCDR_20' ) end [2025-02-15 12:56:19] Production.INFO: ProcessCDR(1,14481222,1,1,2) [2025-02-15 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481222', 'tblTempUsageDetail_20' ) start [2025-02-15 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481222', 'tblTempUsageDetail_20' ) end [2025-02-15 12:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:56:23] Production.INFO: ==13604== Releasing lock... [2025-02-15 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:56:23] Production.INFO: 46 MB #Memory Used# [2025-02-15 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:57:05 [end_date_ymd] => 2025-02-15 12:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:57:05' and `end` < '2025-02-15 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-15 12:57:18] Production.INFO: count ==2383 [2025-02-15 12:57:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:57:05 - End Time 2025-02-15 12:57:05 [2025-02-15 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481227', 'tblTempUsageDetail_20' ) start [2025-02-15 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481227', 'tblTempUsageDetail_20' ) end [2025-02-15 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481227', 'tblTempVendorCDR_20' ) start [2025-02-15 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481227', 'tblTempVendorCDR_20' ) end [2025-02-15 12:57:19] Production.INFO: ProcessCDR(1,14481227,1,1,2) [2025-02-15 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481227', 'tblTempUsageDetail_20' ) start [2025-02-15 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481227', 'tblTempUsageDetail_20' ) end [2025-02-15 12:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:57:22] Production.INFO: ==13675== Releasing lock... [2025-02-15 12:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:57:22] Production.INFO: 46 MB #Memory Used# [2025-02-15 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:58:05 [end_date_ymd] => 2025-02-15 12:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:58:05' and `end` < '2025-02-15 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-15 12:58:19] Production.INFO: count ==2393 [2025-02-15 12:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:58:05 - End Time 2025-02-15 12:58:05 [2025-02-15 12:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481232', 'tblTempUsageDetail_20' ) start [2025-02-15 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481232', 'tblTempUsageDetail_20' ) end [2025-02-15 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481232', 'tblTempVendorCDR_20' ) start [2025-02-15 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481232', 'tblTempVendorCDR_20' ) end [2025-02-15 12:58:20] Production.INFO: ProcessCDR(1,14481232,1,1,2) [2025-02-15 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481232', 'tblTempUsageDetail_20' ) start [2025-02-15 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481232', 'tblTempUsageDetail_20' ) end [2025-02-15 12:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:58:25] Production.INFO: ==13747== Releasing lock... [2025-02-15 12:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:58:25] Production.INFO: 46 MB #Memory Used# [2025-02-15 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 09:59:05 [end_date_ymd] => 2025-02-15 12:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 09:59:05' and `end` < '2025-02-15 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-15 12:59:18] Production.INFO: count ==2388 [2025-02-15 12:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 09:59:05 - End Time 2025-02-15 12:59:05 [2025-02-15 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481237', 'tblTempUsageDetail_20' ) start [2025-02-15 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481237', 'tblTempUsageDetail_20' ) end [2025-02-15 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481237', 'tblTempVendorCDR_20' ) start [2025-02-15 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481237', 'tblTempVendorCDR_20' ) end [2025-02-15 12:59:19] Production.INFO: ProcessCDR(1,14481237,1,1,2) [2025-02-15 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 12:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481237', 'tblTempUsageDetail_20' ) start [2025-02-15 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481237', 'tblTempUsageDetail_20' ) end [2025-02-15 12:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 12:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 12:59:24] Production.INFO: ==13816== Releasing lock... [2025-02-15 12:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 12:59:24] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:00:06 [end_date_ymd] => 2025-02-15 13:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 10:00:06' and `end` < '2025-02-15 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-15 13:00:19] Production.INFO: count ==2387 [2025-02-15 13:00:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:00:06 - End Time 2025-02-15 13:00:06 [2025-02-15 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481243', 'tblTempUsageDetail_20' ) start [2025-02-15 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481243', 'tblTempUsageDetail_20' ) end [2025-02-15 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481243', 'tblTempVendorCDR_20' ) start [2025-02-15 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481243', 'tblTempVendorCDR_20' ) end [2025-02-15 13:00:20] Production.INFO: ProcessCDR(1,14481243,1,1,2) [2025-02-15 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481243', 'tblTempUsageDetail_20' ) start [2025-02-15 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481243', 'tblTempUsageDetail_20' ) end [2025-02-15 13:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:00:24] Production.INFO: ==13890== Releasing lock... [2025-02-15 13:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:00:24] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:01:05 [end_date_ymd] => 2025-02-15 13:01:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:01:05' and `end` < '2025-02-15 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-15 13:01:19] Production.INFO: count ==2413 [2025-02-15 13:01:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:01:05 - End Time 2025-02-15 13:01:05 [2025-02-15 13:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481248', 'tblTempUsageDetail_20' ) start [2025-02-15 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481248', 'tblTempUsageDetail_20' ) end [2025-02-15 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481248', 'tblTempVendorCDR_20' ) start [2025-02-15 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481248', 'tblTempVendorCDR_20' ) end [2025-02-15 13:01:20] Production.INFO: ProcessCDR(1,14481248,1,1,2) [2025-02-15 13:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481248', 'tblTempUsageDetail_20' ) start [2025-02-15 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481248', 'tblTempUsageDetail_20' ) end [2025-02-15 13:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:01:25] Production.INFO: ==13976== Releasing lock... [2025-02-15 13:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:01:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:02:05 [end_date_ymd] => 2025-02-15 13:02:05 [RateCDR] => 1 ) [2025-02-15 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:02:05' and `end` < '2025-02-15 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:02:19] Production.INFO: count ==2404 [2025-02-15 13:02:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:02:05 - End Time 2025-02-15 13:02:05 [2025-02-15 13:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481253', 'tblTempUsageDetail_20' ) start [2025-02-15 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481253', 'tblTempUsageDetail_20' ) end [2025-02-15 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481253', 'tblTempVendorCDR_20' ) start [2025-02-15 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481253', 'tblTempVendorCDR_20' ) end [2025-02-15 13:02:20] Production.INFO: ProcessCDR(1,14481253,1,1,2) [2025-02-15 13:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481253', 'tblTempUsageDetail_20' ) start [2025-02-15 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481253', 'tblTempUsageDetail_20' ) end [2025-02-15 13:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:02:24] Production.INFO: ==14047== Releasing lock... [2025-02-15 13:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:02:24] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:03:06 [end_date_ymd] => 2025-02-15 13:03:06 [RateCDR] => 1 ) [2025-02-15 13: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-15 10:03:06' and `end` < '2025-02-15 13: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-15 13:03:19] Production.INFO: count ==2401 [2025-02-15 13:03:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:03:06 - End Time 2025-02-15 13:03:06 [2025-02-15 13:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481258', 'tblTempUsageDetail_20' ) start [2025-02-15 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481258', 'tblTempUsageDetail_20' ) end [2025-02-15 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481258', 'tblTempVendorCDR_20' ) start [2025-02-15 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481258', 'tblTempVendorCDR_20' ) end [2025-02-15 13:03:20] Production.INFO: ProcessCDR(1,14481258,1,1,2) [2025-02-15 13:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481258', 'tblTempUsageDetail_20' ) start [2025-02-15 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481258', 'tblTempUsageDetail_20' ) end [2025-02-15 13:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:03:25] Production.INFO: ==14118== Releasing lock... [2025-02-15 13:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:03:25] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:04:05 [end_date_ymd] => 2025-02-15 13:04:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:04:05' and `end` < '2025-02-15 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-15 13:04:19] Production.INFO: count ==2391 [2025-02-15 13:04:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:04:05 - End Time 2025-02-15 13:04:05 [2025-02-15 13:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481263', 'tblTempUsageDetail_20' ) start [2025-02-15 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481263', 'tblTempUsageDetail_20' ) end [2025-02-15 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481263', 'tblTempVendorCDR_20' ) start [2025-02-15 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481263', 'tblTempVendorCDR_20' ) end [2025-02-15 13:04:20] Production.INFO: ProcessCDR(1,14481263,1,1,2) [2025-02-15 13:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481263', 'tblTempUsageDetail_20' ) start [2025-02-15 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481263', 'tblTempUsageDetail_20' ) end [2025-02-15 13:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:04:25] Production.INFO: ==14190== Releasing lock... [2025-02-15 13:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:04:25] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:05:05 [end_date_ymd] => 2025-02-15 13:05:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:05:05' and `end` < '2025-02-15 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:05:18] Production.INFO: count ==2386 [2025-02-15 13:05:19] Production.ERROR: pbx CDR StartTime 2025-02-15 10:05:05 - End Time 2025-02-15 13:05:05 [2025-02-15 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481268', 'tblTempUsageDetail_20' ) start [2025-02-15 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481268', 'tblTempUsageDetail_20' ) end [2025-02-15 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481268', 'tblTempVendorCDR_20' ) start [2025-02-15 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481268', 'tblTempVendorCDR_20' ) end [2025-02-15 13:05:19] Production.INFO: ProcessCDR(1,14481268,1,1,2) [2025-02-15 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481268', 'tblTempUsageDetail_20' ) start [2025-02-15 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481268', 'tblTempUsageDetail_20' ) end [2025-02-15 13:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:05:24] Production.INFO: ==14260== Releasing lock... [2025-02-15 13:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:05:24] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:06:06 [end_date_ymd] => 2025-02-15 13:06:06 [RateCDR] => 1 ) [2025-02-15 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:06:06' and `end` < '2025-02-15 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:06:19] Production.INFO: count ==2390 [2025-02-15 13:06:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:06:06 - End Time 2025-02-15 13:06:06 [2025-02-15 13:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481273', 'tblTempUsageDetail_20' ) start [2025-02-15 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481273', 'tblTempUsageDetail_20' ) end [2025-02-15 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481273', 'tblTempVendorCDR_20' ) start [2025-02-15 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481273', 'tblTempVendorCDR_20' ) end [2025-02-15 13:06:20] Production.INFO: ProcessCDR(1,14481273,1,1,2) [2025-02-15 13:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481273', 'tblTempUsageDetail_20' ) start [2025-02-15 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481273', 'tblTempUsageDetail_20' ) end [2025-02-15 13:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:06:26] Production.INFO: ==14331== Releasing lock... [2025-02-15 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:06:26] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:07:05 [end_date_ymd] => 2025-02-15 13:07:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:07:05' and `end` < '2025-02-15 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-15 13:07:19] Production.INFO: count ==2386 [2025-02-15 13:07:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:07:05 - End Time 2025-02-15 13:07:05 [2025-02-15 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481278', 'tblTempUsageDetail_20' ) start [2025-02-15 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481278', 'tblTempUsageDetail_20' ) end [2025-02-15 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481278', 'tblTempVendorCDR_20' ) start [2025-02-15 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481278', 'tblTempVendorCDR_20' ) end [2025-02-15 13:07:20] Production.INFO: ProcessCDR(1,14481278,1,1,2) [2025-02-15 13:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481278', 'tblTempUsageDetail_20' ) start [2025-02-15 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481278', 'tblTempUsageDetail_20' ) end [2025-02-15 13:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:07:25] Production.INFO: ==14399== Releasing lock... [2025-02-15 13:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:07:25] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:08:06 [end_date_ymd] => 2025-02-15 13:08:06 [RateCDR] => 1 ) [2025-02-15 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:08:06' and `end` < '2025-02-15 13:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:08:19] Production.INFO: count ==2385 [2025-02-15 13:08:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:08:06 - End Time 2025-02-15 13:08:06 [2025-02-15 13:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481283', 'tblTempUsageDetail_20' ) start [2025-02-15 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481283', 'tblTempUsageDetail_20' ) end [2025-02-15 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481283', 'tblTempVendorCDR_20' ) start [2025-02-15 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481283', 'tblTempVendorCDR_20' ) end [2025-02-15 13:08:20] Production.INFO: ProcessCDR(1,14481283,1,1,2) [2025-02-15 13:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481283', 'tblTempUsageDetail_20' ) start [2025-02-15 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481283', 'tblTempUsageDetail_20' ) end [2025-02-15 13:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:08:24] Production.INFO: ==14474== Releasing lock... [2025-02-15 13:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:08:24] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:09:05 [end_date_ymd] => 2025-02-15 13:09:05 [RateCDR] => 1 ) [2025-02-15 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:09:05' and `end` < '2025-02-15 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:09:20] Production.INFO: count ==2385 [2025-02-15 13:09:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:09:05 - End Time 2025-02-15 13:09:05 [2025-02-15 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481288', 'tblTempUsageDetail_20' ) start [2025-02-15 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481288', 'tblTempUsageDetail_20' ) end [2025-02-15 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481288', 'tblTempVendorCDR_20' ) start [2025-02-15 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481288', 'tblTempVendorCDR_20' ) end [2025-02-15 13:09:21] Production.INFO: ProcessCDR(1,14481288,1,1,2) [2025-02-15 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481288', 'tblTempUsageDetail_20' ) start [2025-02-15 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481288', 'tblTempUsageDetail_20' ) end [2025-02-15 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:09:26] Production.INFO: ==14556== Releasing lock... [2025-02-15 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:09:26] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:10:06 [end_date_ymd] => 2025-02-15 13:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 10:10:06' and `end` < '2025-02-15 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-15 13:10:23] Production.INFO: count ==2393 [2025-02-15 13:10:24] Production.ERROR: pbx CDR StartTime 2025-02-15 10:10:06 - End Time 2025-02-15 13:10:06 [2025-02-15 13:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481293', 'tblTempUsageDetail_20' ) start [2025-02-15 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481293', 'tblTempUsageDetail_20' ) end [2025-02-15 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481293', 'tblTempVendorCDR_20' ) start [2025-02-15 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481293', 'tblTempVendorCDR_20' ) end [2025-02-15 13:10:24] Production.INFO: ProcessCDR(1,14481293,1,1,2) [2025-02-15 13:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481293', 'tblTempUsageDetail_20' ) start [2025-02-15 13:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481293', 'tblTempUsageDetail_20' ) end [2025-02-15 13:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:10:29] Production.INFO: ==14672== Releasing lock... [2025-02-15 13:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:10:29] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:11:05 [end_date_ymd] => 2025-02-15 13:11:05 [RateCDR] => 1 ) [2025-02-15 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:11:05' and `end` < '2025-02-15 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:11:18] Production.INFO: count ==2412 [2025-02-15 13:11:19] Production.ERROR: pbx CDR StartTime 2025-02-15 10:11:05 - End Time 2025-02-15 13:11:05 [2025-02-15 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481299', 'tblTempUsageDetail_20' ) start [2025-02-15 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481299', 'tblTempUsageDetail_20' ) end [2025-02-15 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481299', 'tblTempVendorCDR_20' ) start [2025-02-15 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481299', 'tblTempVendorCDR_20' ) end [2025-02-15 13:11:20] Production.INFO: ProcessCDR(1,14481299,1,1,2) [2025-02-15 13:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481299', 'tblTempUsageDetail_20' ) start [2025-02-15 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481299', 'tblTempUsageDetail_20' ) end [2025-02-15 13:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:11:25] Production.INFO: ==14749== Releasing lock... [2025-02-15 13:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:11:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:12:06 [end_date_ymd] => 2025-02-15 13:12:06 [RateCDR] => 1 ) [2025-02-15 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:12:06' and `end` < '2025-02-15 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:12:19] Production.INFO: count ==2419 [2025-02-15 13:12:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:12:06 - End Time 2025-02-15 13:12:06 [2025-02-15 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481304', 'tblTempUsageDetail_20' ) start [2025-02-15 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481304', 'tblTempUsageDetail_20' ) end [2025-02-15 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481304', 'tblTempVendorCDR_20' ) start [2025-02-15 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481304', 'tblTempVendorCDR_20' ) end [2025-02-15 13:12:20] Production.INFO: ProcessCDR(1,14481304,1,1,2) [2025-02-15 13:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481304', 'tblTempUsageDetail_20' ) start [2025-02-15 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481304', 'tblTempUsageDetail_20' ) end [2025-02-15 13:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:12:24] Production.INFO: ==14836== Releasing lock... [2025-02-15 13:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:12:24] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:13:05 [end_date_ymd] => 2025-02-15 13:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:13:05' and `end` < '2025-02-15 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-15 13:13:19] Production.INFO: count ==2424 [2025-02-15 13:13:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:13:05 - End Time 2025-02-15 13:13:05 [2025-02-15 13:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481309', 'tblTempUsageDetail_20' ) start [2025-02-15 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481309', 'tblTempUsageDetail_20' ) end [2025-02-15 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481309', 'tblTempVendorCDR_20' ) start [2025-02-15 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481309', 'tblTempVendorCDR_20' ) end [2025-02-15 13:13:20] Production.INFO: ProcessCDR(1,14481309,1,1,2) [2025-02-15 13:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481309', 'tblTempUsageDetail_20' ) start [2025-02-15 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481309', 'tblTempUsageDetail_20' ) end [2025-02-15 13:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:13:25] Production.INFO: ==14910== Releasing lock... [2025-02-15 13:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:13:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:14:06 [end_date_ymd] => 2025-02-15 13:14:06 [RateCDR] => 1 ) [2025-02-15 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:14:06' and `end` < '2025-02-15 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:14:22] Production.INFO: count ==2430 [2025-02-15 13:14:23] Production.ERROR: pbx CDR StartTime 2025-02-15 10:14:06 - End Time 2025-02-15 13:14:06 [2025-02-15 13:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481314', 'tblTempUsageDetail_20' ) start [2025-02-15 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481314', 'tblTempUsageDetail_20' ) end [2025-02-15 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481314', 'tblTempVendorCDR_20' ) start [2025-02-15 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481314', 'tblTempVendorCDR_20' ) end [2025-02-15 13:14:23] Production.INFO: ProcessCDR(1,14481314,1,1,2) [2025-02-15 13:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481314', 'tblTempUsageDetail_20' ) start [2025-02-15 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481314', 'tblTempUsageDetail_20' ) end [2025-02-15 13:14:28] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:14:28] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:14:28] Production.INFO: ==14982== Releasing lock... [2025-02-15 13:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:14:28] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:15:05 [end_date_ymd] => 2025-02-15 13:15:05 [RateCDR] => 1 ) [2025-02-15 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:15:05' and `end` < '2025-02-15 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-15 13:15:19] Production.INFO: count ==2430 [2025-02-15 13:15:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:15:05 - End Time 2025-02-15 13:15:05 [2025-02-15 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481319', 'tblTempUsageDetail_20' ) start [2025-02-15 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481319', 'tblTempUsageDetail_20' ) end [2025-02-15 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481319', 'tblTempVendorCDR_20' ) start [2025-02-15 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481319', 'tblTempVendorCDR_20' ) end [2025-02-15 13:15:20] Production.INFO: ProcessCDR(1,14481319,1,1,2) [2025-02-15 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481319', 'tblTempUsageDetail_20' ) start [2025-02-15 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481319', 'tblTempUsageDetail_20' ) end [2025-02-15 13:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:15:25] Production.INFO: ==15060== Releasing lock... [2025-02-15 13:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:15:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:16:06 [end_date_ymd] => 2025-02-15 13:16:06 [RateCDR] => 1 ) [2025-02-15 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:16:06' and `end` < '2025-02-15 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:16:19] Production.INFO: count ==2430 [2025-02-15 13:16:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:16:06 - End Time 2025-02-15 13:16:06 [2025-02-15 13:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481324', 'tblTempUsageDetail_20' ) start [2025-02-15 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481324', 'tblTempUsageDetail_20' ) end [2025-02-15 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481324', 'tblTempVendorCDR_20' ) start [2025-02-15 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481324', 'tblTempVendorCDR_20' ) end [2025-02-15 13:16:20] Production.INFO: ProcessCDR(1,14481324,1,1,2) [2025-02-15 13:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481324', 'tblTempUsageDetail_20' ) start [2025-02-15 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481324', 'tblTempUsageDetail_20' ) end [2025-02-15 13:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:16:26] Production.INFO: ==15131== Releasing lock... [2025-02-15 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:16:26] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:17:05 [end_date_ymd] => 2025-02-15 13:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:17:05' and `end` < '2025-02-15 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-15 13:17:19] Production.INFO: count ==2425 [2025-02-15 13:17:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:17:05 - End Time 2025-02-15 13:17:05 [2025-02-15 13:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481329', 'tblTempUsageDetail_20' ) start [2025-02-15 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481329', 'tblTempUsageDetail_20' ) end [2025-02-15 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481329', 'tblTempVendorCDR_20' ) start [2025-02-15 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481329', 'tblTempVendorCDR_20' ) end [2025-02-15 13:17:20] Production.INFO: ProcessCDR(1,14481329,1,1,2) [2025-02-15 13:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481329', 'tblTempUsageDetail_20' ) start [2025-02-15 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481329', 'tblTempUsageDetail_20' ) end [2025-02-15 13:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:17:25] Production.INFO: ==15204== Releasing lock... [2025-02-15 13:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:17:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:18:06 [end_date_ymd] => 2025-02-15 13:18:06 [RateCDR] => 1 ) [2025-02-15 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:18:06' and `end` < '2025-02-15 13:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:18:22] Production.INFO: count ==2438 [2025-02-15 13:18:23] Production.ERROR: pbx CDR StartTime 2025-02-15 10:18:06 - End Time 2025-02-15 13:18:06 [2025-02-15 13:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481334', 'tblTempUsageDetail_20' ) start [2025-02-15 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481334', 'tblTempUsageDetail_20' ) end [2025-02-15 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481334', 'tblTempVendorCDR_20' ) start [2025-02-15 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481334', 'tblTempVendorCDR_20' ) end [2025-02-15 13:18:23] Production.INFO: ProcessCDR(1,14481334,1,1,2) [2025-02-15 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481334', 'tblTempUsageDetail_20' ) start [2025-02-15 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481334', 'tblTempUsageDetail_20' ) end [2025-02-15 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:18:26] Production.INFO: ==15274== Releasing lock... [2025-02-15 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:18:26] Production.INFO: 46.5 MB #Memory Used# [2025-02-15 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:19:05 [end_date_ymd] => 2025-02-15 13:19:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:19:05' and `end` < '2025-02-15 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-15 13:19:19] Production.INFO: count ==2439 [2025-02-15 13:19:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:19:05 - End Time 2025-02-15 13:19:05 [2025-02-15 13:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481339', 'tblTempUsageDetail_20' ) start [2025-02-15 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481339', 'tblTempUsageDetail_20' ) end [2025-02-15 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481339', 'tblTempVendorCDR_20' ) start [2025-02-15 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481339', 'tblTempVendorCDR_20' ) end [2025-02-15 13:19:20] Production.INFO: ProcessCDR(1,14481339,1,1,2) [2025-02-15 13:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481339', 'tblTempUsageDetail_20' ) start [2025-02-15 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481339', 'tblTempUsageDetail_20' ) end [2025-02-15 13:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:19:25] Production.INFO: ==15346== Releasing lock... [2025-02-15 13:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:19:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:20:07 [end_date_ymd] => 2025-02-15 13:20:07 [RateCDR] => 1 ) [2025-02-15 13:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:20:07' and `end` < '2025-02-15 13:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:20:20] Production.INFO: count ==2391 [2025-02-15 13:20:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:20:07 - End Time 2025-02-15 13:20:07 [2025-02-15 13:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481345', 'tblTempUsageDetail_20' ) start [2025-02-15 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481345', 'tblTempUsageDetail_20' ) end [2025-02-15 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481345', 'tblTempVendorCDR_20' ) start [2025-02-15 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481345', 'tblTempVendorCDR_20' ) end [2025-02-15 13:20:22] Production.INFO: ProcessCDR(1,14481345,1,1,2) [2025-02-15 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481345', 'tblTempUsageDetail_20' ) start [2025-02-15 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481345', 'tblTempUsageDetail_20' ) end [2025-02-15 13:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:20:25] Production.INFO: ==15419== Releasing lock... [2025-02-15 13:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:20:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:21:05 [end_date_ymd] => 2025-02-15 13:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:21:05' and `end` < '2025-02-15 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-15 13:21:19] Production.INFO: count ==2347 [2025-02-15 13:21:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:21:05 - End Time 2025-02-15 13:21:05 [2025-02-15 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481350', 'tblTempUsageDetail_20' ) start [2025-02-15 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481350', 'tblTempUsageDetail_20' ) end [2025-02-15 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481350', 'tblTempVendorCDR_20' ) start [2025-02-15 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481350', 'tblTempVendorCDR_20' ) end [2025-02-15 13:21:20] Production.INFO: ProcessCDR(1,14481350,1,1,2) [2025-02-15 13:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481350', 'tblTempUsageDetail_20' ) start [2025-02-15 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481350', 'tblTempUsageDetail_20' ) end [2025-02-15 13:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:21:25] Production.INFO: ==15489== Releasing lock... [2025-02-15 13:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:21:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:22:06 [end_date_ymd] => 2025-02-15 13:22:06 [RateCDR] => 1 ) [2025-02-15 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:22:06' and `end` < '2025-02-15 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:22:19] Production.INFO: count ==2336 [2025-02-15 13:22:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:22:06 - End Time 2025-02-15 13:22:06 [2025-02-15 13:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481355', 'tblTempUsageDetail_20' ) start [2025-02-15 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481355', 'tblTempUsageDetail_20' ) end [2025-02-15 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481355', 'tblTempVendorCDR_20' ) start [2025-02-15 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481355', 'tblTempVendorCDR_20' ) end [2025-02-15 13:22:21] Production.INFO: ProcessCDR(1,14481355,1,1,2) [2025-02-15 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481355', 'tblTempUsageDetail_20' ) start [2025-02-15 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481355', 'tblTempUsageDetail_20' ) end [2025-02-15 13:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:22:26] Production.INFO: ==15560== Releasing lock... [2025-02-15 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:22:26] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:23:05 [end_date_ymd] => 2025-02-15 13:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:23:05' and `end` < '2025-02-15 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-15 13:23:21] Production.INFO: count ==2336 [2025-02-15 13:23:22] Production.ERROR: pbx CDR StartTime 2025-02-15 10:23:05 - End Time 2025-02-15 13:23:05 [2025-02-15 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481360', 'tblTempUsageDetail_20' ) start [2025-02-15 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481360', 'tblTempUsageDetail_20' ) end [2025-02-15 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481360', 'tblTempVendorCDR_20' ) start [2025-02-15 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481360', 'tblTempVendorCDR_20' ) end [2025-02-15 13:23:22] Production.INFO: ProcessCDR(1,14481360,1,1,2) [2025-02-15 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481360', 'tblTempUsageDetail_20' ) start [2025-02-15 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481360', 'tblTempUsageDetail_20' ) end [2025-02-15 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:23:28] Production.INFO: ==15632== Releasing lock... [2025-02-15 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:23:28] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:24:06 [end_date_ymd] => 2025-02-15 13:24:06 [RateCDR] => 1 ) [2025-02-15 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-15 10:24:06' and `end` < '2025-02-15 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-15 13:24:22] Production.INFO: count ==2336 [2025-02-15 13:24:22] Production.ERROR: pbx CDR StartTime 2025-02-15 10:24:06 - End Time 2025-02-15 13:24:06 [2025-02-15 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481365', 'tblTempUsageDetail_20' ) start [2025-02-15 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481365', 'tblTempUsageDetail_20' ) end [2025-02-15 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481365', 'tblTempVendorCDR_20' ) start [2025-02-15 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481365', 'tblTempVendorCDR_20' ) end [2025-02-15 13:24:23] Production.INFO: ProcessCDR(1,14481365,1,1,2) [2025-02-15 13:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481365', 'tblTempUsageDetail_20' ) start [2025-02-15 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481365', 'tblTempUsageDetail_20' ) end [2025-02-15 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:24:27] Production.INFO: ==15716== Releasing lock... [2025-02-15 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:24:27] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:25:05 [end_date_ymd] => 2025-02-15 13:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:25:05' and `end` < '2025-02-15 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-15 13:25:24] Production.INFO: count ==2343 [2025-02-15 13:25:25] Production.ERROR: pbx CDR StartTime 2025-02-15 10:25:05 - End Time 2025-02-15 13:25:05 [2025-02-15 13:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481370', 'tblTempUsageDetail_20' ) start [2025-02-15 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481370', 'tblTempUsageDetail_20' ) end [2025-02-15 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481370', 'tblTempVendorCDR_20' ) start [2025-02-15 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481370', 'tblTempVendorCDR_20' ) end [2025-02-15 13:25:26] Production.INFO: ProcessCDR(1,14481370,1,1,2) [2025-02-15 13:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481370', 'tblTempUsageDetail_20' ) start [2025-02-15 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481370', 'tblTempUsageDetail_20' ) end [2025-02-15 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:25:31] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:25:31] Production.INFO: ==15832== Releasing lock... [2025-02-15 13:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:25:31] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:26:05 [end_date_ymd] => 2025-02-15 13:26:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:26:05' and `end` < '2025-02-15 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-15 13:26:19] Production.INFO: count ==2347 [2025-02-15 13:26:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:26:05 - End Time 2025-02-15 13:26:05 [2025-02-15 13:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481375', 'tblTempUsageDetail_20' ) start [2025-02-15 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481375', 'tblTempUsageDetail_20' ) end [2025-02-15 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481375', 'tblTempVendorCDR_20' ) start [2025-02-15 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481375', 'tblTempVendorCDR_20' ) end [2025-02-15 13:26:20] Production.INFO: ProcessCDR(1,14481375,1,1,2) [2025-02-15 13:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481375', 'tblTempUsageDetail_20' ) start [2025-02-15 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481375', 'tblTempUsageDetail_20' ) end [2025-02-15 13:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:26:25] Production.INFO: ==15903== Releasing lock... [2025-02-15 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:26:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:27:05 [end_date_ymd] => 2025-02-15 13:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:27:05' and `end` < '2025-02-15 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-15 13:27:18] Production.INFO: count ==2350 [2025-02-15 13:27:19] Production.ERROR: pbx CDR StartTime 2025-02-15 10:27:05 - End Time 2025-02-15 13:27:05 [2025-02-15 13:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481380', 'tblTempUsageDetail_20' ) start [2025-02-15 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481380', 'tblTempUsageDetail_20' ) end [2025-02-15 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481380', 'tblTempVendorCDR_20' ) start [2025-02-15 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481380', 'tblTempVendorCDR_20' ) end [2025-02-15 13:27:19] Production.INFO: ProcessCDR(1,14481380,1,1,2) [2025-02-15 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481380', 'tblTempUsageDetail_20' ) start [2025-02-15 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481380', 'tblTempUsageDetail_20' ) end [2025-02-15 13:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:27:25] Production.INFO: ==15974== Releasing lock... [2025-02-15 13:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:27:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:28:06 [end_date_ymd] => 2025-02-15 13:28:06 [RateCDR] => 1 ) [2025-02-15 13:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:28:06' and `end` < '2025-02-15 13:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:28:19] Production.INFO: count ==2338 [2025-02-15 13:28:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:28:06 - End Time 2025-02-15 13:28:06 [2025-02-15 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481385', 'tblTempUsageDetail_20' ) start [2025-02-15 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481385', 'tblTempUsageDetail_20' ) end [2025-02-15 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481385', 'tblTempVendorCDR_20' ) start [2025-02-15 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481385', 'tblTempVendorCDR_20' ) end [2025-02-15 13:28:20] Production.INFO: ProcessCDR(1,14481385,1,1,2) [2025-02-15 13:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481385', 'tblTempUsageDetail_20' ) start [2025-02-15 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481385', 'tblTempUsageDetail_20' ) end [2025-02-15 13:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:28:25] Production.INFO: ==16047== Releasing lock... [2025-02-15 13:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:28:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:29:05 [end_date_ymd] => 2025-02-15 13:29:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:29:05' and `end` < '2025-02-15 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:29:19] Production.INFO: count ==2332 [2025-02-15 13:29:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:29:05 - End Time 2025-02-15 13:29:05 [2025-02-15 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481390', 'tblTempUsageDetail_20' ) start [2025-02-15 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481390', 'tblTempUsageDetail_20' ) end [2025-02-15 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481390', 'tblTempVendorCDR_20' ) start [2025-02-15 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481390', 'tblTempVendorCDR_20' ) end [2025-02-15 13:29:20] Production.INFO: ProcessCDR(1,14481390,1,1,2) [2025-02-15 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481390', 'tblTempUsageDetail_20' ) start [2025-02-15 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481390', 'tblTempUsageDetail_20' ) end [2025-02-15 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:29:25] Production.INFO: ==16123== Releasing lock... [2025-02-15 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:29:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 13:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:30:07 [end_date_ymd] => 2025-02-15 13:30:07 [RateCDR] => 1 ) [2025-02-15 13:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:30:07' and `end` < '2025-02-15 13:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:30:20] Production.INFO: count ==2329 [2025-02-15 13:30:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:30:07 - End Time 2025-02-15 13:30:07 [2025-02-15 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481395', 'tblTempUsageDetail_20' ) start [2025-02-15 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481395', 'tblTempUsageDetail_20' ) end [2025-02-15 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481395', 'tblTempVendorCDR_20' ) start [2025-02-15 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481395', 'tblTempVendorCDR_20' ) end [2025-02-15 13:30:21] Production.INFO: ProcessCDR(1,14481395,1,1,2) [2025-02-15 13:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481395', 'tblTempUsageDetail_20' ) start [2025-02-15 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481395', 'tblTempUsageDetail_20' ) end [2025-02-15 13:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:30:26] Production.INFO: ==16196== Releasing lock... [2025-02-15 13:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:30:26] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:31:05 [end_date_ymd] => 2025-02-15 13:31:05 [RateCDR] => 1 ) [2025-02-15 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:31:05' and `end` < '2025-02-15 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:31:20] Production.INFO: count ==2391 [2025-02-15 13:31:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:31:05 - End Time 2025-02-15 13:31:05 [2025-02-15 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481401', 'tblTempUsageDetail_20' ) start [2025-02-15 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481401', 'tblTempUsageDetail_20' ) end [2025-02-15 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481401', 'tblTempVendorCDR_20' ) start [2025-02-15 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481401', 'tblTempVendorCDR_20' ) end [2025-02-15 13:31:21] Production.INFO: ProcessCDR(1,14481401,1,1,2) [2025-02-15 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481401', 'tblTempUsageDetail_20' ) start [2025-02-15 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481401', 'tblTempUsageDetail_20' ) end [2025-02-15 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:31:26] Production.INFO: ==16267== Releasing lock... [2025-02-15 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:31:26] Production.INFO: 46.25 MB #Memory Used# [2025-02-15 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:32:06 [end_date_ymd] => 2025-02-15 13:32:06 [RateCDR] => 1 ) [2025-02-15 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:32:06' and `end` < '2025-02-15 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:32:20] Production.INFO: count ==2392 [2025-02-15 13:32:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:32:06 - End Time 2025-02-15 13:32:06 [2025-02-15 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481406', 'tblTempUsageDetail_20' ) start [2025-02-15 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481406', 'tblTempUsageDetail_20' ) end [2025-02-15 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481406', 'tblTempVendorCDR_20' ) start [2025-02-15 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481406', 'tblTempVendorCDR_20' ) end [2025-02-15 13:32:21] Production.INFO: ProcessCDR(1,14481406,1,1,2) [2025-02-15 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481406', 'tblTempUsageDetail_20' ) start [2025-02-15 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481406', 'tblTempUsageDetail_20' ) end [2025-02-15 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:32:26] Production.INFO: ==16343== Releasing lock... [2025-02-15 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:32:26] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:33:05 [end_date_ymd] => 2025-02-15 13:33:05 [RateCDR] => 1 ) [2025-02-15 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:33:05' and `end` < '2025-02-15 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:33:19] Production.INFO: count ==2389 [2025-02-15 13:33:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:33:05 - End Time 2025-02-15 13:33:05 [2025-02-15 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481411', 'tblTempUsageDetail_20' ) start [2025-02-15 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481411', 'tblTempUsageDetail_20' ) end [2025-02-15 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481411', 'tblTempVendorCDR_20' ) start [2025-02-15 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481411', 'tblTempVendorCDR_20' ) end [2025-02-15 13:33:20] Production.INFO: ProcessCDR(1,14481411,1,1,2) [2025-02-15 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481411', 'tblTempUsageDetail_20' ) start [2025-02-15 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481411', 'tblTempUsageDetail_20' ) end [2025-02-15 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:33:25] Production.INFO: ==16414== Releasing lock... [2025-02-15 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:33:25] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:34:06 [end_date_ymd] => 2025-02-15 13:34:06 [RateCDR] => 1 ) [2025-02-15 13:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:34:06' and `end` < '2025-02-15 13:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:34:21] Production.INFO: count ==2364 [2025-02-15 13:34:22] Production.ERROR: pbx CDR StartTime 2025-02-15 10:34:06 - End Time 2025-02-15 13:34:06 [2025-02-15 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481416', 'tblTempUsageDetail_20' ) start [2025-02-15 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481416', 'tblTempUsageDetail_20' ) end [2025-02-15 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481416', 'tblTempVendorCDR_20' ) start [2025-02-15 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481416', 'tblTempVendorCDR_20' ) end [2025-02-15 13:34:22] Production.INFO: ProcessCDR(1,14481416,1,1,2) [2025-02-15 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481416', 'tblTempUsageDetail_20' ) start [2025-02-15 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481416', 'tblTempUsageDetail_20' ) end [2025-02-15 13:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:34:25] Production.INFO: ==16488== Releasing lock... [2025-02-15 13:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:34:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:35:05 [end_date_ymd] => 2025-02-15 13:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:35:05' and `end` < '2025-02-15 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-15 13:35:19] Production.INFO: count ==2359 [2025-02-15 13:35:19] Production.ERROR: pbx CDR StartTime 2025-02-15 10:35:05 - End Time 2025-02-15 13:35:05 [2025-02-15 13:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481421', 'tblTempUsageDetail_20' ) start [2025-02-15 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481421', 'tblTempUsageDetail_20' ) end [2025-02-15 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481421', 'tblTempVendorCDR_20' ) start [2025-02-15 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481421', 'tblTempVendorCDR_20' ) end [2025-02-15 13:35:20] Production.INFO: ProcessCDR(1,14481421,1,1,2) [2025-02-15 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481421', 'tblTempUsageDetail_20' ) start [2025-02-15 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481421', 'tblTempUsageDetail_20' ) end [2025-02-15 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:35:25] Production.INFO: ==16560== Releasing lock... [2025-02-15 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:35:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:36:06 [end_date_ymd] => 2025-02-15 13:36:06 [RateCDR] => 1 ) [2025-02-15 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:36:06' and `end` < '2025-02-15 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:36:19] Production.INFO: count ==2345 [2025-02-15 13:36:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:36:06 - End Time 2025-02-15 13:36:06 [2025-02-15 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481426', 'tblTempUsageDetail_20' ) start [2025-02-15 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481426', 'tblTempUsageDetail_20' ) end [2025-02-15 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481426', 'tblTempVendorCDR_20' ) start [2025-02-15 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481426', 'tblTempVendorCDR_20' ) end [2025-02-15 13:36:20] Production.INFO: ProcessCDR(1,14481426,1,1,2) [2025-02-15 13:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481426', 'tblTempUsageDetail_20' ) start [2025-02-15 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481426', 'tblTempUsageDetail_20' ) end [2025-02-15 13:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:36:25] Production.INFO: ==16630== Releasing lock... [2025-02-15 13:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:36:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:37:05 [end_date_ymd] => 2025-02-15 13:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:37:05' and `end` < '2025-02-15 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-15 13:37:19] Production.INFO: count ==2343 [2025-02-15 13:37:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:37:05 - End Time 2025-02-15 13:37:05 [2025-02-15 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481431', 'tblTempUsageDetail_20' ) start [2025-02-15 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481431', 'tblTempUsageDetail_20' ) end [2025-02-15 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481431', 'tblTempVendorCDR_20' ) start [2025-02-15 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481431', 'tblTempVendorCDR_20' ) end [2025-02-15 13:37:20] Production.INFO: ProcessCDR(1,14481431,1,1,2) [2025-02-15 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481431', 'tblTempUsageDetail_20' ) start [2025-02-15 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481431', 'tblTempUsageDetail_20' ) end [2025-02-15 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:37:23] Production.INFO: ==16699== Releasing lock... [2025-02-15 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:37:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:38:06 [end_date_ymd] => 2025-02-15 13:38:06 [RateCDR] => 1 ) [2025-02-15 13: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-15 10:38:06' and `end` < '2025-02-15 13: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-15 13:38:20] Production.INFO: count ==2353 [2025-02-15 13:38:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:38:06 - End Time 2025-02-15 13:38:06 [2025-02-15 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481436', 'tblTempUsageDetail_20' ) start [2025-02-15 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481436', 'tblTempUsageDetail_20' ) end [2025-02-15 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481436', 'tblTempVendorCDR_20' ) start [2025-02-15 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481436', 'tblTempVendorCDR_20' ) end [2025-02-15 13:38:21] Production.INFO: ProcessCDR(1,14481436,1,1,2) [2025-02-15 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481436', 'tblTempUsageDetail_20' ) start [2025-02-15 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481436', 'tblTempUsageDetail_20' ) end [2025-02-15 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:38:25] Production.INFO: ==16773== Releasing lock... [2025-02-15 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:38:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:39:05 [end_date_ymd] => 2025-02-15 13:39:05 [RateCDR] => 1 ) [2025-02-15 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:39:05' and `end` < '2025-02-15 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:39:22] Production.INFO: count ==2356 [2025-02-15 13:39:23] Production.ERROR: pbx CDR StartTime 2025-02-15 10:39:05 - End Time 2025-02-15 13:39:05 [2025-02-15 13:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481441', 'tblTempUsageDetail_20' ) start [2025-02-15 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481441', 'tblTempUsageDetail_20' ) end [2025-02-15 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481441', 'tblTempVendorCDR_20' ) start [2025-02-15 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481441', 'tblTempVendorCDR_20' ) end [2025-02-15 13:39:23] Production.INFO: ProcessCDR(1,14481441,1,1,2) [2025-02-15 13:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481441', 'tblTempUsageDetail_20' ) start [2025-02-15 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481441', 'tblTempUsageDetail_20' ) end [2025-02-15 13:39:28] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:39:28] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:39:28] Production.INFO: ==16843== Releasing lock... [2025-02-15 13:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:39:28] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:40:07 [end_date_ymd] => 2025-02-15 13:40:07 [RateCDR] => 1 ) [2025-02-15 13: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-15 10:40:07' and `end` < '2025-02-15 13: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-15 13:40:22] Production.INFO: count ==2356 [2025-02-15 13:40:23] Production.ERROR: pbx CDR StartTime 2025-02-15 10:40:07 - End Time 2025-02-15 13:40:07 [2025-02-15 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481447', 'tblTempUsageDetail_20' ) start [2025-02-15 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481447', 'tblTempUsageDetail_20' ) end [2025-02-15 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481447', 'tblTempVendorCDR_20' ) start [2025-02-15 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481447', 'tblTempVendorCDR_20' ) end [2025-02-15 13:40:23] Production.INFO: ProcessCDR(1,14481447,1,1,2) [2025-02-15 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481447', 'tblTempUsageDetail_20' ) start [2025-02-15 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481447', 'tblTempUsageDetail_20' ) end [2025-02-15 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:40:28] Production.INFO: ==16956== Releasing lock... [2025-02-15 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:40:28] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:41:06 [end_date_ymd] => 2025-02-15 13:41:06 [RateCDR] => 1 ) [2025-02-15 13: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-15 10:41:06' and `end` < '2025-02-15 13: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-15 13:41:19] Production.INFO: count ==2386 [2025-02-15 13:41:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:41:06 - End Time 2025-02-15 13:41:06 [2025-02-15 13:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481452', 'tblTempUsageDetail_20' ) start [2025-02-15 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481452', 'tblTempUsageDetail_20' ) end [2025-02-15 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481452', 'tblTempVendorCDR_20' ) start [2025-02-15 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481452', 'tblTempVendorCDR_20' ) end [2025-02-15 13:41:20] Production.INFO: ProcessCDR(1,14481452,1,1,2) [2025-02-15 13:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481452', 'tblTempUsageDetail_20' ) start [2025-02-15 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481452', 'tblTempUsageDetail_20' ) end [2025-02-15 13:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:41:25] Production.INFO: ==17030== Releasing lock... [2025-02-15 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:41:25] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:42:05 [end_date_ymd] => 2025-02-15 13:42:05 [RateCDR] => 1 ) [2025-02-15 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:42:05' and `end` < '2025-02-15 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:42:20] Production.INFO: count ==2383 [2025-02-15 13:42:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:42:05 - End Time 2025-02-15 13:42:05 [2025-02-15 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481457', 'tblTempUsageDetail_20' ) start [2025-02-15 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481457', 'tblTempUsageDetail_20' ) end [2025-02-15 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481457', 'tblTempVendorCDR_20' ) start [2025-02-15 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481457', 'tblTempVendorCDR_20' ) end [2025-02-15 13:42:21] Production.INFO: ProcessCDR(1,14481457,1,1,2) [2025-02-15 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481457', 'tblTempUsageDetail_20' ) start [2025-02-15 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481457', 'tblTempUsageDetail_20' ) end [2025-02-15 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:42:26] Production.INFO: ==17105== Releasing lock... [2025-02-15 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:42:26] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:43:05 [end_date_ymd] => 2025-02-15 13:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:43:05' and `end` < '2025-02-15 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-15 13:43:19] Production.INFO: count ==2371 [2025-02-15 13:43:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:43:05 - End Time 2025-02-15 13:43:05 [2025-02-15 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481462', 'tblTempUsageDetail_20' ) start [2025-02-15 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481462', 'tblTempUsageDetail_20' ) end [2025-02-15 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481462', 'tblTempVendorCDR_20' ) start [2025-02-15 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481462', 'tblTempVendorCDR_20' ) end [2025-02-15 13:43:20] Production.INFO: ProcessCDR(1,14481462,1,1,2) [2025-02-15 13:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481462', 'tblTempUsageDetail_20' ) start [2025-02-15 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481462', 'tblTempUsageDetail_20' ) end [2025-02-15 13:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:43:25] Production.INFO: ==17179== Releasing lock... [2025-02-15 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:43:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:44:05 [end_date_ymd] => 2025-02-15 13:44:05 [RateCDR] => 1 ) [2025-02-15 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:44:05' and `end` < '2025-02-15 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:44:19] Production.INFO: count ==2379 [2025-02-15 13:44:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:44:05 - End Time 2025-02-15 13:44:05 [2025-02-15 13:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481467', 'tblTempUsageDetail_20' ) start [2025-02-15 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481467', 'tblTempUsageDetail_20' ) end [2025-02-15 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481467', 'tblTempVendorCDR_20' ) start [2025-02-15 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481467', 'tblTempVendorCDR_20' ) end [2025-02-15 13:44:20] Production.INFO: ProcessCDR(1,14481467,1,1,2) [2025-02-15 13:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481467', 'tblTempUsageDetail_20' ) start [2025-02-15 13:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481467', 'tblTempUsageDetail_20' ) end [2025-02-15 13:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:44:25] Production.INFO: ==17250== Releasing lock... [2025-02-15 13:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:44:25] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:45:06 [end_date_ymd] => 2025-02-15 13:45:06 [RateCDR] => 1 ) [2025-02-15 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:45:06' and `end` < '2025-02-15 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:45:19] Production.INFO: count ==2399 [2025-02-15 13:45:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:45:06 - End Time 2025-02-15 13:45:06 [2025-02-15 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481472', 'tblTempUsageDetail_20' ) start [2025-02-15 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481472', 'tblTempUsageDetail_20' ) end [2025-02-15 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481472', 'tblTempVendorCDR_20' ) start [2025-02-15 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481472', 'tblTempVendorCDR_20' ) end [2025-02-15 13:45:20] Production.INFO: ProcessCDR(1,14481472,1,1,2) [2025-02-15 13:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481472', 'tblTempUsageDetail_20' ) start [2025-02-15 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481472', 'tblTempUsageDetail_20' ) end [2025-02-15 13:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:45:25] Production.INFO: ==17321== Releasing lock... [2025-02-15 13:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:45:25] Production.INFO: 46 MB #Memory Used# [2025-02-15 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:46:06 [end_date_ymd] => 2025-02-15 13:46:06 [RateCDR] => 1 ) [2025-02-15 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:46:06' and `end` < '2025-02-15 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:46:20] Production.INFO: count ==2295 [2025-02-15 13:46:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:46:06 - End Time 2025-02-15 13:46:06 [2025-02-15 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481477', 'tblTempUsageDetail_20' ) start [2025-02-15 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481477', 'tblTempUsageDetail_20' ) end [2025-02-15 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481477', 'tblTempVendorCDR_20' ) start [2025-02-15 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481477', 'tblTempVendorCDR_20' ) end [2025-02-15 13:46:21] Production.INFO: ProcessCDR(1,14481477,1,1,2) [2025-02-15 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481477', 'tblTempUsageDetail_20' ) start [2025-02-15 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481477', 'tblTempUsageDetail_20' ) end [2025-02-15 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:46:26] Production.INFO: ==17391== Releasing lock... [2025-02-15 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:46:26] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:47:06 [end_date_ymd] => 2025-02-15 13:47:06 [RateCDR] => 1 ) [2025-02-15 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:47:06' and `end` < '2025-02-15 13:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:47:21] Production.INFO: count ==2309 [2025-02-15 13:47:22] Production.ERROR: pbx CDR StartTime 2025-02-15 10:47:06 - End Time 2025-02-15 13:47:06 [2025-02-15 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481482', 'tblTempUsageDetail_20' ) start [2025-02-15 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481482', 'tblTempUsageDetail_20' ) end [2025-02-15 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481482', 'tblTempVendorCDR_20' ) start [2025-02-15 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481482', 'tblTempVendorCDR_20' ) end [2025-02-15 13:47:22] Production.INFO: ProcessCDR(1,14481482,1,1,2) [2025-02-15 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481482', 'tblTempUsageDetail_20' ) start [2025-02-15 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481482', 'tblTempUsageDetail_20' ) end [2025-02-15 13:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:47:26] Production.INFO: ==17462== Releasing lock... [2025-02-15 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:47:26] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:48:05 [end_date_ymd] => 2025-02-15 13:48:05 [RateCDR] => 1 ) [2025-02-15 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:48:05' and `end` < '2025-02-15 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:48:19] Production.INFO: count ==2304 [2025-02-15 13:48:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:48:05 - End Time 2025-02-15 13:48:05 [2025-02-15 13:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481487', 'tblTempUsageDetail_20' ) start [2025-02-15 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481487', 'tblTempUsageDetail_20' ) end [2025-02-15 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481487', 'tblTempVendorCDR_20' ) start [2025-02-15 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481487', 'tblTempVendorCDR_20' ) end [2025-02-15 13:48:20] Production.INFO: ProcessCDR(1,14481487,1,1,2) [2025-02-15 13:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481487', 'tblTempUsageDetail_20' ) start [2025-02-15 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481487', 'tblTempUsageDetail_20' ) end [2025-02-15 13:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:48:24] Production.INFO: ==17532== Releasing lock... [2025-02-15 13:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:48:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:49:06 [end_date_ymd] => 2025-02-15 13:49:06 [RateCDR] => 1 ) [2025-02-15 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:49:06' and `end` < '2025-02-15 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:49:19] Production.INFO: count ==2290 [2025-02-15 13:49:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:49:06 - End Time 2025-02-15 13:49:06 [2025-02-15 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481492', 'tblTempUsageDetail_20' ) start [2025-02-15 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481492', 'tblTempUsageDetail_20' ) end [2025-02-15 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481492', 'tblTempVendorCDR_20' ) start [2025-02-15 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481492', 'tblTempVendorCDR_20' ) end [2025-02-15 13:49:20] Production.INFO: ProcessCDR(1,14481492,1,1,2) [2025-02-15 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481492', 'tblTempUsageDetail_20' ) start [2025-02-15 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481492', 'tblTempUsageDetail_20' ) end [2025-02-15 13:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:49:24] Production.INFO: ==17604== Releasing lock... [2025-02-15 13:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:49:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:50:06 [end_date_ymd] => 2025-02-15 13:50:06 [RateCDR] => 1 ) [2025-02-15 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-15 10:50:06' and `end` < '2025-02-15 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-15 13:50:20] Production.INFO: count ==2290 [2025-02-15 13:50:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:50:06 - End Time 2025-02-15 13:50:06 [2025-02-15 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481498', 'tblTempUsageDetail_20' ) start [2025-02-15 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481498', 'tblTempUsageDetail_20' ) end [2025-02-15 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481498', 'tblTempVendorCDR_20' ) start [2025-02-15 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481498', 'tblTempVendorCDR_20' ) end [2025-02-15 13:50:21] Production.INFO: ProcessCDR(1,14481498,1,1,2) [2025-02-15 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481498', 'tblTempUsageDetail_20' ) start [2025-02-15 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481498', 'tblTempUsageDetail_20' ) end [2025-02-15 13:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:50:24] Production.INFO: ==17678== Releasing lock... [2025-02-15 13:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:50:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-15 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:51:06 [end_date_ymd] => 2025-02-15 13:51:06 [RateCDR] => 1 ) [2025-02-15 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:51:06' and `end` < '2025-02-15 13:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:51:19] Production.INFO: count ==2276 [2025-02-15 13:51:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:51:06 - End Time 2025-02-15 13:51:06 [2025-02-15 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481503', 'tblTempUsageDetail_20' ) start [2025-02-15 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481503', 'tblTempUsageDetail_20' ) end [2025-02-15 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481503', 'tblTempVendorCDR_20' ) start [2025-02-15 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481503', 'tblTempVendorCDR_20' ) end [2025-02-15 13:51:20] Production.INFO: ProcessCDR(1,14481503,1,1,2) [2025-02-15 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481503', 'tblTempUsageDetail_20' ) start [2025-02-15 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481503', 'tblTempUsageDetail_20' ) end [2025-02-15 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:51:25] Production.INFO: ==17756== Releasing lock... [2025-02-15 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:51:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:52:05 [end_date_ymd] => 2025-02-15 13:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:52:05' and `end` < '2025-02-15 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-15 13:52:20] Production.INFO: count ==2275 [2025-02-15 13:52:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:52:05 - End Time 2025-02-15 13:52:05 [2025-02-15 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481508', 'tblTempUsageDetail_20' ) start [2025-02-15 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481508', 'tblTempUsageDetail_20' ) end [2025-02-15 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481508', 'tblTempVendorCDR_20' ) start [2025-02-15 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481508', 'tblTempVendorCDR_20' ) end [2025-02-15 13:52:21] Production.INFO: ProcessCDR(1,14481508,1,1,2) [2025-02-15 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481508', 'tblTempUsageDetail_20' ) start [2025-02-15 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481508', 'tblTempUsageDetail_20' ) end [2025-02-15 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:52:26] Production.INFO: ==17826== Releasing lock... [2025-02-15 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:52:26] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:53:06 [end_date_ymd] => 2025-02-15 13:53:06 [RateCDR] => 1 ) [2025-02-15 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-15 10:53:06' and `end` < '2025-02-15 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-15 13:53:20] Production.INFO: count ==2272 [2025-02-15 13:53:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:53:06 - End Time 2025-02-15 13:53:06 [2025-02-15 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481513', 'tblTempUsageDetail_20' ) start [2025-02-15 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481513', 'tblTempUsageDetail_20' ) end [2025-02-15 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481513', 'tblTempVendorCDR_20' ) start [2025-02-15 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481513', 'tblTempVendorCDR_20' ) end [2025-02-15 13:53:21] Production.INFO: ProcessCDR(1,14481513,1,1,2) [2025-02-15 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481513', 'tblTempUsageDetail_20' ) start [2025-02-15 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481513', 'tblTempUsageDetail_20' ) end [2025-02-15 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:53:26] Production.INFO: ==17899== Releasing lock... [2025-02-15 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:53:26] Production.INFO: 45 MB #Memory Used# [2025-02-15 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:54:05 [end_date_ymd] => 2025-02-15 13:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:54:05' and `end` < '2025-02-15 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-15 13:54:19] Production.INFO: count ==2260 [2025-02-15 13:54:20] Production.ERROR: pbx CDR StartTime 2025-02-15 10:54:05 - End Time 2025-02-15 13:54:05 [2025-02-15 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481518', 'tblTempUsageDetail_20' ) start [2025-02-15 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481518', 'tblTempUsageDetail_20' ) end [2025-02-15 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481518', 'tblTempVendorCDR_20' ) start [2025-02-15 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481518', 'tblTempVendorCDR_20' ) end [2025-02-15 13:54:20] Production.INFO: ProcessCDR(1,14481518,1,1,2) [2025-02-15 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481518', 'tblTempUsageDetail_20' ) start [2025-02-15 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481518', 'tblTempUsageDetail_20' ) end [2025-02-15 13:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:54:25] Production.INFO: ==17968== Releasing lock... [2025-02-15 13:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:54:25] Production.INFO: 45 MB #Memory Used# [2025-02-15 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:55:06 [end_date_ymd] => 2025-02-15 13:55:06 [RateCDR] => 1 ) [2025-02-15 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-15 10:55:06' and `end` < '2025-02-15 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-15 13:55:20] Production.INFO: count ==2260 [2025-02-15 13:55:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:55:06 - End Time 2025-02-15 13:55:06 [2025-02-15 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481523', 'tblTempUsageDetail_20' ) start [2025-02-15 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481523', 'tblTempUsageDetail_20' ) end [2025-02-15 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481523', 'tblTempVendorCDR_20' ) start [2025-02-15 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481523', 'tblTempVendorCDR_20' ) end [2025-02-15 13:55:21] Production.INFO: ProcessCDR(1,14481523,1,1,2) [2025-02-15 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481523', 'tblTempUsageDetail_20' ) start [2025-02-15 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481523', 'tblTempUsageDetail_20' ) end [2025-02-15 13:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:55:25] Production.INFO: ==18041== Releasing lock... [2025-02-15 13:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:55:25] Production.INFO: 45 MB #Memory Used# [2025-02-15 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:56:05 [end_date_ymd] => 2025-02-15 13:56:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:56:05' and `end` < '2025-02-15 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-15 13:56:19] Production.INFO: count ==2252 [2025-02-15 13:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 10:56:05 - End Time 2025-02-15 13:56:05 [2025-02-15 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481528', 'tblTempUsageDetail_20' ) start [2025-02-15 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481528', 'tblTempUsageDetail_20' ) end [2025-02-15 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481528', 'tblTempVendorCDR_20' ) start [2025-02-15 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481528', 'tblTempVendorCDR_20' ) end [2025-02-15 13:56:20] Production.INFO: ProcessCDR(1,14481528,1,1,2) [2025-02-15 13:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481528', 'tblTempUsageDetail_20' ) start [2025-02-15 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481528', 'tblTempUsageDetail_20' ) end [2025-02-15 13:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:56:23] Production.INFO: ==18154== Releasing lock... [2025-02-15 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:56:23] Production.INFO: 45 MB #Memory Used# [2025-02-15 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:57:05 [end_date_ymd] => 2025-02-15 13:57:05 [RateCDR] => 1 ) [2025-02-15 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 10:57:05' and `end` < '2025-02-15 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 13:57:20] Production.INFO: count ==2242 [2025-02-15 13:57:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:57:05 - End Time 2025-02-15 13:57:05 [2025-02-15 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481533', 'tblTempUsageDetail_20' ) start [2025-02-15 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481533', 'tblTempUsageDetail_20' ) end [2025-02-15 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481533', 'tblTempVendorCDR_20' ) start [2025-02-15 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481533', 'tblTempVendorCDR_20' ) end [2025-02-15 13:57:21] Production.INFO: ProcessCDR(1,14481533,1,1,2) [2025-02-15 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481533', 'tblTempUsageDetail_20' ) start [2025-02-15 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481533', 'tblTempUsageDetail_20' ) end [2025-02-15 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:57:26] Production.INFO: ==18226== Releasing lock... [2025-02-15 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:57:26] Production.INFO: 45 MB #Memory Used# [2025-02-15 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:58:05 [end_date_ymd] => 2025-02-15 13:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 10:58:05' and `end` < '2025-02-15 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-15 13:58:19] Production.INFO: count ==2253 [2025-02-15 13:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 10:58:05 - End Time 2025-02-15 13:58:05 [2025-02-15 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481538', 'tblTempUsageDetail_20' ) start [2025-02-15 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481538', 'tblTempUsageDetail_20' ) end [2025-02-15 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481538', 'tblTempVendorCDR_20' ) start [2025-02-15 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481538', 'tblTempVendorCDR_20' ) end [2025-02-15 13:58:20] Production.INFO: ProcessCDR(1,14481538,1,1,2) [2025-02-15 13:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481538', 'tblTempUsageDetail_20' ) start [2025-02-15 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481538', 'tblTempUsageDetail_20' ) end [2025-02-15 13:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:58:25] Production.INFO: ==18296== Releasing lock... [2025-02-15 13:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:58:25] Production.INFO: 45 MB #Memory Used# [2025-02-15 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 10:59:06 [end_date_ymd] => 2025-02-15 13:59:06 [RateCDR] => 1 ) [2025-02-15 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-15 10:59:06' and `end` < '2025-02-15 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-15 13:59:20] Production.INFO: count ==2255 [2025-02-15 13:59:21] Production.ERROR: pbx CDR StartTime 2025-02-15 10:59:06 - End Time 2025-02-15 13:59:06 [2025-02-15 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481543', 'tblTempUsageDetail_20' ) start [2025-02-15 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481543', 'tblTempUsageDetail_20' ) end [2025-02-15 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481543', 'tblTempVendorCDR_20' ) start [2025-02-15 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481543', 'tblTempVendorCDR_20' ) end [2025-02-15 13:59:21] Production.INFO: ProcessCDR(1,14481543,1,1,2) [2025-02-15 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481543', 'tblTempUsageDetail_20' ) start [2025-02-15 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481543', 'tblTempUsageDetail_20' ) end [2025-02-15 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 13:59:26] Production.INFO: ==18366== Releasing lock... [2025-02-15 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 13:59:26] Production.INFO: 45 MB #Memory Used# [2025-02-15 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:00:06 [end_date_ymd] => 2025-02-15 14:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 11:00:06' and `end` < '2025-02-15 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-15 14:00:20] Production.INFO: count ==2258 [2025-02-15 14:00:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:00:06 - End Time 2025-02-15 14:00:06 [2025-02-15 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481548', 'tblTempUsageDetail_20' ) start [2025-02-15 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481548', 'tblTempUsageDetail_20' ) end [2025-02-15 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481548', 'tblTempVendorCDR_20' ) start [2025-02-15 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481548', 'tblTempVendorCDR_20' ) end [2025-02-15 14:00:21] Production.INFO: ProcessCDR(1,14481548,1,1,2) [2025-02-15 14:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481548', 'tblTempUsageDetail_20' ) start [2025-02-15 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481548', 'tblTempUsageDetail_20' ) end [2025-02-15 14:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:00:26] Production.INFO: ==18441== Releasing lock... [2025-02-15 14:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:00:26] Production.INFO: 45 MB #Memory Used# [2025-02-15 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:01:06 [end_date_ymd] => 2025-02-15 14:01:06 [RateCDR] => 1 ) [2025-02-15 14:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:01:06' and `end` < '2025-02-15 14:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:01:19] Production.INFO: count ==2245 [2025-02-15 14:01:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:01:06 - End Time 2025-02-15 14:01:06 [2025-02-15 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481554', 'tblTempUsageDetail_20' ) start [2025-02-15 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481554', 'tblTempUsageDetail_20' ) end [2025-02-15 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481554', 'tblTempVendorCDR_20' ) start [2025-02-15 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481554', 'tblTempVendorCDR_20' ) end [2025-02-15 14:01:20] Production.INFO: ProcessCDR(1,14481554,1,1,2) [2025-02-15 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481554', 'tblTempUsageDetail_20' ) start [2025-02-15 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481554', 'tblTempUsageDetail_20' ) end [2025-02-15 14:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:01:23] Production.INFO: ==18525== Releasing lock... [2025-02-15 14:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:01:23] Production.INFO: 45 MB #Memory Used# [2025-02-15 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:02:05 [end_date_ymd] => 2025-02-15 14:02:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:02:05' and `end` < '2025-02-15 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-15 14:02:19] Production.INFO: count ==2253 [2025-02-15 14:02:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:02:05 - End Time 2025-02-15 14:02:05 [2025-02-15 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481559', 'tblTempUsageDetail_20' ) start [2025-02-15 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481559', 'tblTempUsageDetail_20' ) end [2025-02-15 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481559', 'tblTempVendorCDR_20' ) start [2025-02-15 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481559', 'tblTempVendorCDR_20' ) end [2025-02-15 14:02:20] Production.INFO: ProcessCDR(1,14481559,1,1,2) [2025-02-15 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481559', 'tblTempUsageDetail_20' ) start [2025-02-15 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481559', 'tblTempUsageDetail_20' ) end [2025-02-15 14:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:02:25] Production.INFO: ==18596== Releasing lock... [2025-02-15 14:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:02:25] Production.INFO: 45 MB #Memory Used# [2025-02-15 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:03:06 [end_date_ymd] => 2025-02-15 14:03:06 [RateCDR] => 1 ) [2025-02-15 14:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:03:06' and `end` < '2025-02-15 14:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:03:19] Production.INFO: count ==2252 [2025-02-15 14:03:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:03:06 - End Time 2025-02-15 14:03:06 [2025-02-15 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481564', 'tblTempUsageDetail_20' ) start [2025-02-15 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481564', 'tblTempUsageDetail_20' ) end [2025-02-15 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481564', 'tblTempVendorCDR_20' ) start [2025-02-15 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481564', 'tblTempVendorCDR_20' ) end [2025-02-15 14:03:20] Production.INFO: ProcessCDR(1,14481564,1,1,2) [2025-02-15 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481564', 'tblTempUsageDetail_20' ) start [2025-02-15 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481564', 'tblTempUsageDetail_20' ) end [2025-02-15 14:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:03:25] Production.INFO: ==18667== Releasing lock... [2025-02-15 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:03:25] Production.INFO: 45 MB #Memory Used# [2025-02-15 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:04:05 [end_date_ymd] => 2025-02-15 14:04:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:04:05' and `end` < '2025-02-15 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-15 14:04:18] Production.INFO: count ==2248 [2025-02-15 14:04:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:04:05 - End Time 2025-02-15 14:04:05 [2025-02-15 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481569', 'tblTempUsageDetail_20' ) start [2025-02-15 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481569', 'tblTempUsageDetail_20' ) end [2025-02-15 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481569', 'tblTempVendorCDR_20' ) start [2025-02-15 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481569', 'tblTempVendorCDR_20' ) end [2025-02-15 14:04:19] Production.INFO: ProcessCDR(1,14481569,1,1,2) [2025-02-15 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481569', 'tblTempUsageDetail_20' ) start [2025-02-15 14:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481569', 'tblTempUsageDetail_20' ) end [2025-02-15 14:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:04:24] Production.INFO: ==18738== Releasing lock... [2025-02-15 14:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:04:24] Production.INFO: 45 MB #Memory Used# [2025-02-15 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:05:06 [end_date_ymd] => 2025-02-15 14:05:06 [RateCDR] => 1 ) [2025-02-15 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-15 11:05:06' and `end` < '2025-02-15 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-15 14:05:19] Production.INFO: count ==2250 [2025-02-15 14:05:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:05:06 - End Time 2025-02-15 14:05:06 [2025-02-15 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481574', 'tblTempUsageDetail_20' ) start [2025-02-15 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481574', 'tblTempUsageDetail_20' ) end [2025-02-15 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481574', 'tblTempVendorCDR_20' ) start [2025-02-15 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481574', 'tblTempVendorCDR_20' ) end [2025-02-15 14:05:20] Production.INFO: ProcessCDR(1,14481574,1,1,2) [2025-02-15 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481574', 'tblTempUsageDetail_20' ) start [2025-02-15 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481574', 'tblTempUsageDetail_20' ) end [2025-02-15 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:05:25] Production.INFO: ==18811== Releasing lock... [2025-02-15 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:05:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:06:05 [end_date_ymd] => 2025-02-15 14:06:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:06:05' and `end` < '2025-02-15 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-15 14:06:18] Production.INFO: count ==2255 [2025-02-15 14:06:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:06:05 - End Time 2025-02-15 14:06:05 [2025-02-15 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481579', 'tblTempUsageDetail_20' ) start [2025-02-15 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481579', 'tblTempUsageDetail_20' ) end [2025-02-15 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481579', 'tblTempVendorCDR_20' ) start [2025-02-15 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481579', 'tblTempVendorCDR_20' ) end [2025-02-15 14:06:19] Production.INFO: ProcessCDR(1,14481579,1,1,2) [2025-02-15 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481579', 'tblTempUsageDetail_20' ) start [2025-02-15 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481579', 'tblTempUsageDetail_20' ) end [2025-02-15 14:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:06:25] Production.INFO: ==18880== Releasing lock... [2025-02-15 14:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:06:25] Production.INFO: 45 MB #Memory Used# [2025-02-15 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:07:06 [end_date_ymd] => 2025-02-15 14:07:06 [RateCDR] => 1 ) [2025-02-15 14:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:07:06' and `end` < '2025-02-15 14:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:07:20] Production.INFO: count ==2257 [2025-02-15 14:07:21] Production.ERROR: pbx CDR StartTime 2025-02-15 11:07:06 - End Time 2025-02-15 14:07:06 [2025-02-15 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481584', 'tblTempUsageDetail_20' ) start [2025-02-15 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481584', 'tblTempUsageDetail_20' ) end [2025-02-15 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481584', 'tblTempVendorCDR_20' ) start [2025-02-15 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481584', 'tblTempVendorCDR_20' ) end [2025-02-15 14:07:21] Production.INFO: ProcessCDR(1,14481584,1,1,2) [2025-02-15 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481584', 'tblTempUsageDetail_20' ) start [2025-02-15 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481584', 'tblTempUsageDetail_20' ) end [2025-02-15 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:07:26] Production.INFO: ==18952== Releasing lock... [2025-02-15 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:07:26] Production.INFO: 45 MB #Memory Used# [2025-02-15 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:08:05 [end_date_ymd] => 2025-02-15 14:08:05 [RateCDR] => 1 ) [2025-02-15 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:08:05' and `end` < '2025-02-15 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:08:18] Production.INFO: count ==2261 [2025-02-15 14:08:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:08:05 - End Time 2025-02-15 14:08:05 [2025-02-15 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481589', 'tblTempUsageDetail_20' ) start [2025-02-15 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481589', 'tblTempUsageDetail_20' ) end [2025-02-15 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481589', 'tblTempVendorCDR_20' ) start [2025-02-15 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481589', 'tblTempVendorCDR_20' ) end [2025-02-15 14:08:19] Production.INFO: ProcessCDR(1,14481589,1,1,2) [2025-02-15 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481589', 'tblTempUsageDetail_20' ) start [2025-02-15 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481589', 'tblTempUsageDetail_20' ) end [2025-02-15 14:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:08:25] Production.INFO: ==19026== Releasing lock... [2025-02-15 14:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:08:25] Production.INFO: 45 MB #Memory Used# [2025-02-15 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:09:06 [end_date_ymd] => 2025-02-15 14:09:06 [RateCDR] => 1 ) [2025-02-15 14:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:09:06' and `end` < '2025-02-15 14:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:09:19] Production.INFO: count ==2263 [2025-02-15 14:09:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:09:06 - End Time 2025-02-15 14:09:06 [2025-02-15 14:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481594', 'tblTempUsageDetail_20' ) start [2025-02-15 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481594', 'tblTempUsageDetail_20' ) end [2025-02-15 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481594', 'tblTempVendorCDR_20' ) start [2025-02-15 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481594', 'tblTempVendorCDR_20' ) end [2025-02-15 14:09:20] Production.INFO: ProcessCDR(1,14481594,1,1,2) [2025-02-15 14:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481594', 'tblTempUsageDetail_20' ) start [2025-02-15 14:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481594', 'tblTempUsageDetail_20' ) end [2025-02-15 14:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:09:25] Production.INFO: ==19106== Releasing lock... [2025-02-15 14:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:09:25] Production.INFO: 45 MB #Memory Used# [2025-02-15 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:10:06 [end_date_ymd] => 2025-02-15 14:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 11:10:06' and `end` < '2025-02-15 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-15 14:10:20] Production.INFO: count ==2269 [2025-02-15 14:10:21] Production.ERROR: pbx CDR StartTime 2025-02-15 11:10:06 - End Time 2025-02-15 14:10:06 [2025-02-15 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481599', 'tblTempUsageDetail_20' ) start [2025-02-15 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481599', 'tblTempUsageDetail_20' ) end [2025-02-15 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481599', 'tblTempVendorCDR_20' ) start [2025-02-15 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481599', 'tblTempVendorCDR_20' ) end [2025-02-15 14:10:21] Production.INFO: ProcessCDR(1,14481599,1,1,2) [2025-02-15 14:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481599', 'tblTempUsageDetail_20' ) start [2025-02-15 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481599', 'tblTempUsageDetail_20' ) end [2025-02-15 14:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:10:26] Production.INFO: ==19184== Releasing lock... [2025-02-15 14:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:10:26] Production.INFO: 45 MB #Memory Used# [2025-02-15 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:11:06 [end_date_ymd] => 2025-02-15 14:11:06 [RateCDR] => 1 ) [2025-02-15 14: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-15 11:11:06' and `end` < '2025-02-15 14: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-15 14:11:19] Production.INFO: count ==2306 [2025-02-15 14:11:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:11:06 - End Time 2025-02-15 14:11:06 [2025-02-15 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481605', 'tblTempUsageDetail_20' ) start [2025-02-15 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481605', 'tblTempUsageDetail_20' ) end [2025-02-15 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481605', 'tblTempVendorCDR_20' ) start [2025-02-15 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481605', 'tblTempVendorCDR_20' ) end [2025-02-15 14:11:20] Production.INFO: ProcessCDR(1,14481605,1,1,2) [2025-02-15 14:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481605', 'tblTempUsageDetail_20' ) start [2025-02-15 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481605', 'tblTempUsageDetail_20' ) end [2025-02-15 14:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:11:25] Production.INFO: ==19296== Releasing lock... [2025-02-15 14:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:11:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-15 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:12:05 [end_date_ymd] => 2025-02-15 14:12:05 [RateCDR] => 1 ) [2025-02-15 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:12:05' and `end` < '2025-02-15 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:12:18] Production.INFO: count ==2292 [2025-02-15 14:12:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:12:05 - End Time 2025-02-15 14:12:05 [2025-02-15 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481610', 'tblTempUsageDetail_20' ) start [2025-02-15 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481610', 'tblTempUsageDetail_20' ) end [2025-02-15 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481610', 'tblTempVendorCDR_20' ) start [2025-02-15 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481610', 'tblTempVendorCDR_20' ) end [2025-02-15 14:12:19] Production.INFO: ProcessCDR(1,14481610,1,1,2) [2025-02-15 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481610', 'tblTempUsageDetail_20' ) start [2025-02-15 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481610', 'tblTempUsageDetail_20' ) end [2025-02-15 14:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:12:24] Production.INFO: ==19367== Releasing lock... [2025-02-15 14:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:12:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:13:05 [end_date_ymd] => 2025-02-15 14:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:13:05' and `end` < '2025-02-15 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-15 14:13:19] Production.INFO: count ==2294 [2025-02-15 14:13:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:13:05 - End Time 2025-02-15 14:13:05 [2025-02-15 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481615', 'tblTempUsageDetail_20' ) start [2025-02-15 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481615', 'tblTempUsageDetail_20' ) end [2025-02-15 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481615', 'tblTempVendorCDR_20' ) start [2025-02-15 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481615', 'tblTempVendorCDR_20' ) end [2025-02-15 14:13:19] Production.INFO: ProcessCDR(1,14481615,1,1,2) [2025-02-15 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481615', 'tblTempUsageDetail_20' ) start [2025-02-15 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481615', 'tblTempUsageDetail_20' ) end [2025-02-15 14:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:13:24] Production.INFO: ==19440== Releasing lock... [2025-02-15 14:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:13:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-15 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:14:05 [end_date_ymd] => 2025-02-15 14:14:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:14:05' and `end` < '2025-02-15 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-15 14:14:18] Production.INFO: count ==2181 [2025-02-15 14:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:14:05 - End Time 2025-02-15 14:14:05 [2025-02-15 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481620', 'tblTempUsageDetail_20' ) start [2025-02-15 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481620', 'tblTempUsageDetail_20' ) end [2025-02-15 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481620', 'tblTempVendorCDR_20' ) start [2025-02-15 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481620', 'tblTempVendorCDR_20' ) end [2025-02-15 14:14:19] Production.INFO: ProcessCDR(1,14481620,1,1,2) [2025-02-15 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481620', 'tblTempUsageDetail_20' ) start [2025-02-15 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481620', 'tblTempUsageDetail_20' ) end [2025-02-15 14:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:14:23] Production.INFO: ==19509== Releasing lock... [2025-02-15 14:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:14:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-15 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:15:05 [end_date_ymd] => 2025-02-15 14:15:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:15:05' and `end` < '2025-02-15 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-15 14:15:18] Production.INFO: count ==2179 [2025-02-15 14:15:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:15:05 - End Time 2025-02-15 14:15:05 [2025-02-15 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481625', 'tblTempUsageDetail_20' ) start [2025-02-15 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481625', 'tblTempUsageDetail_20' ) end [2025-02-15 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481625', 'tblTempVendorCDR_20' ) start [2025-02-15 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481625', 'tblTempVendorCDR_20' ) end [2025-02-15 14:15:19] Production.INFO: ProcessCDR(1,14481625,1,1,2) [2025-02-15 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481625', 'tblTempUsageDetail_20' ) start [2025-02-15 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481625', 'tblTempUsageDetail_20' ) end [2025-02-15 14:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:15:24] Production.INFO: ==19582== Releasing lock... [2025-02-15 14:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:15:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-15 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:16:05 [end_date_ymd] => 2025-02-15 14:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:16:05' and `end` < '2025-02-15 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-15 14:16:18] Production.INFO: count ==2181 [2025-02-15 14:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:16:05 - End Time 2025-02-15 14:16:05 [2025-02-15 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481630', 'tblTempUsageDetail_20' ) start [2025-02-15 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481630', 'tblTempUsageDetail_20' ) end [2025-02-15 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481630', 'tblTempVendorCDR_20' ) start [2025-02-15 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481630', 'tblTempVendorCDR_20' ) end [2025-02-15 14:16:19] Production.INFO: ProcessCDR(1,14481630,1,1,2) [2025-02-15 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481630', 'tblTempUsageDetail_20' ) start [2025-02-15 14:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481630', 'tblTempUsageDetail_20' ) end [2025-02-15 14:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:16:24] Production.INFO: ==19651== Releasing lock... [2025-02-15 14:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:16:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-15 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:17:05 [end_date_ymd] => 2025-02-15 14:17:05 [RateCDR] => 1 ) [2025-02-15 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:17:05' and `end` < '2025-02-15 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:17:19] Production.INFO: count ==2131 [2025-02-15 14:17:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:17:05 - End Time 2025-02-15 14:17:05 [2025-02-15 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481635', 'tblTempUsageDetail_20' ) start [2025-02-15 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481635', 'tblTempUsageDetail_20' ) end [2025-02-15 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481635', 'tblTempVendorCDR_20' ) start [2025-02-15 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481635', 'tblTempVendorCDR_20' ) end [2025-02-15 14:17:19] Production.INFO: ProcessCDR(1,14481635,1,1,2) [2025-02-15 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481635', 'tblTempUsageDetail_20' ) start [2025-02-15 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481635', 'tblTempUsageDetail_20' ) end [2025-02-15 14:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:17:25] Production.INFO: ==19722== Releasing lock... [2025-02-15 14:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:17:25] Production.INFO: 44 MB #Memory Used# [2025-02-15 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:18:05 [end_date_ymd] => 2025-02-15 14:18:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:18:05' and `end` < '2025-02-15 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-15 14:18:18] Production.INFO: count ==2081 [2025-02-15 14:18:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:18:05 - End Time 2025-02-15 14:18:05 [2025-02-15 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481640', 'tblTempUsageDetail_20' ) start [2025-02-15 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481640', 'tblTempUsageDetail_20' ) end [2025-02-15 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481640', 'tblTempVendorCDR_20' ) start [2025-02-15 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481640', 'tblTempVendorCDR_20' ) end [2025-02-15 14:18:19] Production.INFO: ProcessCDR(1,14481640,1,1,2) [2025-02-15 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481640', 'tblTempUsageDetail_20' ) start [2025-02-15 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481640', 'tblTempUsageDetail_20' ) end [2025-02-15 14:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:18:24] Production.INFO: ==19791== Releasing lock... [2025-02-15 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:18:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-15 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:19:05 [end_date_ymd] => 2025-02-15 14:19:05 [RateCDR] => 1 ) [2025-02-15 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:19:05' and `end` < '2025-02-15 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:19:18] Production.INFO: count ==2085 [2025-02-15 14:19:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:19:05 - End Time 2025-02-15 14:19:05 [2025-02-15 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481645', 'tblTempUsageDetail_20' ) start [2025-02-15 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481645', 'tblTempUsageDetail_20' ) end [2025-02-15 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481645', 'tblTempVendorCDR_20' ) start [2025-02-15 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481645', 'tblTempVendorCDR_20' ) end [2025-02-15 14:19:19] Production.INFO: ProcessCDR(1,14481645,1,1,2) [2025-02-15 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481645', 'tblTempUsageDetail_20' ) start [2025-02-15 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481645', 'tblTempUsageDetail_20' ) end [2025-02-15 14:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:19:22] Production.INFO: ==19863== Releasing lock... [2025-02-15 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:19:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-15 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:20:07 [end_date_ymd] => 2025-02-15 14:20:07 [RateCDR] => 1 ) [2025-02-15 14:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:20:07' and `end` < '2025-02-15 14:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:20:20] Production.INFO: count ==2084 [2025-02-15 14:20:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:20:07 - End Time 2025-02-15 14:20:07 [2025-02-15 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481651', 'tblTempUsageDetail_20' ) start [2025-02-15 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481651', 'tblTempUsageDetail_20' ) end [2025-02-15 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481651', 'tblTempVendorCDR_20' ) start [2025-02-15 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481651', 'tblTempVendorCDR_20' ) end [2025-02-15 14:20:21] Production.INFO: ProcessCDR(1,14481651,1,1,2) [2025-02-15 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481651', 'tblTempUsageDetail_20' ) start [2025-02-15 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481651', 'tblTempUsageDetail_20' ) end [2025-02-15 14:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:20:24] Production.INFO: ==19936== Releasing lock... [2025-02-15 14:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:20:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-15 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:21:05 [end_date_ymd] => 2025-02-15 14:21:05 [RateCDR] => 1 ) [2025-02-15 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:21:05' and `end` < '2025-02-15 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:21:19] Production.INFO: count ==2097 [2025-02-15 14:21:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:21:05 - End Time 2025-02-15 14:21:05 [2025-02-15 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481656', 'tblTempUsageDetail_20' ) start [2025-02-15 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481656', 'tblTempUsageDetail_20' ) end [2025-02-15 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481656', 'tblTempVendorCDR_20' ) start [2025-02-15 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481656', 'tblTempVendorCDR_20' ) end [2025-02-15 14:21:20] Production.INFO: ProcessCDR(1,14481656,1,1,2) [2025-02-15 14:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481656', 'tblTempUsageDetail_20' ) start [2025-02-15 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481656', 'tblTempUsageDetail_20' ) end [2025-02-15 14:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:21:24] Production.INFO: ==20011== Releasing lock... [2025-02-15 14:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:21:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-15 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:22:06 [end_date_ymd] => 2025-02-15 14:22:06 [RateCDR] => 1 ) [2025-02-15 14: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-15 11:22:06' and `end` < '2025-02-15 14: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-15 14:22:19] Production.INFO: count ==2092 [2025-02-15 14:22:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:22:06 - End Time 2025-02-15 14:22:06 [2025-02-15 14:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481661', 'tblTempUsageDetail_20' ) start [2025-02-15 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481661', 'tblTempUsageDetail_20' ) end [2025-02-15 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481661', 'tblTempVendorCDR_20' ) start [2025-02-15 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481661', 'tblTempVendorCDR_20' ) end [2025-02-15 14:22:20] Production.INFO: ProcessCDR(1,14481661,1,1,2) [2025-02-15 14:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481661', 'tblTempUsageDetail_20' ) start [2025-02-15 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481661', 'tblTempUsageDetail_20' ) end [2025-02-15 14:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:22:24] Production.INFO: ==20086== Releasing lock... [2025-02-15 14:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:22:24] Production.INFO: 44 MB #Memory Used# [2025-02-15 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:23:05 [end_date_ymd] => 2025-02-15 14:23:05 [RateCDR] => 1 ) [2025-02-15 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:23:05' and `end` < '2025-02-15 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:23:18] Production.INFO: count ==2074 [2025-02-15 14:23:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:23:05 - End Time 2025-02-15 14:23:05 [2025-02-15 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481666', 'tblTempUsageDetail_20' ) start [2025-02-15 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481666', 'tblTempUsageDetail_20' ) end [2025-02-15 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481666', 'tblTempVendorCDR_20' ) start [2025-02-15 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481666', 'tblTempVendorCDR_20' ) end [2025-02-15 14:23:19] Production.INFO: ProcessCDR(1,14481666,1,1,2) [2025-02-15 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481666', 'tblTempUsageDetail_20' ) start [2025-02-15 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481666', 'tblTempUsageDetail_20' ) end [2025-02-15 14:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:23:24] Production.INFO: ==20160== Releasing lock... [2025-02-15 14:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:23:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-15 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:24:05 [end_date_ymd] => 2025-02-15 14:24:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:24:05' and `end` < '2025-02-15 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-15 14:24:19] Production.INFO: count ==1976 [2025-02-15 14:24:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:24:05 - End Time 2025-02-15 14:24:05 [2025-02-15 14:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481671', 'tblTempUsageDetail_20' ) start [2025-02-15 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481671', 'tblTempUsageDetail_20' ) end [2025-02-15 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481671', 'tblTempVendorCDR_20' ) start [2025-02-15 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481671', 'tblTempVendorCDR_20' ) end [2025-02-15 14:24:20] Production.INFO: ProcessCDR(1,14481671,1,1,2) [2025-02-15 14:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481671', 'tblTempUsageDetail_20' ) start [2025-02-15 14:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481671', 'tblTempUsageDetail_20' ) end [2025-02-15 14:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:24:24] Production.INFO: ==20231== Releasing lock... [2025-02-15 14:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:24:24] Production.INFO: 43 MB #Memory Used# [2025-02-15 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:25:05 [end_date_ymd] => 2025-02-15 14:25:05 [RateCDR] => 1 ) [2025-02-15 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:25:05' and `end` < '2025-02-15 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:25:18] Production.INFO: count ==1958 [2025-02-15 14:25:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:25:05 - End Time 2025-02-15 14:25:05 [2025-02-15 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481676', 'tblTempUsageDetail_20' ) start [2025-02-15 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481676', 'tblTempUsageDetail_20' ) end [2025-02-15 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481676', 'tblTempVendorCDR_20' ) start [2025-02-15 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481676', 'tblTempVendorCDR_20' ) end [2025-02-15 14:25:19] Production.INFO: ProcessCDR(1,14481676,1,1,2) [2025-02-15 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481676', 'tblTempUsageDetail_20' ) start [2025-02-15 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481676', 'tblTempUsageDetail_20' ) end [2025-02-15 14:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:25:23] Production.INFO: ==20301== Releasing lock... [2025-02-15 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:25:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:26:06 [end_date_ymd] => 2025-02-15 14:26:06 [RateCDR] => 1 ) [2025-02-15 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:26:06' and `end` < '2025-02-15 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:26:19] Production.INFO: count ==1955 [2025-02-15 14:26:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:26:06 - End Time 2025-02-15 14:26:06 [2025-02-15 14:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481681', 'tblTempUsageDetail_20' ) start [2025-02-15 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481681', 'tblTempUsageDetail_20' ) end [2025-02-15 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481681', 'tblTempVendorCDR_20' ) start [2025-02-15 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481681', 'tblTempVendorCDR_20' ) end [2025-02-15 14:26:20] Production.INFO: ProcessCDR(1,14481681,1,1,2) [2025-02-15 14:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481681', 'tblTempUsageDetail_20' ) start [2025-02-15 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481681', 'tblTempUsageDetail_20' ) end [2025-02-15 14:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:26:25] Production.INFO: ==20372== Releasing lock... [2025-02-15 14:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:26:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:27:05 [end_date_ymd] => 2025-02-15 14:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:27:05' and `end` < '2025-02-15 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-15 14:27:19] Production.INFO: count ==1955 [2025-02-15 14:27:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:27:05 - End Time 2025-02-15 14:27:05 [2025-02-15 14:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481686', 'tblTempUsageDetail_20' ) start [2025-02-15 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481686', 'tblTempUsageDetail_20' ) end [2025-02-15 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481686', 'tblTempVendorCDR_20' ) start [2025-02-15 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481686', 'tblTempVendorCDR_20' ) end [2025-02-15 14:27:20] Production.INFO: ProcessCDR(1,14481686,1,1,2) [2025-02-15 14:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481686', 'tblTempUsageDetail_20' ) start [2025-02-15 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481686', 'tblTempUsageDetail_20' ) end [2025-02-15 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:27:23] Production.INFO: ==20482== Releasing lock... [2025-02-15 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:27:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:28:05 [end_date_ymd] => 2025-02-15 14:28:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:28:05' and `end` < '2025-02-15 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-15 14:28:19] Production.INFO: count ==1959 [2025-02-15 14:28:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:28:05 - End Time 2025-02-15 14:28:05 [2025-02-15 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481691', 'tblTempUsageDetail_20' ) start [2025-02-15 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481691', 'tblTempUsageDetail_20' ) end [2025-02-15 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481691', 'tblTempVendorCDR_20' ) start [2025-02-15 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481691', 'tblTempVendorCDR_20' ) end [2025-02-15 14:28:19] Production.INFO: ProcessCDR(1,14481691,1,1,2) [2025-02-15 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481691', 'tblTempUsageDetail_20' ) start [2025-02-15 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481691', 'tblTempUsageDetail_20' ) end [2025-02-15 14:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:28:23] Production.INFO: ==20553== Releasing lock... [2025-02-15 14:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:28:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:29:05 [end_date_ymd] => 2025-02-15 14:29:05 [RateCDR] => 1 ) [2025-02-15 14: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-15 11:29:05' and `end` < '2025-02-15 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-15 14:29:19] Production.INFO: count ==1944 [2025-02-15 14:29:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:29:05 - End Time 2025-02-15 14:29:05 [2025-02-15 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481696', 'tblTempUsageDetail_20' ) start [2025-02-15 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481696', 'tblTempUsageDetail_20' ) end [2025-02-15 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481696', 'tblTempVendorCDR_20' ) start [2025-02-15 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481696', 'tblTempVendorCDR_20' ) end [2025-02-15 14:29:20] Production.INFO: ProcessCDR(1,14481696,1,1,2) [2025-02-15 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481696', 'tblTempUsageDetail_20' ) start [2025-02-15 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481696', 'tblTempUsageDetail_20' ) end [2025-02-15 14:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:29:25] Production.INFO: ==20624== Releasing lock... [2025-02-15 14:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:29:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:30:06 [end_date_ymd] => 2025-02-15 14:30:06 [RateCDR] => 1 ) [2025-02-15 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:30:06' and `end` < '2025-02-15 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:30:20] Production.INFO: count ==1935 [2025-02-15 14:30:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:30:06 - End Time 2025-02-15 14:30:06 [2025-02-15 14:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481702', 'tblTempUsageDetail_20' ) start [2025-02-15 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481702', 'tblTempUsageDetail_20' ) end [2025-02-15 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481702', 'tblTempVendorCDR_20' ) start [2025-02-15 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481702', 'tblTempVendorCDR_20' ) end [2025-02-15 14:30:20] Production.INFO: ProcessCDR(1,14481702,1,1,2) [2025-02-15 14:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481702', 'tblTempUsageDetail_20' ) start [2025-02-15 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481702', 'tblTempUsageDetail_20' ) end [2025-02-15 14:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:30:25] Production.INFO: ==20703== Releasing lock... [2025-02-15 14:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:30:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:31:06 [end_date_ymd] => 2025-02-15 14:31:06 [RateCDR] => 1 ) [2025-02-15 14: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-15 11:31:06' and `end` < '2025-02-15 14: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-15 14:31:20] Production.INFO: count ==1931 [2025-02-15 14:31:21] Production.ERROR: pbx CDR StartTime 2025-02-15 11:31:06 - End Time 2025-02-15 14:31:06 [2025-02-15 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481707', 'tblTempUsageDetail_20' ) start [2025-02-15 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481707', 'tblTempUsageDetail_20' ) end [2025-02-15 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481707', 'tblTempVendorCDR_20' ) start [2025-02-15 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481707', 'tblTempVendorCDR_20' ) end [2025-02-15 14:31:21] Production.INFO: ProcessCDR(1,14481707,1,1,2) [2025-02-15 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481707', 'tblTempUsageDetail_20' ) start [2025-02-15 14:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481707', 'tblTempUsageDetail_20' ) end [2025-02-15 14:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:31:24] Production.INFO: ==20779== Releasing lock... [2025-02-15 14:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:31:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:32:06 [end_date_ymd] => 2025-02-15 14:32:06 [RateCDR] => 1 ) [2025-02-15 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-15 11:32:06' and `end` < '2025-02-15 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-15 14:32:19] Production.INFO: count ==1933 [2025-02-15 14:32:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:32:06 - End Time 2025-02-15 14:32:06 [2025-02-15 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481712', 'tblTempUsageDetail_20' ) start [2025-02-15 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481712', 'tblTempUsageDetail_20' ) end [2025-02-15 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481712', 'tblTempVendorCDR_20' ) start [2025-02-15 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481712', 'tblTempVendorCDR_20' ) end [2025-02-15 14:32:20] Production.INFO: ProcessCDR(1,14481712,1,1,2) [2025-02-15 14:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481712', 'tblTempUsageDetail_20' ) start [2025-02-15 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481712', 'tblTempUsageDetail_20' ) end [2025-02-15 14:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:32:23] Production.INFO: ==20850== Releasing lock... [2025-02-15 14:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:32:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:33:05 [end_date_ymd] => 2025-02-15 14:33:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:33:05' and `end` < '2025-02-15 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-15 14:33:19] Production.INFO: count ==1931 [2025-02-15 14:33:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:33:05 - End Time 2025-02-15 14:33:05 [2025-02-15 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481717', 'tblTempUsageDetail_20' ) start [2025-02-15 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481717', 'tblTempUsageDetail_20' ) end [2025-02-15 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481717', 'tblTempVendorCDR_20' ) start [2025-02-15 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481717', 'tblTempVendorCDR_20' ) end [2025-02-15 14:33:19] Production.INFO: ProcessCDR(1,14481717,1,1,2) [2025-02-15 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481717', 'tblTempUsageDetail_20' ) start [2025-02-15 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481717', 'tblTempUsageDetail_20' ) end [2025-02-15 14:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:33:22] Production.INFO: ==20918== Releasing lock... [2025-02-15 14:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:33:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:34:06 [end_date_ymd] => 2025-02-15 14:34:06 [RateCDR] => 1 ) [2025-02-15 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-15 11:34:06' and `end` < '2025-02-15 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-15 14:34:20] Production.INFO: count ==1925 [2025-02-15 14:34:21] Production.ERROR: pbx CDR StartTime 2025-02-15 11:34:06 - End Time 2025-02-15 14:34:06 [2025-02-15 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481722', 'tblTempUsageDetail_20' ) start [2025-02-15 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481722', 'tblTempUsageDetail_20' ) end [2025-02-15 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481722', 'tblTempVendorCDR_20' ) start [2025-02-15 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481722', 'tblTempVendorCDR_20' ) end [2025-02-15 14:34:21] Production.INFO: ProcessCDR(1,14481722,1,1,2) [2025-02-15 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481722', 'tblTempUsageDetail_20' ) start [2025-02-15 14:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481722', 'tblTempUsageDetail_20' ) end [2025-02-15 14:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:34:24] Production.INFO: ==20990== Releasing lock... [2025-02-15 14:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:34:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:35:05 [end_date_ymd] => 2025-02-15 14:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:35:05' and `end` < '2025-02-15 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-15 14:35:18] Production.INFO: count ==1927 [2025-02-15 14:35:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:35:05 - End Time 2025-02-15 14:35:05 [2025-02-15 14:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481727', 'tblTempUsageDetail_20' ) start [2025-02-15 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481727', 'tblTempUsageDetail_20' ) end [2025-02-15 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481727', 'tblTempVendorCDR_20' ) start [2025-02-15 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481727', 'tblTempVendorCDR_20' ) end [2025-02-15 14:35:19] Production.INFO: ProcessCDR(1,14481727,1,1,2) [2025-02-15 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481727', 'tblTempUsageDetail_20' ) start [2025-02-15 14:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481727', 'tblTempUsageDetail_20' ) end [2025-02-15 14:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:35:24] Production.INFO: ==21074== Releasing lock... [2025-02-15 14:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:35:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:36:05 [end_date_ymd] => 2025-02-15 14:36:05 [RateCDR] => 1 ) [2025-02-15 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:36:05' and `end` < '2025-02-15 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-15 14:36:19] Production.INFO: count ==1923 [2025-02-15 14:36:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:36:05 - End Time 2025-02-15 14:36:05 [2025-02-15 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481732', 'tblTempUsageDetail_20' ) start [2025-02-15 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481732', 'tblTempUsageDetail_20' ) end [2025-02-15 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481732', 'tblTempVendorCDR_20' ) start [2025-02-15 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481732', 'tblTempVendorCDR_20' ) end [2025-02-15 14:36:19] Production.INFO: ProcessCDR(1,14481732,1,1,2) [2025-02-15 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481732', 'tblTempUsageDetail_20' ) start [2025-02-15 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481732', 'tblTempUsageDetail_20' ) end [2025-02-15 14:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:36:24] Production.INFO: ==21147== Releasing lock... [2025-02-15 14:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:36:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:37:05 [end_date_ymd] => 2025-02-15 14:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:37:05' and `end` < '2025-02-15 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-15 14:37:18] Production.INFO: count ==1924 [2025-02-15 14:37:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:37:05 - End Time 2025-02-15 14:37:05 [2025-02-15 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481737', 'tblTempUsageDetail_20' ) start [2025-02-15 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481737', 'tblTempUsageDetail_20' ) end [2025-02-15 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481737', 'tblTempVendorCDR_20' ) start [2025-02-15 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481737', 'tblTempVendorCDR_20' ) end [2025-02-15 14:37:19] Production.INFO: ProcessCDR(1,14481737,1,1,2) [2025-02-15 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481737', 'tblTempUsageDetail_20' ) start [2025-02-15 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481737', 'tblTempUsageDetail_20' ) end [2025-02-15 14:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:37:23] Production.INFO: ==21218== Releasing lock... [2025-02-15 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:37:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:38:06 [end_date_ymd] => 2025-02-15 14:38:06 [RateCDR] => 1 ) [2025-02-15 14: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-15 11:38:06' and `end` < '2025-02-15 14: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-15 14:38:19] Production.INFO: count ==1919 [2025-02-15 14:38:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:38:06 - End Time 2025-02-15 14:38:06 [2025-02-15 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481742', 'tblTempUsageDetail_20' ) start [2025-02-15 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481742', 'tblTempUsageDetail_20' ) end [2025-02-15 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481742', 'tblTempVendorCDR_20' ) start [2025-02-15 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481742', 'tblTempVendorCDR_20' ) end [2025-02-15 14:38:20] Production.INFO: ProcessCDR(1,14481742,1,1,2) [2025-02-15 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481742', 'tblTempUsageDetail_20' ) start [2025-02-15 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481742', 'tblTempUsageDetail_20' ) end [2025-02-15 14:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:38:25] Production.INFO: ==21290== Releasing lock... [2025-02-15 14:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:38:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:39:05 [end_date_ymd] => 2025-02-15 14:39:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:39:05' and `end` < '2025-02-15 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-15 14:39:19] Production.INFO: count ==1916 [2025-02-15 14:39:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:39:05 - End Time 2025-02-15 14:39:05 [2025-02-15 14:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481747', 'tblTempUsageDetail_20' ) start [2025-02-15 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481747', 'tblTempUsageDetail_20' ) end [2025-02-15 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481747', 'tblTempVendorCDR_20' ) start [2025-02-15 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481747', 'tblTempVendorCDR_20' ) end [2025-02-15 14:39:19] Production.INFO: ProcessCDR(1,14481747,1,1,2) [2025-02-15 14:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481747', 'tblTempUsageDetail_20' ) start [2025-02-15 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481747', 'tblTempUsageDetail_20' ) end [2025-02-15 14:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:39:24] Production.INFO: ==21363== Releasing lock... [2025-02-15 14:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:39:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:40:06 [end_date_ymd] => 2025-02-15 14:40:06 [RateCDR] => 1 ) [2025-02-15 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-15 11:40:06' and `end` < '2025-02-15 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-15 14:40:19] Production.INFO: count ==1904 [2025-02-15 14:40:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:40:06 - End Time 2025-02-15 14:40:06 [2025-02-15 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481753', 'tblTempUsageDetail_20' ) start [2025-02-15 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481753', 'tblTempUsageDetail_20' ) end [2025-02-15 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481753', 'tblTempVendorCDR_20' ) start [2025-02-15 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481753', 'tblTempVendorCDR_20' ) end [2025-02-15 14:40:20] Production.INFO: ProcessCDR(1,14481753,1,1,2) [2025-02-15 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481753', 'tblTempUsageDetail_20' ) start [2025-02-15 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481753', 'tblTempUsageDetail_20' ) end [2025-02-15 14:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:40:23] Production.INFO: ==21434== Releasing lock... [2025-02-15 14:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:40:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:41:05 [end_date_ymd] => 2025-02-15 14:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:41:05' and `end` < '2025-02-15 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-15 14:41:18] Production.INFO: count ==1901 [2025-02-15 14:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:41:05 - End Time 2025-02-15 14:41:05 [2025-02-15 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481758', 'tblTempUsageDetail_20' ) start [2025-02-15 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481758', 'tblTempUsageDetail_20' ) end [2025-02-15 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481758', 'tblTempVendorCDR_20' ) start [2025-02-15 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481758', 'tblTempVendorCDR_20' ) end [2025-02-15 14:41:19] Production.INFO: ProcessCDR(1,14481758,1,1,2) [2025-02-15 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481758', 'tblTempUsageDetail_20' ) start [2025-02-15 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481758', 'tblTempUsageDetail_20' ) end [2025-02-15 14:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:41:23] Production.INFO: ==21507== Releasing lock... [2025-02-15 14:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:41:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:42:05 [end_date_ymd] => 2025-02-15 14:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:42:05' and `end` < '2025-02-15 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-15 14:42:18] Production.INFO: count ==1899 [2025-02-15 14:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:42:05 - End Time 2025-02-15 14:42:05 [2025-02-15 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481763', 'tblTempUsageDetail_20' ) start [2025-02-15 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481763', 'tblTempUsageDetail_20' ) end [2025-02-15 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481763', 'tblTempVendorCDR_20' ) start [2025-02-15 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481763', 'tblTempVendorCDR_20' ) end [2025-02-15 14:42:19] Production.INFO: ProcessCDR(1,14481763,1,1,2) [2025-02-15 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481763', 'tblTempUsageDetail_20' ) start [2025-02-15 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481763', 'tblTempUsageDetail_20' ) end [2025-02-15 14:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:42:24] Production.INFO: ==21618== Releasing lock... [2025-02-15 14:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:42:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:43:05 [end_date_ymd] => 2025-02-15 14:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:43:05' and `end` < '2025-02-15 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-15 14:43:18] Production.INFO: count ==1895 [2025-02-15 14:43:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:43:05 - End Time 2025-02-15 14:43:05 [2025-02-15 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481768', 'tblTempUsageDetail_20' ) start [2025-02-15 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481768', 'tblTempUsageDetail_20' ) end [2025-02-15 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481768', 'tblTempVendorCDR_20' ) start [2025-02-15 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481768', 'tblTempVendorCDR_20' ) end [2025-02-15 14:43:19] Production.INFO: ProcessCDR(1,14481768,1,1,2) [2025-02-15 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481768', 'tblTempUsageDetail_20' ) start [2025-02-15 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481768', 'tblTempUsageDetail_20' ) end [2025-02-15 14:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:43:24] Production.INFO: ==21687== Releasing lock... [2025-02-15 14:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:43:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:44:06 [end_date_ymd] => 2025-02-15 14:44:06 [RateCDR] => 1 ) [2025-02-15 14: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-15 11:44:06' and `end` < '2025-02-15 14: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-15 14:44:20] Production.INFO: count ==1909 [2025-02-15 14:44:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:44:06 - End Time 2025-02-15 14:44:06 [2025-02-15 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481773', 'tblTempUsageDetail_20' ) start [2025-02-15 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481773', 'tblTempUsageDetail_20' ) end [2025-02-15 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481773', 'tblTempVendorCDR_20' ) start [2025-02-15 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481773', 'tblTempVendorCDR_20' ) end [2025-02-15 14:44:20] Production.INFO: ProcessCDR(1,14481773,1,1,2) [2025-02-15 14:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481773', 'tblTempUsageDetail_20' ) start [2025-02-15 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481773', 'tblTempUsageDetail_20' ) end [2025-02-15 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:44:23] Production.INFO: ==21761== Releasing lock... [2025-02-15 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:44:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:45:04 [end_date_ymd] => 2025-02-15 14:45:04 [RateCDR] => 1 ) [2025-02-15 14: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-15 11:45:04' and `end` < '2025-02-15 14: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-15 14:45:18] Production.INFO: count ==1936 [2025-02-15 14:45:18] Production.ERROR: pbx CDR StartTime 2025-02-15 11:45:04 - End Time 2025-02-15 14:45:04 [2025-02-15 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481778', 'tblTempUsageDetail_20' ) start [2025-02-15 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481778', 'tblTempUsageDetail_20' ) end [2025-02-15 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481778', 'tblTempVendorCDR_20' ) start [2025-02-15 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481778', 'tblTempVendorCDR_20' ) end [2025-02-15 14:45:18] Production.INFO: ProcessCDR(1,14481778,1,1,2) [2025-02-15 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481778', 'tblTempUsageDetail_20' ) start [2025-02-15 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481778', 'tblTempUsageDetail_20' ) end [2025-02-15 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:45:23] Production.INFO: ==21831== Releasing lock... [2025-02-15 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:45:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:46:06 [end_date_ymd] => 2025-02-15 14:46:06 [RateCDR] => 1 ) [2025-02-15 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:46:06' and `end` < '2025-02-15 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:46:19] Production.INFO: count ==1922 [2025-02-15 14:46:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:46:06 - End Time 2025-02-15 14:46:06 [2025-02-15 14:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481783', 'tblTempUsageDetail_20' ) start [2025-02-15 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481783', 'tblTempUsageDetail_20' ) end [2025-02-15 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481783', 'tblTempVendorCDR_20' ) start [2025-02-15 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481783', 'tblTempVendorCDR_20' ) end [2025-02-15 14:46:20] Production.INFO: ProcessCDR(1,14481783,1,1,2) [2025-02-15 14:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481783', 'tblTempUsageDetail_20' ) start [2025-02-15 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481783', 'tblTempUsageDetail_20' ) end [2025-02-15 14:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:46:23] Production.INFO: ==21902== Releasing lock... [2025-02-15 14:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:46:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:47:05 [end_date_ymd] => 2025-02-15 14:47:05 [RateCDR] => 1 ) [2025-02-15 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:47:05' and `end` < '2025-02-15 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:47:18] Production.INFO: count ==1920 [2025-02-15 14:47:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:47:05 - End Time 2025-02-15 14:47:05 [2025-02-15 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481788', 'tblTempUsageDetail_20' ) start [2025-02-15 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481788', 'tblTempUsageDetail_20' ) end [2025-02-15 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481788', 'tblTempVendorCDR_20' ) start [2025-02-15 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481788', 'tblTempVendorCDR_20' ) end [2025-02-15 14:47:19] Production.INFO: ProcessCDR(1,14481788,1,1,2) [2025-02-15 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481788', 'tblTempUsageDetail_20' ) start [2025-02-15 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481788', 'tblTempUsageDetail_20' ) end [2025-02-15 14:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:47:22] Production.INFO: ==21972== Releasing lock... [2025-02-15 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:47:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:48:05 [end_date_ymd] => 2025-02-15 14:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:48:05' and `end` < '2025-02-15 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-15 14:48:19] Production.INFO: count ==1924 [2025-02-15 14:48:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:48:05 - End Time 2025-02-15 14:48:05 [2025-02-15 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481793', 'tblTempUsageDetail_20' ) start [2025-02-15 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481793', 'tblTempUsageDetail_20' ) end [2025-02-15 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481793', 'tblTempVendorCDR_20' ) start [2025-02-15 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481793', 'tblTempVendorCDR_20' ) end [2025-02-15 14:48:19] Production.INFO: ProcessCDR(1,14481793,1,1,2) [2025-02-15 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481793', 'tblTempUsageDetail_20' ) start [2025-02-15 14:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481793', 'tblTempUsageDetail_20' ) end [2025-02-15 14:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:48:23] Production.INFO: ==22044== Releasing lock... [2025-02-15 14:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:48:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:49:05 [end_date_ymd] => 2025-02-15 14:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:49:05' and `end` < '2025-02-15 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-15 14:49:18] Production.INFO: count ==1926 [2025-02-15 14:49:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:49:05 - End Time 2025-02-15 14:49:05 [2025-02-15 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481798', 'tblTempUsageDetail_20' ) start [2025-02-15 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481798', 'tblTempUsageDetail_20' ) end [2025-02-15 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481798', 'tblTempVendorCDR_20' ) start [2025-02-15 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481798', 'tblTempVendorCDR_20' ) end [2025-02-15 14:49:19] Production.INFO: ProcessCDR(1,14481798,1,1,2) [2025-02-15 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481798', 'tblTempUsageDetail_20' ) start [2025-02-15 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481798', 'tblTempUsageDetail_20' ) end [2025-02-15 14:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:49:22] Production.INFO: ==22127== Releasing lock... [2025-02-15 14:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:49:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:50:05 [end_date_ymd] => 2025-02-15 14:50:05 [RateCDR] => 1 ) [2025-02-15 14: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-15 11:50:05' and `end` < '2025-02-15 14: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-15 14:50:21] Production.INFO: count ==1913 [2025-02-15 14:50:21] Production.ERROR: pbx CDR StartTime 2025-02-15 11:50:05 - End Time 2025-02-15 14:50:05 [2025-02-15 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481803', 'tblTempUsageDetail_20' ) start [2025-02-15 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481803', 'tblTempUsageDetail_20' ) end [2025-02-15 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481803', 'tblTempVendorCDR_20' ) start [2025-02-15 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481803', 'tblTempVendorCDR_20' ) end [2025-02-15 14:50:22] Production.INFO: ProcessCDR(1,14481803,1,1,2) [2025-02-15 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481803', 'tblTempUsageDetail_20' ) start [2025-02-15 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481803', 'tblTempUsageDetail_20' ) end [2025-02-15 14:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:50:25] Production.INFO: ==22198== Releasing lock... [2025-02-15 14:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:50:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:51:06 [end_date_ymd] => 2025-02-15 14:51:06 [RateCDR] => 1 ) [2025-02-15 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-15 11:51:06' and `end` < '2025-02-15 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-15 14:51:20] Production.INFO: count ==1915 [2025-02-15 14:51:21] Production.ERROR: pbx CDR StartTime 2025-02-15 11:51:06 - End Time 2025-02-15 14:51:06 [2025-02-15 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481809', 'tblTempUsageDetail_20' ) start [2025-02-15 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481809', 'tblTempUsageDetail_20' ) end [2025-02-15 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481809', 'tblTempVendorCDR_20' ) start [2025-02-15 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481809', 'tblTempVendorCDR_20' ) end [2025-02-15 14:51:21] Production.INFO: ProcessCDR(1,14481809,1,1,2) [2025-02-15 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481809', 'tblTempUsageDetail_20' ) start [2025-02-15 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481809', 'tblTempUsageDetail_20' ) end [2025-02-15 14:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:51:24] Production.INFO: ==22270== Releasing lock... [2025-02-15 14:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:51:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:52:05 [end_date_ymd] => 2025-02-15 14:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:52:05' and `end` < '2025-02-15 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-15 14:52:18] Production.INFO: count ==1916 [2025-02-15 14:52:18] Production.ERROR: pbx CDR StartTime 2025-02-15 11:52:05 - End Time 2025-02-15 14:52:05 [2025-02-15 14:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481814', 'tblTempUsageDetail_20' ) start [2025-02-15 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481814', 'tblTempUsageDetail_20' ) end [2025-02-15 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481814', 'tblTempVendorCDR_20' ) start [2025-02-15 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481814', 'tblTempVendorCDR_20' ) end [2025-02-15 14:52:19] Production.INFO: ProcessCDR(1,14481814,1,1,2) [2025-02-15 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481814', 'tblTempUsageDetail_20' ) start [2025-02-15 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481814', 'tblTempUsageDetail_20' ) end [2025-02-15 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:52:22] Production.INFO: ==22339== Releasing lock... [2025-02-15 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:52:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:53:05 [end_date_ymd] => 2025-02-15 14:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:53:05' and `end` < '2025-02-15 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-15 14:53:19] Production.INFO: count ==1918 [2025-02-15 14:53:20] Production.ERROR: pbx CDR StartTime 2025-02-15 11:53:05 - End Time 2025-02-15 14:53:05 [2025-02-15 14:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481819', 'tblTempUsageDetail_20' ) start [2025-02-15 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481819', 'tblTempUsageDetail_20' ) end [2025-02-15 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481819', 'tblTempVendorCDR_20' ) start [2025-02-15 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481819', 'tblTempVendorCDR_20' ) end [2025-02-15 14:53:20] Production.INFO: ProcessCDR(1,14481819,1,1,2) [2025-02-15 14:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481819', 'tblTempUsageDetail_20' ) start [2025-02-15 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481819', 'tblTempUsageDetail_20' ) end [2025-02-15 14:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:53:23] Production.INFO: ==22411== Releasing lock... [2025-02-15 14:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:53:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:54:05 [end_date_ymd] => 2025-02-15 14:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:54:05' and `end` < '2025-02-15 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-15 14:54:18] Production.INFO: count ==1923 [2025-02-15 14:54:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:54:05 - End Time 2025-02-15 14:54:05 [2025-02-15 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481824', 'tblTempUsageDetail_20' ) start [2025-02-15 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481824', 'tblTempUsageDetail_20' ) end [2025-02-15 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481824', 'tblTempVendorCDR_20' ) start [2025-02-15 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481824', 'tblTempVendorCDR_20' ) end [2025-02-15 14:54:19] Production.INFO: ProcessCDR(1,14481824,1,1,2) [2025-02-15 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481824', 'tblTempUsageDetail_20' ) start [2025-02-15 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481824', 'tblTempUsageDetail_20' ) end [2025-02-15 14:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:54:22] Production.INFO: ==22484== Releasing lock... [2025-02-15 14:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:54:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:55:05 [end_date_ymd] => 2025-02-15 14:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:55:05' and `end` < '2025-02-15 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-15 14:55:19] Production.INFO: count ==1915 [2025-02-15 14:55:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:55:05 - End Time 2025-02-15 14:55:05 [2025-02-15 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481829', 'tblTempUsageDetail_20' ) start [2025-02-15 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481829', 'tblTempUsageDetail_20' ) end [2025-02-15 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481829', 'tblTempVendorCDR_20' ) start [2025-02-15 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481829', 'tblTempVendorCDR_20' ) end [2025-02-15 14:55:19] Production.INFO: ProcessCDR(1,14481829,1,1,2) [2025-02-15 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481829', 'tblTempUsageDetail_20' ) start [2025-02-15 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481829', 'tblTempUsageDetail_20' ) end [2025-02-15 14:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:55:23] Production.INFO: ==22557== Releasing lock... [2025-02-15 14:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:55:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:56:05 [end_date_ymd] => 2025-02-15 14:56:05 [RateCDR] => 1 ) [2025-02-15 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 11:56:05' and `end` < '2025-02-15 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 14:56:19] Production.INFO: count ==1901 [2025-02-15 14:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:56:05 - End Time 2025-02-15 14:56:05 [2025-02-15 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481834', 'tblTempUsageDetail_20' ) start [2025-02-15 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481834', 'tblTempUsageDetail_20' ) end [2025-02-15 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481834', 'tblTempVendorCDR_20' ) start [2025-02-15 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481834', 'tblTempVendorCDR_20' ) end [2025-02-15 14:56:19] Production.INFO: ProcessCDR(1,14481834,1,1,2) [2025-02-15 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481834', 'tblTempUsageDetail_20' ) start [2025-02-15 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481834', 'tblTempUsageDetail_20' ) end [2025-02-15 14:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:56:23] Production.INFO: ==22628== Releasing lock... [2025-02-15 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:56:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:57:05 [end_date_ymd] => 2025-02-15 14:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:57:05' and `end` < '2025-02-15 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-15 14:57:18] Production.INFO: count ==1899 [2025-02-15 14:57:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:57:05 - End Time 2025-02-15 14:57:05 [2025-02-15 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481839', 'tblTempUsageDetail_20' ) start [2025-02-15 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481839', 'tblTempUsageDetail_20' ) end [2025-02-15 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481839', 'tblTempVendorCDR_20' ) start [2025-02-15 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481839', 'tblTempVendorCDR_20' ) end [2025-02-15 14:57:19] Production.INFO: ProcessCDR(1,14481839,1,1,2) [2025-02-15 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481839', 'tblTempUsageDetail_20' ) start [2025-02-15 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481839', 'tblTempUsageDetail_20' ) end [2025-02-15 14:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:57:22] Production.INFO: ==22698== Releasing lock... [2025-02-15 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:57:22] Production.INFO: 42 MB #Memory Used# [2025-02-15 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:58:05 [end_date_ymd] => 2025-02-15 14:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:58:05' and `end` < '2025-02-15 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-15 14:58:18] Production.INFO: count ==1898 [2025-02-15 14:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:58:05 - End Time 2025-02-15 14:58:05 [2025-02-15 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481844', 'tblTempUsageDetail_20' ) start [2025-02-15 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481844', 'tblTempUsageDetail_20' ) end [2025-02-15 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481844', 'tblTempVendorCDR_20' ) start [2025-02-15 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481844', 'tblTempVendorCDR_20' ) end [2025-02-15 14:58:19] Production.INFO: ProcessCDR(1,14481844,1,1,2) [2025-02-15 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481844', 'tblTempUsageDetail_20' ) start [2025-02-15 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481844', 'tblTempUsageDetail_20' ) end [2025-02-15 14:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:58:24] Production.INFO: ==22808== Releasing lock... [2025-02-15 14:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:58:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 11:59:05 [end_date_ymd] => 2025-02-15 14:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 11:59:05' and `end` < '2025-02-15 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-15 14:59:19] Production.INFO: count ==1900 [2025-02-15 14:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 11:59:05 - End Time 2025-02-15 14:59:05 [2025-02-15 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481849', 'tblTempUsageDetail_20' ) start [2025-02-15 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481849', 'tblTempUsageDetail_20' ) end [2025-02-15 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481849', 'tblTempVendorCDR_20' ) start [2025-02-15 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481849', 'tblTempVendorCDR_20' ) end [2025-02-15 14:59:19] Production.INFO: ProcessCDR(1,14481849,1,1,2) [2025-02-15 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 14:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481849', 'tblTempUsageDetail_20' ) start [2025-02-15 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481849', 'tblTempUsageDetail_20' ) end [2025-02-15 14:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 14:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 14:59:24] Production.INFO: ==22877== Releasing lock... [2025-02-15 14:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 14:59:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:00:06 [end_date_ymd] => 2025-02-15 15:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 12:00:06' and `end` < '2025-02-15 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-15 15:00:20] Production.INFO: count ==1898 [2025-02-15 15:00:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:00:06 - End Time 2025-02-15 15:00:06 [2025-02-15 15:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481855', 'tblTempUsageDetail_20' ) start [2025-02-15 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481855', 'tblTempUsageDetail_20' ) end [2025-02-15 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481855', 'tblTempVendorCDR_20' ) start [2025-02-15 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481855', 'tblTempVendorCDR_20' ) end [2025-02-15 15:00:20] Production.INFO: ProcessCDR(1,14481855,1,1,2) [2025-02-15 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481855', 'tblTempUsageDetail_20' ) start [2025-02-15 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481855', 'tblTempUsageDetail_20' ) end [2025-02-15 15:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:00:25] Production.INFO: ==22951== Releasing lock... [2025-02-15 15:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:00:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:01:07 [end_date_ymd] => 2025-02-15 15:01:07 [RateCDR] => 1 ) [2025-02-15 15:01: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-15 12:01:07' and `end` < '2025-02-15 15:01: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-15 15:01:20] Production.INFO: count ==1884 [2025-02-15 15:01:21] Production.ERROR: pbx CDR StartTime 2025-02-15 12:01:07 - End Time 2025-02-15 15:01:07 [2025-02-15 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481860', 'tblTempUsageDetail_20' ) start [2025-02-15 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481860', 'tblTempUsageDetail_20' ) end [2025-02-15 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481860', 'tblTempVendorCDR_20' ) start [2025-02-15 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481860', 'tblTempVendorCDR_20' ) end [2025-02-15 15:01:21] Production.INFO: ProcessCDR(1,14481860,1,1,2) [2025-02-15 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481860', 'tblTempUsageDetail_20' ) start [2025-02-15 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481860', 'tblTempUsageDetail_20' ) end [2025-02-15 15:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:01:25] Production.INFO: ==23061== Releasing lock... [2025-02-15 15:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:01:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:02:05 [end_date_ymd] => 2025-02-15 15:02:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:02:05' and `end` < '2025-02-15 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-15 15:02:19] Production.INFO: count ==1886 [2025-02-15 15:02:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:02:05 - End Time 2025-02-15 15:02:05 [2025-02-15 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481865', 'tblTempUsageDetail_20' ) start [2025-02-15 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481865', 'tblTempUsageDetail_20' ) end [2025-02-15 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481865', 'tblTempVendorCDR_20' ) start [2025-02-15 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481865', 'tblTempVendorCDR_20' ) end [2025-02-15 15:02:20] Production.INFO: ProcessCDR(1,14481865,1,1,2) [2025-02-15 15:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481865', 'tblTempUsageDetail_20' ) start [2025-02-15 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481865', 'tblTempUsageDetail_20' ) end [2025-02-15 15:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:02:24] Production.INFO: ==23188== Releasing lock... [2025-02-15 15:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:02:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:03:06 [end_date_ymd] => 2025-02-15 15:03:06 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:03:06' and `end` < '2025-02-15 15: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-15 15:03:19] Production.INFO: count ==1884 [2025-02-15 15:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:03:06 - End Time 2025-02-15 15:03:06 [2025-02-15 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481870', 'tblTempUsageDetail_20' ) start [2025-02-15 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481870', 'tblTempUsageDetail_20' ) end [2025-02-15 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481870', 'tblTempVendorCDR_20' ) start [2025-02-15 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481870', 'tblTempVendorCDR_20' ) end [2025-02-15 15:03:19] Production.INFO: ProcessCDR(1,14481870,1,1,2) [2025-02-15 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481870', 'tblTempUsageDetail_20' ) start [2025-02-15 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481870', 'tblTempUsageDetail_20' ) end [2025-02-15 15:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:03:24] Production.INFO: ==23260== Releasing lock... [2025-02-15 15:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:03:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:04:05 [end_date_ymd] => 2025-02-15 15:04:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:04:05' and `end` < '2025-02-15 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-15 15:04:19] Production.INFO: count ==1886 [2025-02-15 15:04:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:04:05 - End Time 2025-02-15 15:04:05 [2025-02-15 15:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481875', 'tblTempUsageDetail_20' ) start [2025-02-15 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481875', 'tblTempUsageDetail_20' ) end [2025-02-15 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481875', 'tblTempVendorCDR_20' ) start [2025-02-15 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481875', 'tblTempVendorCDR_20' ) end [2025-02-15 15:04:20] Production.INFO: ProcessCDR(1,14481875,1,1,2) [2025-02-15 15:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481875', 'tblTempUsageDetail_20' ) start [2025-02-15 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481875', 'tblTempUsageDetail_20' ) end [2025-02-15 15:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:04:25] Production.INFO: ==23334== Releasing lock... [2025-02-15 15:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:04:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:05:05 [end_date_ymd] => 2025-02-15 15:05:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:05:05' and `end` < '2025-02-15 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-15 15:05:18] Production.INFO: count ==1882 [2025-02-15 15:05:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:05:05 - End Time 2025-02-15 15:05:05 [2025-02-15 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481880', 'tblTempUsageDetail_20' ) start [2025-02-15 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481880', 'tblTempUsageDetail_20' ) end [2025-02-15 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481880', 'tblTempVendorCDR_20' ) start [2025-02-15 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481880', 'tblTempVendorCDR_20' ) end [2025-02-15 15:05:19] Production.INFO: ProcessCDR(1,14481880,1,1,2) [2025-02-15 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481880', 'tblTempUsageDetail_20' ) start [2025-02-15 15:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481880', 'tblTempUsageDetail_20' ) end [2025-02-15 15:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:05:24] Production.INFO: ==23489== Releasing lock... [2025-02-15 15:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:05:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:06:05 [end_date_ymd] => 2025-02-15 15:06:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:06:05' and `end` < '2025-02-15 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-15 15:06:18] Production.INFO: count ==1868 [2025-02-15 15:06:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:06:05 - End Time 2025-02-15 15:06:05 [2025-02-15 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481885', 'tblTempUsageDetail_20' ) start [2025-02-15 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481885', 'tblTempUsageDetail_20' ) end [2025-02-15 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481885', 'tblTempVendorCDR_20' ) start [2025-02-15 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481885', 'tblTempVendorCDR_20' ) end [2025-02-15 15:06:19] Production.INFO: ProcessCDR(1,14481885,1,1,2) [2025-02-15 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481885', 'tblTempUsageDetail_20' ) start [2025-02-15 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481885', 'tblTempUsageDetail_20' ) end [2025-02-15 15:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:06:22] Production.INFO: ==23562== Releasing lock... [2025-02-15 15:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:06:22] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:07:05 [end_date_ymd] => 2025-02-15 15:07:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:07:05' and `end` < '2025-02-15 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-15 15:07:19] Production.INFO: count ==1871 [2025-02-15 15:07:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:07:05 - End Time 2025-02-15 15:07:05 [2025-02-15 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481890', 'tblTempUsageDetail_20' ) start [2025-02-15 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481890', 'tblTempUsageDetail_20' ) end [2025-02-15 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481890', 'tblTempVendorCDR_20' ) start [2025-02-15 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481890', 'tblTempVendorCDR_20' ) end [2025-02-15 15:07:20] Production.INFO: ProcessCDR(1,14481890,1,1,2) [2025-02-15 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481890', 'tblTempUsageDetail_20' ) start [2025-02-15 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481890', 'tblTempUsageDetail_20' ) end [2025-02-15 15:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:07:25] Production.INFO: ==23636== Releasing lock... [2025-02-15 15:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:07:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:08:05 [end_date_ymd] => 2025-02-15 15:08:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:08:05' and `end` < '2025-02-15 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-15 15:08:18] Production.INFO: count ==1873 [2025-02-15 15:08:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:08:05 - End Time 2025-02-15 15:08:05 [2025-02-15 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481895', 'tblTempUsageDetail_20' ) start [2025-02-15 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481895', 'tblTempUsageDetail_20' ) end [2025-02-15 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481895', 'tblTempVendorCDR_20' ) start [2025-02-15 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481895', 'tblTempVendorCDR_20' ) end [2025-02-15 15:08:19] Production.INFO: ProcessCDR(1,14481895,1,1,2) [2025-02-15 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481895', 'tblTempUsageDetail_20' ) start [2025-02-15 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481895', 'tblTempUsageDetail_20' ) end [2025-02-15 15:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:08:24] Production.INFO: ==23787== Releasing lock... [2025-02-15 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:08:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:09:05 [end_date_ymd] => 2025-02-15 15:09:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:09:05' and `end` < '2025-02-15 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-15 15:09:18] Production.INFO: count ==1873 [2025-02-15 15:09:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:09:05 - End Time 2025-02-15 15:09:05 [2025-02-15 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481900', 'tblTempUsageDetail_20' ) start [2025-02-15 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481900', 'tblTempUsageDetail_20' ) end [2025-02-15 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481900', 'tblTempVendorCDR_20' ) start [2025-02-15 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481900', 'tblTempVendorCDR_20' ) end [2025-02-15 15:09:19] Production.INFO: ProcessCDR(1,14481900,1,1,2) [2025-02-15 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481900', 'tblTempUsageDetail_20' ) start [2025-02-15 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481900', 'tblTempUsageDetail_20' ) end [2025-02-15 15:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:09:24] Production.INFO: ==23864== Releasing lock... [2025-02-15 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:09:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:10:05 [end_date_ymd] => 2025-02-15 15:10:05 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:10:05' and `end` < '2025-02-15 15: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-15 15:10:18] Production.INFO: count ==1872 [2025-02-15 15:10:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:10:05 - End Time 2025-02-15 15:10:05 [2025-02-15 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481906', 'tblTempUsageDetail_20' ) start [2025-02-15 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481906', 'tblTempUsageDetail_20' ) end [2025-02-15 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481906', 'tblTempVendorCDR_20' ) start [2025-02-15 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481906', 'tblTempVendorCDR_20' ) end [2025-02-15 15:10:19] Production.INFO: ProcessCDR(1,14481906,1,1,2) [2025-02-15 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481906', 'tblTempUsageDetail_20' ) start [2025-02-15 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481906', 'tblTempUsageDetail_20' ) end [2025-02-15 15:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:10:24] Production.INFO: ==23942== Releasing lock... [2025-02-15 15:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:10:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:11:05 [end_date_ymd] => 2025-02-15 15:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:11:05' and `end` < '2025-02-15 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-15 15:11:21] Production.INFO: count ==1895 [2025-02-15 15:11:22] Production.ERROR: pbx CDR StartTime 2025-02-15 12:11:05 - End Time 2025-02-15 15:11:05 [2025-02-15 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481911', 'tblTempUsageDetail_20' ) start [2025-02-15 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481911', 'tblTempUsageDetail_20' ) end [2025-02-15 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481911', 'tblTempVendorCDR_20' ) start [2025-02-15 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481911', 'tblTempVendorCDR_20' ) end [2025-02-15 15:11:22] Production.INFO: ProcessCDR(1,14481911,1,1,2) [2025-02-15 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481911', 'tblTempUsageDetail_20' ) start [2025-02-15 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481911', 'tblTempUsageDetail_20' ) end [2025-02-15 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:11:26] Production.INFO: ==24022== Releasing lock... [2025-02-15 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:11:26] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:12:06 [end_date_ymd] => 2025-02-15 15:12:06 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:12:06' and `end` < '2025-02-15 15: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-15 15:12:20] Production.INFO: count ==1889 [2025-02-15 15:12:21] Production.ERROR: pbx CDR StartTime 2025-02-15 12:12:06 - End Time 2025-02-15 15:12:06 [2025-02-15 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481916', 'tblTempUsageDetail_20' ) start [2025-02-15 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481916', 'tblTempUsageDetail_20' ) end [2025-02-15 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481916', 'tblTempVendorCDR_20' ) start [2025-02-15 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481916', 'tblTempVendorCDR_20' ) end [2025-02-15 15:12:21] Production.INFO: ProcessCDR(1,14481916,1,1,2) [2025-02-15 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481916', 'tblTempUsageDetail_20' ) start [2025-02-15 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481916', 'tblTempUsageDetail_20' ) end [2025-02-15 15:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:12:26] Production.INFO: ==24176== Releasing lock... [2025-02-15 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:12:26] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:13:05 [end_date_ymd] => 2025-02-15 15:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:13:05' and `end` < '2025-02-15 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-15 15:13:18] Production.INFO: count ==1892 [2025-02-15 15:13:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:13:05 - End Time 2025-02-15 15:13:05 [2025-02-15 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481921', 'tblTempUsageDetail_20' ) start [2025-02-15 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481921', 'tblTempUsageDetail_20' ) end [2025-02-15 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481921', 'tblTempVendorCDR_20' ) start [2025-02-15 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481921', 'tblTempVendorCDR_20' ) end [2025-02-15 15:13:19] Production.INFO: ProcessCDR(1,14481921,1,1,2) [2025-02-15 15:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481921', 'tblTempUsageDetail_20' ) start [2025-02-15 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481921', 'tblTempUsageDetail_20' ) end [2025-02-15 15:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:13:24] Production.INFO: ==24290== Releasing lock... [2025-02-15 15:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:13:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:14:05 [end_date_ymd] => 2025-02-15 15:14:05 [RateCDR] => 1 ) [2025-02-15 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:14:05' and `end` < '2025-02-15 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:14:19] Production.INFO: count ==1906 [2025-02-15 15:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:14:05 - End Time 2025-02-15 15:14:05 [2025-02-15 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481926', 'tblTempUsageDetail_20' ) start [2025-02-15 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481926', 'tblTempUsageDetail_20' ) end [2025-02-15 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481926', 'tblTempVendorCDR_20' ) start [2025-02-15 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481926', 'tblTempVendorCDR_20' ) end [2025-02-15 15:14:19] Production.INFO: ProcessCDR(1,14481926,1,1,2) [2025-02-15 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481926', 'tblTempUsageDetail_20' ) start [2025-02-15 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481926', 'tblTempUsageDetail_20' ) end [2025-02-15 15:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:14:24] Production.INFO: ==24363== Releasing lock... [2025-02-15 15:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:14:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:15:05 [end_date_ymd] => 2025-02-15 15:15:05 [RateCDR] => 1 ) [2025-02-15 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:15:05' and `end` < '2025-02-15 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:15:18] Production.INFO: count ==1907 [2025-02-15 15:15:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:15:05 - End Time 2025-02-15 15:15:05 [2025-02-15 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481931', 'tblTempUsageDetail_20' ) start [2025-02-15 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481931', 'tblTempUsageDetail_20' ) end [2025-02-15 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481931', 'tblTempVendorCDR_20' ) start [2025-02-15 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481931', 'tblTempVendorCDR_20' ) end [2025-02-15 15:15:19] Production.INFO: ProcessCDR(1,14481931,1,1,2) [2025-02-15 15:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481931', 'tblTempUsageDetail_20' ) start [2025-02-15 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481931', 'tblTempUsageDetail_20' ) end [2025-02-15 15:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:15:24] Production.INFO: ==24517== Releasing lock... [2025-02-15 15:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:15:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:16:05 [end_date_ymd] => 2025-02-15 15:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:16:05' and `end` < '2025-02-15 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-15 15:16:19] Production.INFO: count ==1905 [2025-02-15 15:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:16:05 - End Time 2025-02-15 15:16:05 [2025-02-15 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481936', 'tblTempUsageDetail_20' ) start [2025-02-15 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481936', 'tblTempUsageDetail_20' ) end [2025-02-15 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481936', 'tblTempVendorCDR_20' ) start [2025-02-15 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481936', 'tblTempVendorCDR_20' ) end [2025-02-15 15:16:19] Production.INFO: ProcessCDR(1,14481936,1,1,2) [2025-02-15 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481936', 'tblTempUsageDetail_20' ) start [2025-02-15 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481936', 'tblTempUsageDetail_20' ) end [2025-02-15 15:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:16:24] Production.INFO: ==24593== Releasing lock... [2025-02-15 15:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:16:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:17:05 [end_date_ymd] => 2025-02-15 15:17:05 [RateCDR] => 1 ) [2025-02-15 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:17:05' and `end` < '2025-02-15 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:17:19] Production.INFO: count ==1905 [2025-02-15 15:17:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:17:05 - End Time 2025-02-15 15:17:05 [2025-02-15 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481941', 'tblTempUsageDetail_20' ) start [2025-02-15 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481941', 'tblTempUsageDetail_20' ) end [2025-02-15 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481941', 'tblTempVendorCDR_20' ) start [2025-02-15 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481941', 'tblTempVendorCDR_20' ) end [2025-02-15 15:17:19] Production.INFO: ProcessCDR(1,14481941,1,1,2) [2025-02-15 15:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481941', 'tblTempUsageDetail_20' ) start [2025-02-15 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481941', 'tblTempUsageDetail_20' ) end [2025-02-15 15:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:17:24] Production.INFO: ==24668== Releasing lock... [2025-02-15 15:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:17:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:18:06 [end_date_ymd] => 2025-02-15 15:18:06 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:18:06' and `end` < '2025-02-15 15: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-15 15:18:19] Production.INFO: count ==1907 [2025-02-15 15:18:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:18:06 - End Time 2025-02-15 15:18:06 [2025-02-15 15:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481946', 'tblTempUsageDetail_20' ) start [2025-02-15 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481946', 'tblTempUsageDetail_20' ) end [2025-02-15 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481946', 'tblTempVendorCDR_20' ) start [2025-02-15 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481946', 'tblTempVendorCDR_20' ) end [2025-02-15 15:18:20] Production.INFO: ProcessCDR(1,14481946,1,1,2) [2025-02-15 15:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481946', 'tblTempUsageDetail_20' ) start [2025-02-15 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481946', 'tblTempUsageDetail_20' ) end [2025-02-15 15:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:18:25] Production.INFO: ==24745== Releasing lock... [2025-02-15 15:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:18:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:19:04 [end_date_ymd] => 2025-02-15 15:19:04 [RateCDR] => 1 ) [2025-02-15 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-15 12:19:04' and `end` < '2025-02-15 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-15 15:19:18] Production.INFO: count ==1904 [2025-02-15 15:19:18] Production.ERROR: pbx CDR StartTime 2025-02-15 12:19:04 - End Time 2025-02-15 15:19:04 [2025-02-15 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481951', 'tblTempUsageDetail_20' ) start [2025-02-15 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481951', 'tblTempUsageDetail_20' ) end [2025-02-15 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481951', 'tblTempVendorCDR_20' ) start [2025-02-15 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481951', 'tblTempVendorCDR_20' ) end [2025-02-15 15:19:18] Production.INFO: ProcessCDR(1,14481951,1,1,2) [2025-02-15 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481951', 'tblTempUsageDetail_20' ) start [2025-02-15 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481951', 'tblTempUsageDetail_20' ) end [2025-02-15 15:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:19:23] Production.INFO: ==24820== Releasing lock... [2025-02-15 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:19:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:20:06 [end_date_ymd] => 2025-02-15 15:20:06 [RateCDR] => 1 ) [2025-02-15 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:20:06' and `end` < '2025-02-15 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:20:19] Production.INFO: count ==1903 [2025-02-15 15:20:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:20:06 - End Time 2025-02-15 15:20:06 [2025-02-15 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481957', 'tblTempUsageDetail_20' ) start [2025-02-15 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481957', 'tblTempUsageDetail_20' ) end [2025-02-15 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481957', 'tblTempVendorCDR_20' ) start [2025-02-15 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481957', 'tblTempVendorCDR_20' ) end [2025-02-15 15:20:20] Production.INFO: ProcessCDR(1,14481957,1,1,2) [2025-02-15 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481957', 'tblTempUsageDetail_20' ) start [2025-02-15 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481957', 'tblTempUsageDetail_20' ) end [2025-02-15 15:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:20:25] Production.INFO: ==24897== Releasing lock... [2025-02-15 15:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:20:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:21:04 [end_date_ymd] => 2025-02-15 15:21:04 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:21:04' and `end` < '2025-02-15 15: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-15 15:21:18] Production.INFO: count ==1900 [2025-02-15 15:21:18] Production.ERROR: pbx CDR StartTime 2025-02-15 12:21:04 - End Time 2025-02-15 15:21:04 [2025-02-15 15:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481962', 'tblTempUsageDetail_20' ) start [2025-02-15 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481962', 'tblTempUsageDetail_20' ) end [2025-02-15 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481962', 'tblTempVendorCDR_20' ) start [2025-02-15 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481962', 'tblTempVendorCDR_20' ) end [2025-02-15 15:21:18] Production.INFO: ProcessCDR(1,14481962,1,1,2) [2025-02-15 15:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481962', 'tblTempUsageDetail_20' ) start [2025-02-15 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481962', 'tblTempUsageDetail_20' ) end [2025-02-15 15:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:21:23] Production.INFO: ==24972== Releasing lock... [2025-02-15 15:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:21:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:22:06 [end_date_ymd] => 2025-02-15 15:22:06 [RateCDR] => 1 ) [2025-02-15 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:22:06' and `end` < '2025-02-15 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:22:19] Production.INFO: count ==1888 [2025-02-15 15:22:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:22:06 - End Time 2025-02-15 15:22:06 [2025-02-15 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481967', 'tblTempUsageDetail_20' ) start [2025-02-15 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481967', 'tblTempUsageDetail_20' ) end [2025-02-15 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481967', 'tblTempVendorCDR_20' ) start [2025-02-15 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481967', 'tblTempVendorCDR_20' ) end [2025-02-15 15:22:20] Production.INFO: ProcessCDR(1,14481967,1,1,2) [2025-02-15 15:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481967', 'tblTempUsageDetail_20' ) start [2025-02-15 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481967', 'tblTempUsageDetail_20' ) end [2025-02-15 15:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:22:24] Production.INFO: ==25046== Releasing lock... [2025-02-15 15:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:22:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:23:05 [end_date_ymd] => 2025-02-15 15:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:23:05' and `end` < '2025-02-15 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-15 15:23:18] Production.INFO: count ==1890 [2025-02-15 15:23:18] Production.ERROR: pbx CDR StartTime 2025-02-15 12:23:05 - End Time 2025-02-15 15:23:05 [2025-02-15 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481972', 'tblTempUsageDetail_20' ) start [2025-02-15 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481972', 'tblTempUsageDetail_20' ) end [2025-02-15 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481972', 'tblTempVendorCDR_20' ) start [2025-02-15 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481972', 'tblTempVendorCDR_20' ) end [2025-02-15 15:23:18] Production.INFO: ProcessCDR(1,14481972,1,1,2) [2025-02-15 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481972', 'tblTempUsageDetail_20' ) start [2025-02-15 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481972', 'tblTempUsageDetail_20' ) end [2025-02-15 15:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:23:23] Production.INFO: ==25119== Releasing lock... [2025-02-15 15:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:23:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:24:05 [end_date_ymd] => 2025-02-15 15:24:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:24:05' and `end` < '2025-02-15 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-15 15:24:19] Production.INFO: count ==1892 [2025-02-15 15:24:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:24:05 - End Time 2025-02-15 15:24:05 [2025-02-15 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481977', 'tblTempUsageDetail_20' ) start [2025-02-15 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481977', 'tblTempUsageDetail_20' ) end [2025-02-15 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481977', 'tblTempVendorCDR_20' ) start [2025-02-15 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481977', 'tblTempVendorCDR_20' ) end [2025-02-15 15:24:20] Production.INFO: ProcessCDR(1,14481977,1,1,2) [2025-02-15 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481977', 'tblTempUsageDetail_20' ) start [2025-02-15 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481977', 'tblTempUsageDetail_20' ) end [2025-02-15 15:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:24:25] Production.INFO: ==25196== Releasing lock... [2025-02-15 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:24:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:25:06 [end_date_ymd] => 2025-02-15 15:25:06 [RateCDR] => 1 ) [2025-02-15 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:25:06' and `end` < '2025-02-15 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:25:19] Production.INFO: count ==1890 [2025-02-15 15:25:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:25:06 - End Time 2025-02-15 15:25:06 [2025-02-15 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481982', 'tblTempUsageDetail_20' ) start [2025-02-15 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481982', 'tblTempUsageDetail_20' ) end [2025-02-15 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481982', 'tblTempVendorCDR_20' ) start [2025-02-15 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481982', 'tblTempVendorCDR_20' ) end [2025-02-15 15:25:19] Production.INFO: ProcessCDR(1,14481982,1,1,2) [2025-02-15 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481982', 'tblTempUsageDetail_20' ) start [2025-02-15 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481982', 'tblTempUsageDetail_20' ) end [2025-02-15 15:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:25:24] Production.INFO: ==25274== Releasing lock... [2025-02-15 15:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:25:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:26:05 [end_date_ymd] => 2025-02-15 15:26:05 [RateCDR] => 1 ) [2025-02-15 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:26:05' and `end` < '2025-02-15 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:26:18] Production.INFO: count ==1887 [2025-02-15 15:26:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:26:05 - End Time 2025-02-15 15:26:05 [2025-02-15 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481987', 'tblTempUsageDetail_20' ) start [2025-02-15 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481987', 'tblTempUsageDetail_20' ) end [2025-02-15 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481987', 'tblTempVendorCDR_20' ) start [2025-02-15 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481987', 'tblTempVendorCDR_20' ) end [2025-02-15 15:26:19] Production.INFO: ProcessCDR(1,14481987,1,1,2) [2025-02-15 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481987', 'tblTempUsageDetail_20' ) start [2025-02-15 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481987', 'tblTempUsageDetail_20' ) end [2025-02-15 15:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:26:24] Production.INFO: ==25351== Releasing lock... [2025-02-15 15:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:26:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:27:06 [end_date_ymd] => 2025-02-15 15:27:06 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:27:06' and `end` < '2025-02-15 15: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-15 15:27:21] Production.INFO: count ==1888 [2025-02-15 15:27:21] Production.ERROR: pbx CDR StartTime 2025-02-15 12:27:06 - End Time 2025-02-15 15:27:06 [2025-02-15 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481992', 'tblTempUsageDetail_20' ) start [2025-02-15 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481992', 'tblTempUsageDetail_20' ) end [2025-02-15 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481992', 'tblTempVendorCDR_20' ) start [2025-02-15 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481992', 'tblTempVendorCDR_20' ) end [2025-02-15 15:27:21] Production.INFO: ProcessCDR(1,14481992,1,1,2) [2025-02-15 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481992', 'tblTempUsageDetail_20' ) start [2025-02-15 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481992', 'tblTempUsageDetail_20' ) end [2025-02-15 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:27:26] Production.INFO: ==25429== Releasing lock... [2025-02-15 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:27:26] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:28:05 [end_date_ymd] => 2025-02-15 15:28:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:28:05' and `end` < '2025-02-15 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-15 15:28:18] Production.INFO: count ==1876 [2025-02-15 15:28:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:28:05 - End Time 2025-02-15 15:28:05 [2025-02-15 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481997', 'tblTempUsageDetail_20' ) start [2025-02-15 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14481997', 'tblTempUsageDetail_20' ) end [2025-02-15 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481997', 'tblTempVendorCDR_20' ) start [2025-02-15 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14481997', 'tblTempVendorCDR_20' ) end [2025-02-15 15:28:19] Production.INFO: ProcessCDR(1,14481997,1,1,2) [2025-02-15 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14481997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14481997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14481997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14481997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481997', 'tblTempUsageDetail_20' ) start [2025-02-15 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14481997', 'tblTempUsageDetail_20' ) end [2025-02-15 15:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:28:23] Production.INFO: ==25512== Releasing lock... [2025-02-15 15:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:28:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:29:05 [end_date_ymd] => 2025-02-15 15:29:05 [RateCDR] => 1 ) [2025-02-15 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:29:05' and `end` < '2025-02-15 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:29:19] Production.INFO: count ==1853 [2025-02-15 15:29:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:29:05 - End Time 2025-02-15 15:29:05 [2025-02-15 15:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482001', 'tblTempUsageDetail_20' ) start [2025-02-15 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482001', 'tblTempUsageDetail_20' ) end [2025-02-15 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482001', 'tblTempVendorCDR_20' ) start [2025-02-15 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482001', 'tblTempVendorCDR_20' ) end [2025-02-15 15:29:20] Production.INFO: ProcessCDR(1,14482001,1,1,2) [2025-02-15 15:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482001', 'tblTempUsageDetail_20' ) start [2025-02-15 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482001', 'tblTempUsageDetail_20' ) end [2025-02-15 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:29:23] Production.INFO: ==25630== Releasing lock... [2025-02-15 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:29:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:30:06 [end_date_ymd] => 2025-02-15 15:30:06 [RateCDR] => 1 ) [2025-02-15 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-15 12:30:06' and `end` < '2025-02-15 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-15 15:30:19] Production.INFO: count ==1847 [2025-02-15 15:30:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:30:06 - End Time 2025-02-15 15:30:06 [2025-02-15 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482008', 'tblTempUsageDetail_20' ) start [2025-02-15 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482008', 'tblTempUsageDetail_20' ) end [2025-02-15 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482008', 'tblTempVendorCDR_20' ) start [2025-02-15 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482008', 'tblTempVendorCDR_20' ) end [2025-02-15 15:30:20] Production.INFO: ProcessCDR(1,14482008,1,1,2) [2025-02-15 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482008', 'tblTempUsageDetail_20' ) start [2025-02-15 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482008', 'tblTempUsageDetail_20' ) end [2025-02-15 15:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:30:24] Production.INFO: ==25714== Releasing lock... [2025-02-15 15:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:30:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:31:05 [end_date_ymd] => 2025-02-15 15:31:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:31:05' and `end` < '2025-02-15 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-15 15:31:18] Production.INFO: count ==1817 [2025-02-15 15:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:31:05 - End Time 2025-02-15 15:31:05 [2025-02-15 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482013', 'tblTempUsageDetail_20' ) start [2025-02-15 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482013', 'tblTempUsageDetail_20' ) end [2025-02-15 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482013', 'tblTempVendorCDR_20' ) start [2025-02-15 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482013', 'tblTempVendorCDR_20' ) end [2025-02-15 15:31:19] Production.INFO: ProcessCDR(1,14482013,1,1,2) [2025-02-15 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482013', 'tblTempUsageDetail_20' ) start [2025-02-15 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482013', 'tblTempUsageDetail_20' ) end [2025-02-15 15:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:31:24] Production.INFO: ==25794== Releasing lock... [2025-02-15 15:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:31:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:32:05 [end_date_ymd] => 2025-02-15 15:32:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:32:05' and `end` < '2025-02-15 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-15 15:32:19] Production.INFO: count ==1801 [2025-02-15 15:32:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:32:05 - End Time 2025-02-15 15:32:05 [2025-02-15 15:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482018', 'tblTempUsageDetail_20' ) start [2025-02-15 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482018', 'tblTempUsageDetail_20' ) end [2025-02-15 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482018', 'tblTempVendorCDR_20' ) start [2025-02-15 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482018', 'tblTempVendorCDR_20' ) end [2025-02-15 15:32:20] Production.INFO: ProcessCDR(1,14482018,1,1,2) [2025-02-15 15:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482018', 'tblTempUsageDetail_20' ) start [2025-02-15 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482018', 'tblTempUsageDetail_20' ) end [2025-02-15 15:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:32:25] Production.INFO: ==25869== Releasing lock... [2025-02-15 15:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:32:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:33:05 [end_date_ymd] => 2025-02-15 15:33:05 [RateCDR] => 1 ) [2025-02-15 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:33:05' and `end` < '2025-02-15 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:33:19] Production.INFO: count ==1782 [2025-02-15 15:33:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:33:05 - End Time 2025-02-15 15:33:05 [2025-02-15 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482023', 'tblTempUsageDetail_20' ) start [2025-02-15 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482023', 'tblTempUsageDetail_20' ) end [2025-02-15 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482023', 'tblTempVendorCDR_20' ) start [2025-02-15 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482023', 'tblTempVendorCDR_20' ) end [2025-02-15 15:33:20] Production.INFO: ProcessCDR(1,14482023,1,1,2) [2025-02-15 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482023', 'tblTempUsageDetail_20' ) start [2025-02-15 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482023', 'tblTempUsageDetail_20' ) end [2025-02-15 15:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:33:24] Production.INFO: ==25944== Releasing lock... [2025-02-15 15:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:33:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:34:05 [end_date_ymd] => 2025-02-15 15:34:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:34:05' and `end` < '2025-02-15 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-15 15:34:18] Production.INFO: count ==1769 [2025-02-15 15:34:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:34:05 - End Time 2025-02-15 15:34:05 [2025-02-15 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482028', 'tblTempUsageDetail_20' ) start [2025-02-15 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482028', 'tblTempUsageDetail_20' ) end [2025-02-15 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482028', 'tblTempVendorCDR_20' ) start [2025-02-15 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482028', 'tblTempVendorCDR_20' ) end [2025-02-15 15:34:19] Production.INFO: ProcessCDR(1,14482028,1,1,2) [2025-02-15 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482028', 'tblTempUsageDetail_20' ) start [2025-02-15 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482028', 'tblTempUsageDetail_20' ) end [2025-02-15 15:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:34:24] Production.INFO: ==26021== Releasing lock... [2025-02-15 15:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:34:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:35:05 [end_date_ymd] => 2025-02-15 15:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:35:05' and `end` < '2025-02-15 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-15 15:35:18] Production.INFO: count ==1766 [2025-02-15 15:35:18] Production.ERROR: pbx CDR StartTime 2025-02-15 12:35:05 - End Time 2025-02-15 15:35:05 [2025-02-15 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482033', 'tblTempUsageDetail_20' ) start [2025-02-15 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482033', 'tblTempUsageDetail_20' ) end [2025-02-15 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482033', 'tblTempVendorCDR_20' ) start [2025-02-15 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482033', 'tblTempVendorCDR_20' ) end [2025-02-15 15:35:19] Production.INFO: ProcessCDR(1,14482033,1,1,2) [2025-02-15 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482033', 'tblTempUsageDetail_20' ) start [2025-02-15 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482033', 'tblTempUsageDetail_20' ) end [2025-02-15 15:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:35:22] Production.INFO: ==26100== Releasing lock... [2025-02-15 15:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:35:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:36:06 [end_date_ymd] => 2025-02-15 15:36:06 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:36:06' and `end` < '2025-02-15 15: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-15 15:36:19] Production.INFO: count ==1760 [2025-02-15 15:36:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:36:06 - End Time 2025-02-15 15:36:06 [2025-02-15 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482038', 'tblTempUsageDetail_20' ) start [2025-02-15 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482038', 'tblTempUsageDetail_20' ) end [2025-02-15 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482038', 'tblTempVendorCDR_20' ) start [2025-02-15 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482038', 'tblTempVendorCDR_20' ) end [2025-02-15 15:36:19] Production.INFO: ProcessCDR(1,14482038,1,1,2) [2025-02-15 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482038', 'tblTempUsageDetail_20' ) start [2025-02-15 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482038', 'tblTempUsageDetail_20' ) end [2025-02-15 15:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:36:23] Production.INFO: ==26178== Releasing lock... [2025-02-15 15:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:36:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:37:05 [end_date_ymd] => 2025-02-15 15:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:37:05' and `end` < '2025-02-15 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-15 15:37:18] Production.INFO: count ==1758 [2025-02-15 15:37:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:37:05 - End Time 2025-02-15 15:37:05 [2025-02-15 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482043', 'tblTempUsageDetail_20' ) start [2025-02-15 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482043', 'tblTempUsageDetail_20' ) end [2025-02-15 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482043', 'tblTempVendorCDR_20' ) start [2025-02-15 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482043', 'tblTempVendorCDR_20' ) end [2025-02-15 15:37:19] Production.INFO: ProcessCDR(1,14482043,1,1,2) [2025-02-15 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482043', 'tblTempUsageDetail_20' ) start [2025-02-15 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482043', 'tblTempUsageDetail_20' ) end [2025-02-15 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:37:23] Production.INFO: ==26252== Releasing lock... [2025-02-15 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:37:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:38:05 [end_date_ymd] => 2025-02-15 15:38:05 [RateCDR] => 1 ) [2025-02-15 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:38:05' and `end` < '2025-02-15 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:38:18] Production.INFO: count ==1785 [2025-02-15 15:38:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:38:05 - End Time 2025-02-15 15:38:05 [2025-02-15 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482048', 'tblTempUsageDetail_20' ) start [2025-02-15 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482048', 'tblTempUsageDetail_20' ) end [2025-02-15 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482048', 'tblTempVendorCDR_20' ) start [2025-02-15 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482048', 'tblTempVendorCDR_20' ) end [2025-02-15 15:38:19] Production.INFO: ProcessCDR(1,14482048,1,1,2) [2025-02-15 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482048', 'tblTempUsageDetail_20' ) start [2025-02-15 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482048', 'tblTempUsageDetail_20' ) end [2025-02-15 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:38:22] Production.INFO: ==26330== Releasing lock... [2025-02-15 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:38:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:39:05 [end_date_ymd] => 2025-02-15 15:39:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:39:05' and `end` < '2025-02-15 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-15 15:39:18] Production.INFO: count ==1858 [2025-02-15 15:39:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:39:05 - End Time 2025-02-15 15:39:05 [2025-02-15 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482053', 'tblTempUsageDetail_20' ) start [2025-02-15 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482053', 'tblTempUsageDetail_20' ) end [2025-02-15 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482053', 'tblTempVendorCDR_20' ) start [2025-02-15 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482053', 'tblTempVendorCDR_20' ) end [2025-02-15 15:39:19] Production.INFO: ProcessCDR(1,14482053,1,1,2) [2025-02-15 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482053', 'tblTempUsageDetail_20' ) start [2025-02-15 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482053', 'tblTempUsageDetail_20' ) end [2025-02-15 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:39:22] Production.INFO: ==26407== Releasing lock... [2025-02-15 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:39:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:40:05 [end_date_ymd] => 2025-02-15 15:40:05 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:40:05' and `end` < '2025-02-15 15: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-15 15:40:19] Production.INFO: count ==1858 [2025-02-15 15:40:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:40:05 - End Time 2025-02-15 15:40:05 [2025-02-15 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482059', 'tblTempUsageDetail_20' ) start [2025-02-15 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482059', 'tblTempUsageDetail_20' ) end [2025-02-15 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482059', 'tblTempVendorCDR_20' ) start [2025-02-15 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482059', 'tblTempVendorCDR_20' ) end [2025-02-15 15:40:19] Production.INFO: ProcessCDR(1,14482059,1,1,2) [2025-02-15 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482059', 'tblTempUsageDetail_20' ) start [2025-02-15 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482059', 'tblTempUsageDetail_20' ) end [2025-02-15 15:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:40:24] Production.INFO: ==26487== Releasing lock... [2025-02-15 15:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:40:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:41:04 [end_date_ymd] => 2025-02-15 15:41:04 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:41:04' and `end` < '2025-02-15 15: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-15 15:41:18] Production.INFO: count ==1865 [2025-02-15 15:41:18] Production.ERROR: pbx CDR StartTime 2025-02-15 12:41:04 - End Time 2025-02-15 15:41:04 [2025-02-15 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482064', 'tblTempUsageDetail_20' ) start [2025-02-15 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482064', 'tblTempUsageDetail_20' ) end [2025-02-15 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482064', 'tblTempVendorCDR_20' ) start [2025-02-15 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482064', 'tblTempVendorCDR_20' ) end [2025-02-15 15:41:18] Production.INFO: ProcessCDR(1,14482064,1,1,2) [2025-02-15 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482064', 'tblTempUsageDetail_20' ) start [2025-02-15 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482064', 'tblTempUsageDetail_20' ) end [2025-02-15 15:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:41:23] Production.INFO: ==26561== Releasing lock... [2025-02-15 15:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:41:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:42:05 [end_date_ymd] => 2025-02-15 15:42:05 [RateCDR] => 1 ) [2025-02-15 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:42:05' and `end` < '2025-02-15 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:42:18] Production.INFO: count ==1907 [2025-02-15 15:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:42:05 - End Time 2025-02-15 15:42:05 [2025-02-15 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482069', 'tblTempUsageDetail_20' ) start [2025-02-15 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482069', 'tblTempUsageDetail_20' ) end [2025-02-15 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482069', 'tblTempVendorCDR_20' ) start [2025-02-15 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482069', 'tblTempVendorCDR_20' ) end [2025-02-15 15:42:19] Production.INFO: ProcessCDR(1,14482069,1,1,2) [2025-02-15 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482069', 'tblTempUsageDetail_20' ) start [2025-02-15 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482069', 'tblTempUsageDetail_20' ) end [2025-02-15 15:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:42:24] Production.INFO: ==26632== Releasing lock... [2025-02-15 15:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:42:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:43:06 [end_date_ymd] => 2025-02-15 15:43:06 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:43:06' and `end` < '2025-02-15 15: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-15 15:43:19] Production.INFO: count ==1907 [2025-02-15 15:43:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:43:06 - End Time 2025-02-15 15:43:06 [2025-02-15 15:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482074', 'tblTempUsageDetail_20' ) start [2025-02-15 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482074', 'tblTempUsageDetail_20' ) end [2025-02-15 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482074', 'tblTempVendorCDR_20' ) start [2025-02-15 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482074', 'tblTempVendorCDR_20' ) end [2025-02-15 15:43:20] Production.INFO: ProcessCDR(1,14482074,1,1,2) [2025-02-15 15:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482074', 'tblTempUsageDetail_20' ) start [2025-02-15 15:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482074', 'tblTempUsageDetail_20' ) end [2025-02-15 15:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:43:25] Production.INFO: ==26705== Releasing lock... [2025-02-15 15:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:43:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:44:05 [end_date_ymd] => 2025-02-15 15:44:05 [RateCDR] => 1 ) [2025-02-15 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:44:05' and `end` < '2025-02-15 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:44:19] Production.INFO: count ==1890 [2025-02-15 15:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:44:05 - End Time 2025-02-15 15:44:05 [2025-02-15 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482079', 'tblTempUsageDetail_20' ) start [2025-02-15 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482079', 'tblTempUsageDetail_20' ) end [2025-02-15 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482079', 'tblTempVendorCDR_20' ) start [2025-02-15 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482079', 'tblTempVendorCDR_20' ) end [2025-02-15 15:44:19] Production.INFO: ProcessCDR(1,14482079,1,1,2) [2025-02-15 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482079', 'tblTempUsageDetail_20' ) start [2025-02-15 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482079', 'tblTempUsageDetail_20' ) end [2025-02-15 15:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:44:24] Production.INFO: ==26815== Releasing lock... [2025-02-15 15:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:44:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:45:05 [end_date_ymd] => 2025-02-15 15:45:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:45:05' and `end` < '2025-02-15 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-15 15:45:18] Production.INFO: count ==1890 [2025-02-15 15:45:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:45:05 - End Time 2025-02-15 15:45:05 [2025-02-15 15:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482084', 'tblTempUsageDetail_20' ) start [2025-02-15 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482084', 'tblTempUsageDetail_20' ) end [2025-02-15 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482084', 'tblTempVendorCDR_20' ) start [2025-02-15 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482084', 'tblTempVendorCDR_20' ) end [2025-02-15 15:45:19] Production.INFO: ProcessCDR(1,14482084,1,1,2) [2025-02-15 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482084', 'tblTempUsageDetail_20' ) start [2025-02-15 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482084', 'tblTempUsageDetail_20' ) end [2025-02-15 15:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:45:24] Production.INFO: ==26886== Releasing lock... [2025-02-15 15:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:45:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:46:05 [end_date_ymd] => 2025-02-15 15:46:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:46:05' and `end` < '2025-02-15 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-15 15:46:19] Production.INFO: count ==1893 [2025-02-15 15:46:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:46:05 - End Time 2025-02-15 15:46:05 [2025-02-15 15:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482089', 'tblTempUsageDetail_20' ) start [2025-02-15 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482089', 'tblTempUsageDetail_20' ) end [2025-02-15 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482089', 'tblTempVendorCDR_20' ) start [2025-02-15 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482089', 'tblTempVendorCDR_20' ) end [2025-02-15 15:46:20] Production.INFO: ProcessCDR(1,14482089,1,1,2) [2025-02-15 15:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482089', 'tblTempUsageDetail_20' ) start [2025-02-15 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482089', 'tblTempUsageDetail_20' ) end [2025-02-15 15:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:46:24] Production.INFO: ==26957== Releasing lock... [2025-02-15 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:46:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:47:06 [end_date_ymd] => 2025-02-15 15:47:06 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:47:06' and `end` < '2025-02-15 15: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-15 15:47:19] Production.INFO: count ==1880 [2025-02-15 15:47:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:47:06 - End Time 2025-02-15 15:47:06 [2025-02-15 15:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482094', 'tblTempUsageDetail_20' ) start [2025-02-15 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482094', 'tblTempUsageDetail_20' ) end [2025-02-15 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482094', 'tblTempVendorCDR_20' ) start [2025-02-15 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482094', 'tblTempVendorCDR_20' ) end [2025-02-15 15:47:20] Production.INFO: ProcessCDR(1,14482094,1,1,2) [2025-02-15 15:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482094', 'tblTempUsageDetail_20' ) start [2025-02-15 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482094', 'tblTempUsageDetail_20' ) end [2025-02-15 15:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:47:24] Production.INFO: ==27033== Releasing lock... [2025-02-15 15:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:47:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:48:05 [end_date_ymd] => 2025-02-15 15:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:48:05' and `end` < '2025-02-15 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-15 15:48:18] Production.INFO: count ==1869 [2025-02-15 15:48:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:48:05 - End Time 2025-02-15 15:48:05 [2025-02-15 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482099', 'tblTempUsageDetail_20' ) start [2025-02-15 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482099', 'tblTempUsageDetail_20' ) end [2025-02-15 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482099', 'tblTempVendorCDR_20' ) start [2025-02-15 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482099', 'tblTempVendorCDR_20' ) end [2025-02-15 15:48:19] Production.INFO: ProcessCDR(1,14482099,1,1,2) [2025-02-15 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482099', 'tblTempUsageDetail_20' ) start [2025-02-15 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482099', 'tblTempUsageDetail_20' ) end [2025-02-15 15:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:48:24] Production.INFO: ==27104== Releasing lock... [2025-02-15 15:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:48:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:49:06 [end_date_ymd] => 2025-02-15 15:49:06 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:49:06' and `end` < '2025-02-15 15: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-15 15:49:19] Production.INFO: count ==1867 [2025-02-15 15:49:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:49:06 - End Time 2025-02-15 15:49:06 [2025-02-15 15:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482104', 'tblTempUsageDetail_20' ) start [2025-02-15 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482104', 'tblTempUsageDetail_20' ) end [2025-02-15 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482104', 'tblTempVendorCDR_20' ) start [2025-02-15 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482104', 'tblTempVendorCDR_20' ) end [2025-02-15 15:49:20] Production.INFO: ProcessCDR(1,14482104,1,1,2) [2025-02-15 15:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482104', 'tblTempUsageDetail_20' ) start [2025-02-15 15:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482104', 'tblTempUsageDetail_20' ) end [2025-02-15 15:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:49:24] Production.INFO: ==27176== Releasing lock... [2025-02-15 15:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:49:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:50:05 [end_date_ymd] => 2025-02-15 15:50:05 [RateCDR] => 1 ) [2025-02-15 15: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-15 12:50:05' and `end` < '2025-02-15 15: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-15 15:50:19] Production.INFO: count ==1860 [2025-02-15 15:50:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:50:05 - End Time 2025-02-15 15:50:05 [2025-02-15 15:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482109', 'tblTempUsageDetail_20' ) start [2025-02-15 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482109', 'tblTempUsageDetail_20' ) end [2025-02-15 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482109', 'tblTempVendorCDR_20' ) start [2025-02-15 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482109', 'tblTempVendorCDR_20' ) end [2025-02-15 15:50:20] Production.INFO: ProcessCDR(1,14482109,1,1,2) [2025-02-15 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482109', 'tblTempUsageDetail_20' ) start [2025-02-15 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482109', 'tblTempUsageDetail_20' ) end [2025-02-15 15:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:50:23] Production.INFO: ==27250== Releasing lock... [2025-02-15 15:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:50:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:51:05 [end_date_ymd] => 2025-02-15 15:51:05 [RateCDR] => 1 ) [2025-02-15 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 12:51:05' and `end` < '2025-02-15 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 15:51:21] Production.INFO: count ==1858 [2025-02-15 15:51:22] Production.ERROR: pbx CDR StartTime 2025-02-15 12:51:05 - End Time 2025-02-15 15:51:05 [2025-02-15 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482115', 'tblTempUsageDetail_20' ) start [2025-02-15 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482115', 'tblTempUsageDetail_20' ) end [2025-02-15 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482115', 'tblTempVendorCDR_20' ) start [2025-02-15 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482115', 'tblTempVendorCDR_20' ) end [2025-02-15 15:51:22] Production.INFO: ProcessCDR(1,14482115,1,1,2) [2025-02-15 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482115', 'tblTempUsageDetail_20' ) start [2025-02-15 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482115', 'tblTempUsageDetail_20' ) end [2025-02-15 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:51:27] Production.INFO: ==27322== Releasing lock... [2025-02-15 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:51:27] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:52:05 [end_date_ymd] => 2025-02-15 15:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:52:05' and `end` < '2025-02-15 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-15 15:52:21] Production.INFO: count ==1852 [2025-02-15 15:52:22] Production.ERROR: pbx CDR StartTime 2025-02-15 12:52:05 - End Time 2025-02-15 15:52:05 [2025-02-15 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482120', 'tblTempUsageDetail_20' ) start [2025-02-15 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482120', 'tblTempUsageDetail_20' ) end [2025-02-15 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482120', 'tblTempVendorCDR_20' ) start [2025-02-15 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482120', 'tblTempVendorCDR_20' ) end [2025-02-15 15:52:22] Production.INFO: ProcessCDR(1,14482120,1,1,2) [2025-02-15 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482120', 'tblTempUsageDetail_20' ) start [2025-02-15 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482120', 'tblTempUsageDetail_20' ) end [2025-02-15 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:52:27] Production.INFO: ==27392== Releasing lock... [2025-02-15 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:52:27] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:53:05 [end_date_ymd] => 2025-02-15 15:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:53:05' and `end` < '2025-02-15 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-15 15:53:19] Production.INFO: count ==1864 [2025-02-15 15:53:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:53:05 - End Time 2025-02-15 15:53:05 [2025-02-15 15:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482125', 'tblTempUsageDetail_20' ) start [2025-02-15 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482125', 'tblTempUsageDetail_20' ) end [2025-02-15 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482125', 'tblTempVendorCDR_20' ) start [2025-02-15 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482125', 'tblTempVendorCDR_20' ) end [2025-02-15 15:53:20] Production.INFO: ProcessCDR(1,14482125,1,1,2) [2025-02-15 15:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482125', 'tblTempUsageDetail_20' ) start [2025-02-15 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482125', 'tblTempUsageDetail_20' ) end [2025-02-15 15:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:53:25] Production.INFO: ==27465== Releasing lock... [2025-02-15 15:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:53:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:54:05 [end_date_ymd] => 2025-02-15 15:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:54:05' and `end` < '2025-02-15 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-15 15:54:18] Production.INFO: count ==1868 [2025-02-15 15:54:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:54:05 - End Time 2025-02-15 15:54:05 [2025-02-15 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482130', 'tblTempUsageDetail_20' ) start [2025-02-15 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482130', 'tblTempUsageDetail_20' ) end [2025-02-15 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482130', 'tblTempVendorCDR_20' ) start [2025-02-15 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482130', 'tblTempVendorCDR_20' ) end [2025-02-15 15:54:19] Production.INFO: ProcessCDR(1,14482130,1,1,2) [2025-02-15 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482130', 'tblTempUsageDetail_20' ) start [2025-02-15 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482130', 'tblTempUsageDetail_20' ) end [2025-02-15 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:54:23] Production.INFO: ==27533== Releasing lock... [2025-02-15 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:54:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:55:06 [end_date_ymd] => 2025-02-15 15:55:06 [RateCDR] => 1 ) [2025-02-15 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-15 12:55:06' and `end` < '2025-02-15 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-15 15:55:19] Production.INFO: count ==1861 [2025-02-15 15:55:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:55:06 - End Time 2025-02-15 15:55:06 [2025-02-15 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482135', 'tblTempUsageDetail_20' ) start [2025-02-15 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482135', 'tblTempUsageDetail_20' ) end [2025-02-15 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482135', 'tblTempVendorCDR_20' ) start [2025-02-15 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482135', 'tblTempVendorCDR_20' ) end [2025-02-15 15:55:19] Production.INFO: ProcessCDR(1,14482135,1,1,2) [2025-02-15 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482135', 'tblTempUsageDetail_20' ) start [2025-02-15 15:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482135', 'tblTempUsageDetail_20' ) end [2025-02-15 15:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:55:24] Production.INFO: ==27604== Releasing lock... [2025-02-15 15:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:55:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:56:05 [end_date_ymd] => 2025-02-15 15:56:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:56:05' and `end` < '2025-02-15 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-15 15:56:18] Production.INFO: count ==1863 [2025-02-15 15:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:56:05 - End Time 2025-02-15 15:56:05 [2025-02-15 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482140', 'tblTempUsageDetail_20' ) start [2025-02-15 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482140', 'tblTempUsageDetail_20' ) end [2025-02-15 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482140', 'tblTempVendorCDR_20' ) start [2025-02-15 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482140', 'tblTempVendorCDR_20' ) end [2025-02-15 15:56:19] Production.INFO: ProcessCDR(1,14482140,1,1,2) [2025-02-15 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482140', 'tblTempUsageDetail_20' ) start [2025-02-15 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482140', 'tblTempUsageDetail_20' ) end [2025-02-15 15:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:56:24] Production.INFO: ==27679== Releasing lock... [2025-02-15 15:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:56:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:57:05 [end_date_ymd] => 2025-02-15 15:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:57:05' and `end` < '2025-02-15 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-15 15:57:19] Production.INFO: count ==1868 [2025-02-15 15:57:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:57:05 - End Time 2025-02-15 15:57:05 [2025-02-15 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482145', 'tblTempUsageDetail_20' ) start [2025-02-15 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482145', 'tblTempUsageDetail_20' ) end [2025-02-15 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482145', 'tblTempVendorCDR_20' ) start [2025-02-15 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482145', 'tblTempVendorCDR_20' ) end [2025-02-15 15:57:20] Production.INFO: ProcessCDR(1,14482145,1,1,2) [2025-02-15 15:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482145', 'tblTempUsageDetail_20' ) start [2025-02-15 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482145', 'tblTempUsageDetail_20' ) end [2025-02-15 15:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:57:25] Production.INFO: ==27753== Releasing lock... [2025-02-15 15:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:57:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:58:05 [end_date_ymd] => 2025-02-15 15:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:58:05' and `end` < '2025-02-15 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-15 15:58:19] Production.INFO: count ==1854 [2025-02-15 15:58:20] Production.ERROR: pbx CDR StartTime 2025-02-15 12:58:05 - End Time 2025-02-15 15:58:05 [2025-02-15 15:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482150', 'tblTempUsageDetail_20' ) start [2025-02-15 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482150', 'tblTempUsageDetail_20' ) end [2025-02-15 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482150', 'tblTempVendorCDR_20' ) start [2025-02-15 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482150', 'tblTempVendorCDR_20' ) end [2025-02-15 15:58:20] Production.INFO: ProcessCDR(1,14482150,1,1,2) [2025-02-15 15:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482150', 'tblTempUsageDetail_20' ) start [2025-02-15 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482150', 'tblTempUsageDetail_20' ) end [2025-02-15 15:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:58:25] Production.INFO: ==27825== Releasing lock... [2025-02-15 15:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:58:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 12:59:05 [end_date_ymd] => 2025-02-15 15:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 12:59:05' and `end` < '2025-02-15 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-15 15:59:19] Production.INFO: count ==1852 [2025-02-15 15:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 12:59:05 - End Time 2025-02-15 15:59:05 [2025-02-15 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482155', 'tblTempUsageDetail_20' ) start [2025-02-15 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482155', 'tblTempUsageDetail_20' ) end [2025-02-15 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482155', 'tblTempVendorCDR_20' ) start [2025-02-15 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482155', 'tblTempVendorCDR_20' ) end [2025-02-15 15:59:19] Production.INFO: ProcessCDR(1,14482155,1,1,2) [2025-02-15 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 15:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482155', 'tblTempUsageDetail_20' ) start [2025-02-15 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482155', 'tblTempUsageDetail_20' ) end [2025-02-15 15:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 15:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 15:59:24] Production.INFO: ==27937== Releasing lock... [2025-02-15 15:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 15:59:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:00:06 [end_date_ymd] => 2025-02-15 16:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 13:00:06' and `end` < '2025-02-15 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-15 16:00:21] Production.INFO: count ==1851 [2025-02-15 16:00:21] Production.ERROR: pbx CDR StartTime 2025-02-15 13:00:06 - End Time 2025-02-15 16:00:06 [2025-02-15 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482161', 'tblTempUsageDetail_20' ) start [2025-02-15 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482161', 'tblTempUsageDetail_20' ) end [2025-02-15 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482161', 'tblTempVendorCDR_20' ) start [2025-02-15 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482161', 'tblTempVendorCDR_20' ) end [2025-02-15 16:00:21] Production.INFO: ProcessCDR(1,14482161,1,1,2) [2025-02-15 16:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482161', 'tblTempUsageDetail_20' ) start [2025-02-15 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482161', 'tblTempUsageDetail_20' ) end [2025-02-15 16:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:00:25] Production.INFO: ==28010== Releasing lock... [2025-02-15 16:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:00:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:01:06 [end_date_ymd] => 2025-02-15 16:01:06 [RateCDR] => 1 ) [2025-02-15 16: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-15 13:01:06' and `end` < '2025-02-15 16: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-15 16:01:19] Production.INFO: count ==1846 [2025-02-15 16:01:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:01:06 - End Time 2025-02-15 16:01:06 [2025-02-15 16:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482166', 'tblTempUsageDetail_20' ) start [2025-02-15 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482166', 'tblTempUsageDetail_20' ) end [2025-02-15 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482166', 'tblTempVendorCDR_20' ) start [2025-02-15 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482166', 'tblTempVendorCDR_20' ) end [2025-02-15 16:01:20] Production.INFO: ProcessCDR(1,14482166,1,1,2) [2025-02-15 16:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482166', 'tblTempUsageDetail_20' ) start [2025-02-15 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482166', 'tblTempUsageDetail_20' ) end [2025-02-15 16:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:01:23] Production.INFO: ==28095== Releasing lock... [2025-02-15 16:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:01:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:02:05 [end_date_ymd] => 2025-02-15 16:02:05 [RateCDR] => 1 ) [2025-02-15 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:02:05' and `end` < '2025-02-15 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:02:18] Production.INFO: count ==1845 [2025-02-15 16:02:18] Production.ERROR: pbx CDR StartTime 2025-02-15 13:02:05 - End Time 2025-02-15 16:02:05 [2025-02-15 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482171', 'tblTempUsageDetail_20' ) start [2025-02-15 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482171', 'tblTempUsageDetail_20' ) end [2025-02-15 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482171', 'tblTempVendorCDR_20' ) start [2025-02-15 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482171', 'tblTempVendorCDR_20' ) end [2025-02-15 16:02:19] Production.INFO: ProcessCDR(1,14482171,1,1,2) [2025-02-15 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482171', 'tblTempUsageDetail_20' ) start [2025-02-15 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482171', 'tblTempUsageDetail_20' ) end [2025-02-15 16:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:02:22] Production.INFO: ==28165== Releasing lock... [2025-02-15 16:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:02:22] Production.INFO: 42 MB #Memory Used# [2025-02-15 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:03:05 [end_date_ymd] => 2025-02-15 16:03:05 [RateCDR] => 1 ) [2025-02-15 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:03:05' and `end` < '2025-02-15 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:03:18] Production.INFO: count ==1844 [2025-02-15 16:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:03:05 - End Time 2025-02-15 16:03:05 [2025-02-15 16:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482176', 'tblTempUsageDetail_20' ) start [2025-02-15 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482176', 'tblTempUsageDetail_20' ) end [2025-02-15 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482176', 'tblTempVendorCDR_20' ) start [2025-02-15 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482176', 'tblTempVendorCDR_20' ) end [2025-02-15 16:03:19] Production.INFO: ProcessCDR(1,14482176,1,1,2) [2025-02-15 16:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482176', 'tblTempUsageDetail_20' ) start [2025-02-15 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482176', 'tblTempUsageDetail_20' ) end [2025-02-15 16:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:03:24] Production.INFO: ==28235== Releasing lock... [2025-02-15 16:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:03:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:04:05 [end_date_ymd] => 2025-02-15 16:04:05 [RateCDR] => 1 ) [2025-02-15 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:04:05' and `end` < '2025-02-15 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:04:19] Production.INFO: count ==1844 [2025-02-15 16:04:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:04:05 - End Time 2025-02-15 16:04:05 [2025-02-15 16:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482181', 'tblTempUsageDetail_20' ) start [2025-02-15 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482181', 'tblTempUsageDetail_20' ) end [2025-02-15 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482181', 'tblTempVendorCDR_20' ) start [2025-02-15 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482181', 'tblTempVendorCDR_20' ) end [2025-02-15 16:04:20] Production.INFO: ProcessCDR(1,14482181,1,1,2) [2025-02-15 16:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482181', 'tblTempUsageDetail_20' ) start [2025-02-15 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482181', 'tblTempUsageDetail_20' ) end [2025-02-15 16:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:04:25] Production.INFO: ==28307== Releasing lock... [2025-02-15 16:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:04:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:05:05 [end_date_ymd] => 2025-02-15 16:05:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:05:05' and `end` < '2025-02-15 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-15 16:05:18] Production.INFO: count ==1843 [2025-02-15 16:05:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:05:05 - End Time 2025-02-15 16:05:05 [2025-02-15 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482186', 'tblTempUsageDetail_20' ) start [2025-02-15 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482186', 'tblTempUsageDetail_20' ) end [2025-02-15 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482186', 'tblTempVendorCDR_20' ) start [2025-02-15 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482186', 'tblTempVendorCDR_20' ) end [2025-02-15 16:05:19] Production.INFO: ProcessCDR(1,14482186,1,1,2) [2025-02-15 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482186', 'tblTempUsageDetail_20' ) start [2025-02-15 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482186', 'tblTempUsageDetail_20' ) end [2025-02-15 16:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:05:23] Production.INFO: ==28378== Releasing lock... [2025-02-15 16:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:05:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:06:05 [end_date_ymd] => 2025-02-15 16:06:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:06:05' and `end` < '2025-02-15 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:06:19] Production.INFO: count ==1842 [2025-02-15 16:06:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:06:05 - End Time 2025-02-15 16:06:05 [2025-02-15 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482191', 'tblTempUsageDetail_20' ) start [2025-02-15 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482191', 'tblTempUsageDetail_20' ) end [2025-02-15 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482191', 'tblTempVendorCDR_20' ) start [2025-02-15 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482191', 'tblTempVendorCDR_20' ) end [2025-02-15 16:06:20] Production.INFO: ProcessCDR(1,14482191,1,1,2) [2025-02-15 16:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482191', 'tblTempUsageDetail_20' ) start [2025-02-15 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482191', 'tblTempUsageDetail_20' ) end [2025-02-15 16:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:06:25] Production.INFO: ==28449== Releasing lock... [2025-02-15 16:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:06:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:07:05 [end_date_ymd] => 2025-02-15 16:07:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:07:05' and `end` < '2025-02-15 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-15 16:07:18] Production.INFO: count ==1832 [2025-02-15 16:07:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:07:05 - End Time 2025-02-15 16:07:05 [2025-02-15 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482196', 'tblTempUsageDetail_20' ) start [2025-02-15 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482196', 'tblTempUsageDetail_20' ) end [2025-02-15 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482196', 'tblTempVendorCDR_20' ) start [2025-02-15 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482196', 'tblTempVendorCDR_20' ) end [2025-02-15 16:07:19] Production.INFO: ProcessCDR(1,14482196,1,1,2) [2025-02-15 16:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482196', 'tblTempUsageDetail_20' ) start [2025-02-15 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482196', 'tblTempUsageDetail_20' ) end [2025-02-15 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:07:24] Production.INFO: ==28523== Releasing lock... [2025-02-15 16:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:07:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:08:05 [end_date_ymd] => 2025-02-15 16:08:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:08:05' and `end` < '2025-02-15 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-15 16:08:19] Production.INFO: count ==1834 [2025-02-15 16:08:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:08:05 - End Time 2025-02-15 16:08:05 [2025-02-15 16:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482201', 'tblTempUsageDetail_20' ) start [2025-02-15 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482201', 'tblTempUsageDetail_20' ) end [2025-02-15 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482201', 'tblTempVendorCDR_20' ) start [2025-02-15 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482201', 'tblTempVendorCDR_20' ) end [2025-02-15 16:08:20] Production.INFO: ProcessCDR(1,14482201,1,1,2) [2025-02-15 16:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482201', 'tblTempUsageDetail_20' ) start [2025-02-15 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482201', 'tblTempUsageDetail_20' ) end [2025-02-15 16:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:08:25] Production.INFO: ==28596== Releasing lock... [2025-02-15 16:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:08:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:09:05 [end_date_ymd] => 2025-02-15 16:09:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:09:05' and `end` < '2025-02-15 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-15 16:09:18] Production.INFO: count ==1834 [2025-02-15 16:09:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:09:05 - End Time 2025-02-15 16:09:05 [2025-02-15 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482206', 'tblTempUsageDetail_20' ) start [2025-02-15 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482206', 'tblTempUsageDetail_20' ) end [2025-02-15 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482206', 'tblTempVendorCDR_20' ) start [2025-02-15 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482206', 'tblTempVendorCDR_20' ) end [2025-02-15 16:09:19] Production.INFO: ProcessCDR(1,14482206,1,1,2) [2025-02-15 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482206', 'tblTempUsageDetail_20' ) start [2025-02-15 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482206', 'tblTempUsageDetail_20' ) end [2025-02-15 16:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:09:24] Production.INFO: ==28667== Releasing lock... [2025-02-15 16:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:09:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:10:06 [end_date_ymd] => 2025-02-15 16:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 13:10:06' and `end` < '2025-02-15 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-15 16:10:19] Production.INFO: count ==1829 [2025-02-15 16:10:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:10:06 - End Time 2025-02-15 16:10:06 [2025-02-15 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482211', 'tblTempUsageDetail_20' ) start [2025-02-15 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482211', 'tblTempUsageDetail_20' ) end [2025-02-15 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482211', 'tblTempVendorCDR_20' ) start [2025-02-15 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482211', 'tblTempVendorCDR_20' ) end [2025-02-15 16:10:20] Production.INFO: ProcessCDR(1,14482211,1,1,2) [2025-02-15 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482211', 'tblTempUsageDetail_20' ) start [2025-02-15 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482211', 'tblTempUsageDetail_20' ) end [2025-02-15 16:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:10:24] Production.INFO: ==28748== Releasing lock... [2025-02-15 16:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:10:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:11:05 [end_date_ymd] => 2025-02-15 16:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:11:05' and `end` < '2025-02-15 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-15 16:11:19] Production.INFO: count ==1805 [2025-02-15 16:11:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:11:05 - End Time 2025-02-15 16:11:05 [2025-02-15 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482217', 'tblTempUsageDetail_20' ) start [2025-02-15 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482217', 'tblTempUsageDetail_20' ) end [2025-02-15 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482217', 'tblTempVendorCDR_20' ) start [2025-02-15 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482217', 'tblTempVendorCDR_20' ) end [2025-02-15 16:11:20] Production.INFO: ProcessCDR(1,14482217,1,1,2) [2025-02-15 16:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482217', 'tblTempUsageDetail_20' ) start [2025-02-15 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482217', 'tblTempUsageDetail_20' ) end [2025-02-15 16:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:11:23] Production.INFO: ==28822== Releasing lock... [2025-02-15 16:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:11:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:12:05 [end_date_ymd] => 2025-02-15 16:12:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:12:05' and `end` < '2025-02-15 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-15 16:12:20] Production.INFO: count ==1810 [2025-02-15 16:12:21] Production.ERROR: pbx CDR StartTime 2025-02-15 13:12:05 - End Time 2025-02-15 16:12:05 [2025-02-15 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482222', 'tblTempUsageDetail_20' ) start [2025-02-15 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482222', 'tblTempUsageDetail_20' ) end [2025-02-15 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482222', 'tblTempVendorCDR_20' ) start [2025-02-15 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482222', 'tblTempVendorCDR_20' ) end [2025-02-15 16:12:21] Production.INFO: ProcessCDR(1,14482222,1,1,2) [2025-02-15 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482222', 'tblTempUsageDetail_20' ) start [2025-02-15 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482222', 'tblTempUsageDetail_20' ) end [2025-02-15 16:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:12:25] Production.INFO: ==28891== Releasing lock... [2025-02-15 16:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:12:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:13:05 [end_date_ymd] => 2025-02-15 16:13:05 [RateCDR] => 1 ) [2025-02-15 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:13:05' and `end` < '2025-02-15 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:13:18] Production.INFO: count ==1806 [2025-02-15 16:13:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:13:05 - End Time 2025-02-15 16:13:05 [2025-02-15 16:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482227', 'tblTempUsageDetail_20' ) start [2025-02-15 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482227', 'tblTempUsageDetail_20' ) end [2025-02-15 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482227', 'tblTempVendorCDR_20' ) start [2025-02-15 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482227', 'tblTempVendorCDR_20' ) end [2025-02-15 16:13:19] Production.INFO: ProcessCDR(1,14482227,1,1,2) [2025-02-15 16:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482227', 'tblTempUsageDetail_20' ) start [2025-02-15 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482227', 'tblTempUsageDetail_20' ) end [2025-02-15 16:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:13:22] Production.INFO: ==28960== Releasing lock... [2025-02-15 16:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:13:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:14:05 [end_date_ymd] => 2025-02-15 16:14:05 [RateCDR] => 1 ) [2025-02-15 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:14:05' and `end` < '2025-02-15 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:14:18] Production.INFO: count ==1799 [2025-02-15 16:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:14:05 - End Time 2025-02-15 16:14:05 [2025-02-15 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482232', 'tblTempUsageDetail_20' ) start [2025-02-15 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482232', 'tblTempUsageDetail_20' ) end [2025-02-15 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482232', 'tblTempVendorCDR_20' ) start [2025-02-15 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482232', 'tblTempVendorCDR_20' ) end [2025-02-15 16:14:19] Production.INFO: ProcessCDR(1,14482232,1,1,2) [2025-02-15 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482232', 'tblTempUsageDetail_20' ) start [2025-02-15 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482232', 'tblTempUsageDetail_20' ) end [2025-02-15 16:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:14:23] Production.INFO: ==29031== Releasing lock... [2025-02-15 16:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:14:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:15:05 [end_date_ymd] => 2025-02-15 16:15:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:15:05' and `end` < '2025-02-15 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-15 16:15:19] Production.INFO: count ==1790 [2025-02-15 16:15:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:15:05 - End Time 2025-02-15 16:15:05 [2025-02-15 16:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482237', 'tblTempUsageDetail_20' ) start [2025-02-15 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482237', 'tblTempUsageDetail_20' ) end [2025-02-15 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482237', 'tblTempVendorCDR_20' ) start [2025-02-15 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482237', 'tblTempVendorCDR_20' ) end [2025-02-15 16:15:20] Production.INFO: ProcessCDR(1,14482237,1,1,2) [2025-02-15 16:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482237', 'tblTempUsageDetail_20' ) start [2025-02-15 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482237', 'tblTempUsageDetail_20' ) end [2025-02-15 16:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:15:24] Production.INFO: ==29142== Releasing lock... [2025-02-15 16:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:15:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:16:05 [end_date_ymd] => 2025-02-15 16:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:16:05' and `end` < '2025-02-15 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-15 16:16:18] Production.INFO: count ==1784 [2025-02-15 16:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:16:05 - End Time 2025-02-15 16:16:05 [2025-02-15 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482242', 'tblTempUsageDetail_20' ) start [2025-02-15 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482242', 'tblTempUsageDetail_20' ) end [2025-02-15 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482242', 'tblTempVendorCDR_20' ) start [2025-02-15 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482242', 'tblTempVendorCDR_20' ) end [2025-02-15 16:16:19] Production.INFO: ProcessCDR(1,14482242,1,1,2) [2025-02-15 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482242', 'tblTempUsageDetail_20' ) start [2025-02-15 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482242', 'tblTempUsageDetail_20' ) end [2025-02-15 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:16:23] Production.INFO: ==29212== Releasing lock... [2025-02-15 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:16:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:17:05 [end_date_ymd] => 2025-02-15 16:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:17:05' and `end` < '2025-02-15 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-15 16:17:18] Production.INFO: count ==1777 [2025-02-15 16:17:18] Production.ERROR: pbx CDR StartTime 2025-02-15 13:17:05 - End Time 2025-02-15 16:17:05 [2025-02-15 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482247', 'tblTempUsageDetail_20' ) start [2025-02-15 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482247', 'tblTempUsageDetail_20' ) end [2025-02-15 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482247', 'tblTempVendorCDR_20' ) start [2025-02-15 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482247', 'tblTempVendorCDR_20' ) end [2025-02-15 16:17:18] Production.INFO: ProcessCDR(1,14482247,1,1,2) [2025-02-15 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482247', 'tblTempUsageDetail_20' ) start [2025-02-15 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482247', 'tblTempUsageDetail_20' ) end [2025-02-15 16:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:17:22] Production.INFO: ==29282== Releasing lock... [2025-02-15 16:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:17:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:18:05 [end_date_ymd] => 2025-02-15 16:18:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:18:05' and `end` < '2025-02-15 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-15 16:18:19] Production.INFO: count ==1773 [2025-02-15 16:18:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:18:05 - End Time 2025-02-15 16:18:05 [2025-02-15 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482252', 'tblTempUsageDetail_20' ) start [2025-02-15 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482252', 'tblTempUsageDetail_20' ) end [2025-02-15 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482252', 'tblTempVendorCDR_20' ) start [2025-02-15 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482252', 'tblTempVendorCDR_20' ) end [2025-02-15 16:18:19] Production.INFO: ProcessCDR(1,14482252,1,1,2) [2025-02-15 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482252', 'tblTempUsageDetail_20' ) start [2025-02-15 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482252', 'tblTempUsageDetail_20' ) end [2025-02-15 16:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:18:24] Production.INFO: ==29364== Releasing lock... [2025-02-15 16:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:18:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:19:05 [end_date_ymd] => 2025-02-15 16:19:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:19:05' and `end` < '2025-02-15 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-15 16:19:19] Production.INFO: count ==1775 [2025-02-15 16:19:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:19:05 - End Time 2025-02-15 16:19:05 [2025-02-15 16:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482257', 'tblTempUsageDetail_20' ) start [2025-02-15 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482257', 'tblTempUsageDetail_20' ) end [2025-02-15 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482257', 'tblTempVendorCDR_20' ) start [2025-02-15 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482257', 'tblTempVendorCDR_20' ) end [2025-02-15 16:19:20] Production.INFO: ProcessCDR(1,14482257,1,1,2) [2025-02-15 16:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482257', 'tblTempUsageDetail_20' ) start [2025-02-15 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482257', 'tblTempUsageDetail_20' ) end [2025-02-15 16:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:19:23] Production.INFO: ==29435== Releasing lock... [2025-02-15 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:19:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:20:05 [end_date_ymd] => 2025-02-15 16:20:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:20:05' and `end` < '2025-02-15 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:20:19] Production.INFO: count ==1772 [2025-02-15 16:20:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:20:05 - End Time 2025-02-15 16:20:05 [2025-02-15 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482263', 'tblTempUsageDetail_20' ) start [2025-02-15 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482263', 'tblTempUsageDetail_20' ) end [2025-02-15 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482263', 'tblTempVendorCDR_20' ) start [2025-02-15 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482263', 'tblTempVendorCDR_20' ) end [2025-02-15 16:20:19] Production.INFO: ProcessCDR(1,14482263,1,1,2) [2025-02-15 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482263', 'tblTempUsageDetail_20' ) start [2025-02-15 16:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482263', 'tblTempUsageDetail_20' ) end [2025-02-15 16:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:20:24] Production.INFO: ==29507== Releasing lock... [2025-02-15 16:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:20:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:21:05 [end_date_ymd] => 2025-02-15 16:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:21:05' and `end` < '2025-02-15 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-15 16:21:20] Production.INFO: count ==1790 [2025-02-15 16:21:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:21:05 - End Time 2025-02-15 16:21:05 [2025-02-15 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482268', 'tblTempUsageDetail_20' ) start [2025-02-15 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482268', 'tblTempUsageDetail_20' ) end [2025-02-15 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482268', 'tblTempVendorCDR_20' ) start [2025-02-15 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482268', 'tblTempVendorCDR_20' ) end [2025-02-15 16:21:20] Production.INFO: ProcessCDR(1,14482268,1,1,2) [2025-02-15 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482268', 'tblTempUsageDetail_20' ) start [2025-02-15 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482268', 'tblTempUsageDetail_20' ) end [2025-02-15 16:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:21:25] Production.INFO: ==29581== Releasing lock... [2025-02-15 16:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:21:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:22:04 [end_date_ymd] => 2025-02-15 16:22:04 [RateCDR] => 1 ) [2025-02-15 16: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-15 13:22:04' and `end` < '2025-02-15 16: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-15 16:22:18] Production.INFO: count ==1776 [2025-02-15 16:22:18] Production.ERROR: pbx CDR StartTime 2025-02-15 13:22:04 - End Time 2025-02-15 16:22:04 [2025-02-15 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482273', 'tblTempUsageDetail_20' ) start [2025-02-15 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482273', 'tblTempUsageDetail_20' ) end [2025-02-15 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482273', 'tblTempVendorCDR_20' ) start [2025-02-15 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482273', 'tblTempVendorCDR_20' ) end [2025-02-15 16:22:18] Production.INFO: ProcessCDR(1,14482273,1,1,2) [2025-02-15 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482273', 'tblTempUsageDetail_20' ) start [2025-02-15 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482273', 'tblTempUsageDetail_20' ) end [2025-02-15 16:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:22:22] Production.INFO: ==29651== Releasing lock... [2025-02-15 16:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:22:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:23:06 [end_date_ymd] => 2025-02-15 16:23:06 [RateCDR] => 1 ) [2025-02-15 16:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:23:06' and `end` < '2025-02-15 16:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:23:19] Production.INFO: count ==1772 [2025-02-15 16:23:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:23:06 - End Time 2025-02-15 16:23:06 [2025-02-15 16:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482278', 'tblTempUsageDetail_20' ) start [2025-02-15 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482278', 'tblTempUsageDetail_20' ) end [2025-02-15 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482278', 'tblTempVendorCDR_20' ) start [2025-02-15 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482278', 'tblTempVendorCDR_20' ) end [2025-02-15 16:23:20] Production.INFO: ProcessCDR(1,14482278,1,1,2) [2025-02-15 16:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482278', 'tblTempUsageDetail_20' ) start [2025-02-15 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482278', 'tblTempUsageDetail_20' ) end [2025-02-15 16:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:23:24] Production.INFO: ==29727== Releasing lock... [2025-02-15 16:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:23:24] Production.INFO: 41 MB #Memory Used# [2025-02-15 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:24:05 [end_date_ymd] => 2025-02-15 16:24:05 [RateCDR] => 1 ) [2025-02-15 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:24:05' and `end` < '2025-02-15 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:24:19] Production.INFO: count ==1776 [2025-02-15 16:24:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:24:05 - End Time 2025-02-15 16:24:05 [2025-02-15 16:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482283', 'tblTempUsageDetail_20' ) start [2025-02-15 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482283', 'tblTempUsageDetail_20' ) end [2025-02-15 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482283', 'tblTempVendorCDR_20' ) start [2025-02-15 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482283', 'tblTempVendorCDR_20' ) end [2025-02-15 16:24:20] Production.INFO: ProcessCDR(1,14482283,1,1,2) [2025-02-15 16:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482283', 'tblTempUsageDetail_20' ) start [2025-02-15 16:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482283', 'tblTempUsageDetail_20' ) end [2025-02-15 16:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:24:24] Production.INFO: ==29799== Releasing lock... [2025-02-15 16:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:24:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:25:05 [end_date_ymd] => 2025-02-15 16:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:25:05' and `end` < '2025-02-15 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-15 16:25:18] Production.INFO: count ==1778 [2025-02-15 16:25:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:25:05 - End Time 2025-02-15 16:25:05 [2025-02-15 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482288', 'tblTempUsageDetail_20' ) start [2025-02-15 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482288', 'tblTempUsageDetail_20' ) end [2025-02-15 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482288', 'tblTempVendorCDR_20' ) start [2025-02-15 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482288', 'tblTempVendorCDR_20' ) end [2025-02-15 16:25:19] Production.INFO: ProcessCDR(1,14482288,1,1,2) [2025-02-15 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482288', 'tblTempUsageDetail_20' ) start [2025-02-15 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482288', 'tblTempUsageDetail_20' ) end [2025-02-15 16:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:25:23] Production.INFO: ==29871== Releasing lock... [2025-02-15 16:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:25:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:26:04 [end_date_ymd] => 2025-02-15 16:26:04 [RateCDR] => 1 ) [2025-02-15 16: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-15 13:26:04' and `end` < '2025-02-15 16: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-15 16:26:18] Production.INFO: count ==1787 [2025-02-15 16:26:18] Production.ERROR: pbx CDR StartTime 2025-02-15 13:26:04 - End Time 2025-02-15 16:26:04 [2025-02-15 16:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482293', 'tblTempUsageDetail_20' ) start [2025-02-15 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482293', 'tblTempUsageDetail_20' ) end [2025-02-15 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482293', 'tblTempVendorCDR_20' ) start [2025-02-15 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482293', 'tblTempVendorCDR_20' ) end [2025-02-15 16:26:18] Production.INFO: ProcessCDR(1,14482293,1,1,2) [2025-02-15 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482293', 'tblTempUsageDetail_20' ) start [2025-02-15 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482293', 'tblTempUsageDetail_20' ) end [2025-02-15 16:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:26:23] Production.INFO: ==29947== Releasing lock... [2025-02-15 16:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:26:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:27:05 [end_date_ymd] => 2025-02-15 16:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:27:05' and `end` < '2025-02-15 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-15 16:27:19] Production.INFO: count ==1780 [2025-02-15 16:27:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:27:05 - End Time 2025-02-15 16:27:05 [2025-02-15 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482298', 'tblTempUsageDetail_20' ) start [2025-02-15 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482298', 'tblTempUsageDetail_20' ) end [2025-02-15 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482298', 'tblTempVendorCDR_20' ) start [2025-02-15 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482298', 'tblTempVendorCDR_20' ) end [2025-02-15 16:27:19] Production.INFO: ProcessCDR(1,14482298,1,1,2) [2025-02-15 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482298', 'tblTempUsageDetail_20' ) start [2025-02-15 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482298', 'tblTempUsageDetail_20' ) end [2025-02-15 16:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:27:24] Production.INFO: ==30019== Releasing lock... [2025-02-15 16:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:27:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:28:05 [end_date_ymd] => 2025-02-15 16:28:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:28:05' and `end` < '2025-02-15 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-15 16:28:18] Production.INFO: count ==1781 [2025-02-15 16:28:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:28:05 - End Time 2025-02-15 16:28:05 [2025-02-15 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482303', 'tblTempUsageDetail_20' ) start [2025-02-15 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482303', 'tblTempUsageDetail_20' ) end [2025-02-15 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482303', 'tblTempVendorCDR_20' ) start [2025-02-15 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482303', 'tblTempVendorCDR_20' ) end [2025-02-15 16:28:19] Production.INFO: ProcessCDR(1,14482303,1,1,2) [2025-02-15 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482303', 'tblTempUsageDetail_20' ) start [2025-02-15 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482303', 'tblTempUsageDetail_20' ) end [2025-02-15 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:28:24] Production.INFO: ==30094== Releasing lock... [2025-02-15 16:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:28:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:29:06 [end_date_ymd] => 2025-02-15 16:29:06 [RateCDR] => 1 ) [2025-02-15 16:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:29:06' and `end` < '2025-02-15 16:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:29:20] Production.INFO: count ==1781 [2025-02-15 16:29:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:29:06 - End Time 2025-02-15 16:29:06 [2025-02-15 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482308', 'tblTempUsageDetail_20' ) start [2025-02-15 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482308', 'tblTempUsageDetail_20' ) end [2025-02-15 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482308', 'tblTempVendorCDR_20' ) start [2025-02-15 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482308', 'tblTempVendorCDR_20' ) end [2025-02-15 16:29:20] Production.INFO: ProcessCDR(1,14482308,1,1,2) [2025-02-15 16:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482308', 'tblTempUsageDetail_20' ) start [2025-02-15 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482308', 'tblTempUsageDetail_20' ) end [2025-02-15 16:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:29:25] Production.INFO: ==30165== Releasing lock... [2025-02-15 16:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:29:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:30:05 [end_date_ymd] => 2025-02-15 16:30:05 [RateCDR] => 1 ) [2025-02-15 16: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-15 13:30:05' and `end` < '2025-02-15 16: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-15 16:30:19] Production.INFO: count ==1767 [2025-02-15 16:30:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:30:05 - End Time 2025-02-15 16:30:05 [2025-02-15 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482313', 'tblTempUsageDetail_20' ) start [2025-02-15 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482313', 'tblTempUsageDetail_20' ) end [2025-02-15 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482313', 'tblTempVendorCDR_20' ) start [2025-02-15 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482313', 'tblTempVendorCDR_20' ) end [2025-02-15 16:30:19] Production.INFO: ProcessCDR(1,14482313,1,1,2) [2025-02-15 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482313', 'tblTempUsageDetail_20' ) start [2025-02-15 16:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482313', 'tblTempUsageDetail_20' ) end [2025-02-15 16:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:30:24] Production.INFO: ==30278== Releasing lock... [2025-02-15 16:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:30:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:31:05 [end_date_ymd] => 2025-02-15 16:31:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:31:05' and `end` < '2025-02-15 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-15 16:31:18] Production.INFO: count ==1791 [2025-02-15 16:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:31:05 - End Time 2025-02-15 16:31:05 [2025-02-15 16:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482319', 'tblTempUsageDetail_20' ) start [2025-02-15 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482319', 'tblTempUsageDetail_20' ) end [2025-02-15 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482319', 'tblTempVendorCDR_20' ) start [2025-02-15 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482319', 'tblTempVendorCDR_20' ) end [2025-02-15 16:31:19] Production.INFO: ProcessCDR(1,14482319,1,1,2) [2025-02-15 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482319', 'tblTempUsageDetail_20' ) start [2025-02-15 16:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482319', 'tblTempUsageDetail_20' ) end [2025-02-15 16:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:31:24] Production.INFO: ==30350== Releasing lock... [2025-02-15 16:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:31:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:32:05 [end_date_ymd] => 2025-02-15 16:32:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:32:05' and `end` < '2025-02-15 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-15 16:32:25] Production.INFO: count ==1788 [2025-02-15 16:32:26] Production.ERROR: pbx CDR StartTime 2025-02-15 13:32:05 - End Time 2025-02-15 16:32:05 [2025-02-15 16:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482324', 'tblTempUsageDetail_20' ) start [2025-02-15 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482324', 'tblTempUsageDetail_20' ) end [2025-02-15 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482324', 'tblTempVendorCDR_20' ) start [2025-02-15 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482324', 'tblTempVendorCDR_20' ) end [2025-02-15 16:32:26] Production.INFO: ProcessCDR(1,14482324,1,1,2) [2025-02-15 16:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482324', 'tblTempUsageDetail_20' ) start [2025-02-15 16:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482324', 'tblTempUsageDetail_20' ) end [2025-02-15 16:32:31] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:32:31] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:32:31] Production.INFO: ==30422== Releasing lock... [2025-02-15 16:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:32:31] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:33:05 [end_date_ymd] => 2025-02-15 16:33:05 [RateCDR] => 1 ) [2025-02-15 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:33:05' and `end` < '2025-02-15 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:33:20] Production.INFO: count ==1794 [2025-02-15 16:33:21] Production.ERROR: pbx CDR StartTime 2025-02-15 13:33:05 - End Time 2025-02-15 16:33:05 [2025-02-15 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482329', 'tblTempUsageDetail_20' ) start [2025-02-15 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482329', 'tblTempUsageDetail_20' ) end [2025-02-15 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482329', 'tblTempVendorCDR_20' ) start [2025-02-15 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482329', 'tblTempVendorCDR_20' ) end [2025-02-15 16:33:21] Production.INFO: ProcessCDR(1,14482329,1,1,2) [2025-02-15 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482329', 'tblTempUsageDetail_20' ) start [2025-02-15 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482329', 'tblTempUsageDetail_20' ) end [2025-02-15 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:33:26] Production.INFO: ==30491== Releasing lock... [2025-02-15 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:33:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:34:06 [end_date_ymd] => 2025-02-15 16:34:06 [RateCDR] => 1 ) [2025-02-15 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:34:06' and `end` < '2025-02-15 16:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:34:25] Production.INFO: count ==1793 [2025-02-15 16:34:25] Production.ERROR: pbx CDR StartTime 2025-02-15 13:34:06 - End Time 2025-02-15 16:34:06 [2025-02-15 16:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482334', 'tblTempUsageDetail_20' ) start [2025-02-15 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482334', 'tblTempUsageDetail_20' ) end [2025-02-15 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482334', 'tblTempVendorCDR_20' ) start [2025-02-15 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482334', 'tblTempVendorCDR_20' ) end [2025-02-15 16:34:25] Production.INFO: ProcessCDR(1,14482334,1,1,2) [2025-02-15 16:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482334', 'tblTempUsageDetail_20' ) start [2025-02-15 16:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482334', 'tblTempUsageDetail_20' ) end [2025-02-15 16:34:30] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:34:30] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:34:30] Production.INFO: ==30563== Releasing lock... [2025-02-15 16:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:34:30] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:35:05 [end_date_ymd] => 2025-02-15 16:35:05 [RateCDR] => 1 ) [2025-02-15 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:35:05' and `end` < '2025-02-15 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:35:23] Production.INFO: count ==1792 [2025-02-15 16:35:23] Production.ERROR: pbx CDR StartTime 2025-02-15 13:35:05 - End Time 2025-02-15 16:35:05 [2025-02-15 16:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482339', 'tblTempUsageDetail_20' ) start [2025-02-15 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482339', 'tblTempUsageDetail_20' ) end [2025-02-15 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482339', 'tblTempVendorCDR_20' ) start [2025-02-15 16:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482339', 'tblTempVendorCDR_20' ) end [2025-02-15 16:35:23] Production.INFO: ProcessCDR(1,14482339,1,1,2) [2025-02-15 16:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482339', 'tblTempUsageDetail_20' ) start [2025-02-15 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482339', 'tblTempUsageDetail_20' ) end [2025-02-15 16:35:28] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:35:28] Production.INFO: ==30632== Releasing lock... [2025-02-15 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:35:28] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:36:05 [end_date_ymd] => 2025-02-15 16:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:36:05' and `end` < '2025-02-15 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-15 16:36:20] Production.INFO: count ==1788 [2025-02-15 16:36:21] Production.ERROR: pbx CDR StartTime 2025-02-15 13:36:05 - End Time 2025-02-15 16:36:05 [2025-02-15 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482344', 'tblTempUsageDetail_20' ) start [2025-02-15 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482344', 'tblTempUsageDetail_20' ) end [2025-02-15 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482344', 'tblTempVendorCDR_20' ) start [2025-02-15 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482344', 'tblTempVendorCDR_20' ) end [2025-02-15 16:36:21] Production.INFO: ProcessCDR(1,14482344,1,1,2) [2025-02-15 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482344', 'tblTempUsageDetail_20' ) start [2025-02-15 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482344', 'tblTempUsageDetail_20' ) end [2025-02-15 16:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:36:25] Production.INFO: ==30703== Releasing lock... [2025-02-15 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:36:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:37:04 [end_date_ymd] => 2025-02-15 16:37:04 [RateCDR] => 1 ) [2025-02-15 16:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:37:04' and `end` < '2025-02-15 16:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:37:18] Production.INFO: count ==1802 [2025-02-15 16:37:18] Production.ERROR: pbx CDR StartTime 2025-02-15 13:37:04 - End Time 2025-02-15 16:37:04 [2025-02-15 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482349', 'tblTempUsageDetail_20' ) start [2025-02-15 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482349', 'tblTempUsageDetail_20' ) end [2025-02-15 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482349', 'tblTempVendorCDR_20' ) start [2025-02-15 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482349', 'tblTempVendorCDR_20' ) end [2025-02-15 16:37:18] Production.INFO: ProcessCDR(1,14482349,1,1,2) [2025-02-15 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482349', 'tblTempUsageDetail_20' ) start [2025-02-15 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482349', 'tblTempUsageDetail_20' ) end [2025-02-15 16:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:37:23] Production.INFO: ==30780== Releasing lock... [2025-02-15 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:37:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:38:05 [end_date_ymd] => 2025-02-15 16:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:38:05' and `end` < '2025-02-15 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-15 16:38:18] Production.INFO: count ==1789 [2025-02-15 16:38:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:38:05 - End Time 2025-02-15 16:38:05 [2025-02-15 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482354', 'tblTempUsageDetail_20' ) start [2025-02-15 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482354', 'tblTempUsageDetail_20' ) end [2025-02-15 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482354', 'tblTempVendorCDR_20' ) start [2025-02-15 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482354', 'tblTempVendorCDR_20' ) end [2025-02-15 16:38:19] Production.INFO: ProcessCDR(1,14482354,1,1,2) [2025-02-15 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482354', 'tblTempUsageDetail_20' ) start [2025-02-15 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482354', 'tblTempUsageDetail_20' ) end [2025-02-15 16:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:38:24] Production.INFO: ==30851== Releasing lock... [2025-02-15 16:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:38:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:39:05 [end_date_ymd] => 2025-02-15 16:39:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:39:05' and `end` < '2025-02-15 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-15 16:39:18] Production.INFO: count ==1790 [2025-02-15 16:39:18] Production.ERROR: pbx CDR StartTime 2025-02-15 13:39:05 - End Time 2025-02-15 16:39:05 [2025-02-15 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482359', 'tblTempUsageDetail_20' ) start [2025-02-15 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482359', 'tblTempUsageDetail_20' ) end [2025-02-15 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482359', 'tblTempVendorCDR_20' ) start [2025-02-15 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482359', 'tblTempVendorCDR_20' ) end [2025-02-15 16:39:18] Production.INFO: ProcessCDR(1,14482359,1,1,2) [2025-02-15 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482359', 'tblTempUsageDetail_20' ) start [2025-02-15 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482359', 'tblTempUsageDetail_20' ) end [2025-02-15 16:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:39:22] Production.INFO: ==30923== Releasing lock... [2025-02-15 16:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:39:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:40:06 [end_date_ymd] => 2025-02-15 16:40:06 [RateCDR] => 1 ) [2025-02-15 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-15 13:40:06' and `end` < '2025-02-15 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-15 16:40:22] Production.INFO: count ==1773 [2025-02-15 16:40:23] Production.ERROR: pbx CDR StartTime 2025-02-15 13:40:06 - End Time 2025-02-15 16:40:06 [2025-02-15 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482365', 'tblTempUsageDetail_20' ) start [2025-02-15 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482365', 'tblTempUsageDetail_20' ) end [2025-02-15 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482365', 'tblTempVendorCDR_20' ) start [2025-02-15 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482365', 'tblTempVendorCDR_20' ) end [2025-02-15 16:40:23] Production.INFO: ProcessCDR(1,14482365,1,1,2) [2025-02-15 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482365', 'tblTempUsageDetail_20' ) start [2025-02-15 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482365', 'tblTempUsageDetail_20' ) end [2025-02-15 16:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:40:26] Production.INFO: ==30995== Releasing lock... [2025-02-15 16:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:40:26] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:41:05 [end_date_ymd] => 2025-02-15 16:41:05 [RateCDR] => 1 ) [2025-02-15 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:41:05' and `end` < '2025-02-15 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:41:18] Production.INFO: count ==1797 [2025-02-15 16:41:18] Production.ERROR: pbx CDR StartTime 2025-02-15 13:41:05 - End Time 2025-02-15 16:41:05 [2025-02-15 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482370', 'tblTempUsageDetail_20' ) start [2025-02-15 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482370', 'tblTempUsageDetail_20' ) end [2025-02-15 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482370', 'tblTempVendorCDR_20' ) start [2025-02-15 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482370', 'tblTempVendorCDR_20' ) end [2025-02-15 16:41:19] Production.INFO: ProcessCDR(1,14482370,1,1,2) [2025-02-15 16:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482370', 'tblTempUsageDetail_20' ) start [2025-02-15 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482370', 'tblTempUsageDetail_20' ) end [2025-02-15 16:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:41:23] Production.INFO: ==31069== Releasing lock... [2025-02-15 16:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:41:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:42:05 [end_date_ymd] => 2025-02-15 16:42:05 [RateCDR] => 1 ) [2025-02-15 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:42:05' and `end` < '2025-02-15 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:42:19] Production.INFO: count ==1785 [2025-02-15 16:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:42:05 - End Time 2025-02-15 16:42:05 [2025-02-15 16:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482375', 'tblTempUsageDetail_20' ) start [2025-02-15 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482375', 'tblTempUsageDetail_20' ) end [2025-02-15 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482375', 'tblTempVendorCDR_20' ) start [2025-02-15 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482375', 'tblTempVendorCDR_20' ) end [2025-02-15 16:42:19] Production.INFO: ProcessCDR(1,14482375,1,1,2) [2025-02-15 16:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482375', 'tblTempUsageDetail_20' ) start [2025-02-15 16:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482375', 'tblTempUsageDetail_20' ) end [2025-02-15 16:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:42:24] Production.INFO: ==31140== Releasing lock... [2025-02-15 16:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:42:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:43:06 [end_date_ymd] => 2025-02-15 16:43:06 [RateCDR] => 1 ) [2025-02-15 16:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:43:06' and `end` < '2025-02-15 16:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:43:19] Production.INFO: count ==1784 [2025-02-15 16:43:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:43:06 - End Time 2025-02-15 16:43:06 [2025-02-15 16:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482380', 'tblTempUsageDetail_20' ) start [2025-02-15 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482380', 'tblTempUsageDetail_20' ) end [2025-02-15 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482380', 'tblTempVendorCDR_20' ) start [2025-02-15 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482380', 'tblTempVendorCDR_20' ) end [2025-02-15 16:43:19] Production.INFO: ProcessCDR(1,14482380,1,1,2) [2025-02-15 16:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482380', 'tblTempUsageDetail_20' ) start [2025-02-15 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482380', 'tblTempUsageDetail_20' ) end [2025-02-15 16:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:43:24] Production.INFO: ==31211== Releasing lock... [2025-02-15 16:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:43:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:44:05 [end_date_ymd] => 2025-02-15 16:44:05 [RateCDR] => 1 ) [2025-02-15 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:44:05' and `end` < '2025-02-15 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:44:18] Production.INFO: count ==1778 [2025-02-15 16:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:44:05 - End Time 2025-02-15 16:44:05 [2025-02-15 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482385', 'tblTempUsageDetail_20' ) start [2025-02-15 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482385', 'tblTempUsageDetail_20' ) end [2025-02-15 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482385', 'tblTempVendorCDR_20' ) start [2025-02-15 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482385', 'tblTempVendorCDR_20' ) end [2025-02-15 16:44:19] Production.INFO: ProcessCDR(1,14482385,1,1,2) [2025-02-15 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482385', 'tblTempUsageDetail_20' ) start [2025-02-15 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482385', 'tblTempUsageDetail_20' ) end [2025-02-15 16:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:44:24] Production.INFO: ==31282== Releasing lock... [2025-02-15 16:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:44:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:45:05 [end_date_ymd] => 2025-02-15 16:45:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:45:05' and `end` < '2025-02-15 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-15 16:45:20] Production.INFO: count ==1793 [2025-02-15 16:45:21] Production.ERROR: pbx CDR StartTime 2025-02-15 13:45:05 - End Time 2025-02-15 16:45:05 [2025-02-15 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482390', 'tblTempUsageDetail_20' ) start [2025-02-15 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482390', 'tblTempUsageDetail_20' ) end [2025-02-15 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482390', 'tblTempVendorCDR_20' ) start [2025-02-15 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482390', 'tblTempVendorCDR_20' ) end [2025-02-15 16:45:21] Production.INFO: ProcessCDR(1,14482390,1,1,2) [2025-02-15 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482390', 'tblTempUsageDetail_20' ) start [2025-02-15 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482390', 'tblTempUsageDetail_20' ) end [2025-02-15 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:45:26] Production.INFO: ==31358== Releasing lock... [2025-02-15 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:45:26] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:46:04 [end_date_ymd] => 2025-02-15 16:46:04 [RateCDR] => 1 ) [2025-02-15 16: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-15 13:46:04' and `end` < '2025-02-15 16: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-15 16:46:18] Production.INFO: count ==1801 [2025-02-15 16:46:18] Production.ERROR: pbx CDR StartTime 2025-02-15 13:46:04 - End Time 2025-02-15 16:46:04 [2025-02-15 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482395', 'tblTempUsageDetail_20' ) start [2025-02-15 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482395', 'tblTempUsageDetail_20' ) end [2025-02-15 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482395', 'tblTempVendorCDR_20' ) start [2025-02-15 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482395', 'tblTempVendorCDR_20' ) end [2025-02-15 16:46:18] Production.INFO: ProcessCDR(1,14482395,1,1,2) [2025-02-15 16:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482395', 'tblTempUsageDetail_20' ) start [2025-02-15 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482395', 'tblTempUsageDetail_20' ) end [2025-02-15 16:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:46:23] Production.INFO: ==31466== Releasing lock... [2025-02-15 16:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:46:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:47:05 [end_date_ymd] => 2025-02-15 16:47:05 [RateCDR] => 1 ) [2025-02-15 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:47:05' and `end` < '2025-02-15 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:47:18] Production.INFO: count ==1791 [2025-02-15 16:47:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:47:05 - End Time 2025-02-15 16:47:05 [2025-02-15 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482400', 'tblTempUsageDetail_20' ) start [2025-02-15 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482400', 'tblTempUsageDetail_20' ) end [2025-02-15 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482400', 'tblTempVendorCDR_20' ) start [2025-02-15 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482400', 'tblTempVendorCDR_20' ) end [2025-02-15 16:47:19] Production.INFO: ProcessCDR(1,14482400,1,1,2) [2025-02-15 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482400', 'tblTempUsageDetail_20' ) start [2025-02-15 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482400', 'tblTempUsageDetail_20' ) end [2025-02-15 16:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:47:24] Production.INFO: ==31536== Releasing lock... [2025-02-15 16:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:47:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:48:06 [end_date_ymd] => 2025-02-15 16:48:06 [RateCDR] => 1 ) [2025-02-15 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:48:06' and `end` < '2025-02-15 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:48:19] Production.INFO: count ==1797 [2025-02-15 16:48:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:48:06 - End Time 2025-02-15 16:48:06 [2025-02-15 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482405', 'tblTempUsageDetail_20' ) start [2025-02-15 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482405', 'tblTempUsageDetail_20' ) end [2025-02-15 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482405', 'tblTempVendorCDR_20' ) start [2025-02-15 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482405', 'tblTempVendorCDR_20' ) end [2025-02-15 16:48:20] Production.INFO: ProcessCDR(1,14482405,1,1,2) [2025-02-15 16:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482405', 'tblTempUsageDetail_20' ) start [2025-02-15 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482405', 'tblTempUsageDetail_20' ) end [2025-02-15 16:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:48:24] Production.INFO: ==31607== Releasing lock... [2025-02-15 16:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:48:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:49:04 [end_date_ymd] => 2025-02-15 16:49:04 [RateCDR] => 1 ) [2025-02-15 16: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-15 13:49:04' and `end` < '2025-02-15 16: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-15 16:49:18] Production.INFO: count ==1799 [2025-02-15 16:49:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:49:04 - End Time 2025-02-15 16:49:04 [2025-02-15 16:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482410', 'tblTempUsageDetail_20' ) start [2025-02-15 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482410', 'tblTempUsageDetail_20' ) end [2025-02-15 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482410', 'tblTempVendorCDR_20' ) start [2025-02-15 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482410', 'tblTempVendorCDR_20' ) end [2025-02-15 16:49:19] Production.INFO: ProcessCDR(1,14482410,1,1,2) [2025-02-15 16:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482410', 'tblTempUsageDetail_20' ) start [2025-02-15 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482410', 'tblTempUsageDetail_20' ) end [2025-02-15 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:49:23] Production.INFO: ==31680== Releasing lock... [2025-02-15 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:49:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:50:06 [end_date_ymd] => 2025-02-15 16:50:06 [RateCDR] => 1 ) [2025-02-15 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:50:06' and `end` < '2025-02-15 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:50:20] Production.INFO: count ==1801 [2025-02-15 16:50:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:50:06 - End Time 2025-02-15 16:50:06 [2025-02-15 16:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482416', 'tblTempUsageDetail_20' ) start [2025-02-15 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482416', 'tblTempUsageDetail_20' ) end [2025-02-15 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482416', 'tblTempVendorCDR_20' ) start [2025-02-15 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482416', 'tblTempVendorCDR_20' ) end [2025-02-15 16:50:20] Production.INFO: ProcessCDR(1,14482416,1,1,2) [2025-02-15 16:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482416', 'tblTempUsageDetail_20' ) start [2025-02-15 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482416', 'tblTempUsageDetail_20' ) end [2025-02-15 16:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:50:25] Production.INFO: ==31759== Releasing lock... [2025-02-15 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:50:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:51:05 [end_date_ymd] => 2025-02-15 16:51:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:51:05' and `end` < '2025-02-15 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-15 16:51:18] Production.INFO: count ==1851 [2025-02-15 16:51:18] Production.ERROR: pbx CDR StartTime 2025-02-15 13:51:05 - End Time 2025-02-15 16:51:05 [2025-02-15 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482421', 'tblTempUsageDetail_20' ) start [2025-02-15 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482421', 'tblTempUsageDetail_20' ) end [2025-02-15 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482421', 'tblTempVendorCDR_20' ) start [2025-02-15 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482421', 'tblTempVendorCDR_20' ) end [2025-02-15 16:51:18] Production.INFO: ProcessCDR(1,14482421,1,1,2) [2025-02-15 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482421', 'tblTempUsageDetail_20' ) start [2025-02-15 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482421', 'tblTempUsageDetail_20' ) end [2025-02-15 16:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:51:23] Production.INFO: ==31831== Releasing lock... [2025-02-15 16:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:51:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:52:05 [end_date_ymd] => 2025-02-15 16:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:52:05' and `end` < '2025-02-15 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-15 16:52:20] Production.INFO: count ==1854 [2025-02-15 16:52:21] Production.ERROR: pbx CDR StartTime 2025-02-15 13:52:05 - End Time 2025-02-15 16:52:05 [2025-02-15 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482426', 'tblTempUsageDetail_20' ) start [2025-02-15 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482426', 'tblTempUsageDetail_20' ) end [2025-02-15 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482426', 'tblTempVendorCDR_20' ) start [2025-02-15 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482426', 'tblTempVendorCDR_20' ) end [2025-02-15 16:52:21] Production.INFO: ProcessCDR(1,14482426,1,1,2) [2025-02-15 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482426', 'tblTempUsageDetail_20' ) start [2025-02-15 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482426', 'tblTempUsageDetail_20' ) end [2025-02-15 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:52:27] Production.INFO: ==31902== Releasing lock... [2025-02-15 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:52:27] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:53:05 [end_date_ymd] => 2025-02-15 16:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:53:05' and `end` < '2025-02-15 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-15 16:53:18] Production.INFO: count ==1852 [2025-02-15 16:53:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:53:05 - End Time 2025-02-15 16:53:05 [2025-02-15 16:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482431', 'tblTempUsageDetail_20' ) start [2025-02-15 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482431', 'tblTempUsageDetail_20' ) end [2025-02-15 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482431', 'tblTempVendorCDR_20' ) start [2025-02-15 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482431', 'tblTempVendorCDR_20' ) end [2025-02-15 16:53:19] Production.INFO: ProcessCDR(1,14482431,1,1,2) [2025-02-15 16:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482431', 'tblTempUsageDetail_20' ) start [2025-02-15 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482431', 'tblTempUsageDetail_20' ) end [2025-02-15 16:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:53:22] Production.INFO: ==31975== Releasing lock... [2025-02-15 16:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:53:22] Production.INFO: 42 MB #Memory Used# [2025-02-15 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:54:06 [end_date_ymd] => 2025-02-15 16:54:06 [RateCDR] => 1 ) [2025-02-15 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-15 13:54:06' and `end` < '2025-02-15 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-15 16:54:20] Production.INFO: count ==1853 [2025-02-15 16:54:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:54:06 - End Time 2025-02-15 16:54:06 [2025-02-15 16:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482436', 'tblTempUsageDetail_20' ) start [2025-02-15 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482436', 'tblTempUsageDetail_20' ) end [2025-02-15 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482436', 'tblTempVendorCDR_20' ) start [2025-02-15 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482436', 'tblTempVendorCDR_20' ) end [2025-02-15 16:54:21] Production.INFO: ProcessCDR(1,14482436,1,1,2) [2025-02-15 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482436', 'tblTempUsageDetail_20' ) start [2025-02-15 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482436', 'tblTempUsageDetail_20' ) end [2025-02-15 16:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:54:25] Production.INFO: ==32052== Releasing lock... [2025-02-15 16:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:54:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:55:05 [end_date_ymd] => 2025-02-15 16:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:55:05' and `end` < '2025-02-15 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-15 16:55:20] Production.INFO: count ==1855 [2025-02-15 16:55:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:55:05 - End Time 2025-02-15 16:55:05 [2025-02-15 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482441', 'tblTempUsageDetail_20' ) start [2025-02-15 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482441', 'tblTempUsageDetail_20' ) end [2025-02-15 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482441', 'tblTempVendorCDR_20' ) start [2025-02-15 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482441', 'tblTempVendorCDR_20' ) end [2025-02-15 16:55:20] Production.INFO: ProcessCDR(1,14482441,1,1,2) [2025-02-15 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482441', 'tblTempUsageDetail_20' ) start [2025-02-15 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482441', 'tblTempUsageDetail_20' ) end [2025-02-15 16:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:55:25] Production.INFO: ==32171== Releasing lock... [2025-02-15 16:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:55:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:56:05 [end_date_ymd] => 2025-02-15 16:56:05 [RateCDR] => 1 ) [2025-02-15 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:56:05' and `end` < '2025-02-15 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:56:18] Production.INFO: count ==1865 [2025-02-15 16:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:56:05 - End Time 2025-02-15 16:56:05 [2025-02-15 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482446', 'tblTempUsageDetail_20' ) start [2025-02-15 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482446', 'tblTempUsageDetail_20' ) end [2025-02-15 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482446', 'tblTempVendorCDR_20' ) start [2025-02-15 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482446', 'tblTempVendorCDR_20' ) end [2025-02-15 16:56:19] Production.INFO: ProcessCDR(1,14482446,1,1,2) [2025-02-15 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482446', 'tblTempUsageDetail_20' ) start [2025-02-15 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482446', 'tblTempUsageDetail_20' ) end [2025-02-15 16:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:56:24] Production.INFO: ==32276== Releasing lock... [2025-02-15 16:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:56:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:57:06 [end_date_ymd] => 2025-02-15 16:57:06 [RateCDR] => 1 ) [2025-02-15 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 13:57:06' and `end` < '2025-02-15 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 16:57:20] Production.INFO: count ==1870 [2025-02-15 16:57:20] Production.ERROR: pbx CDR StartTime 2025-02-15 13:57:06 - End Time 2025-02-15 16:57:06 [2025-02-15 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482451', 'tblTempUsageDetail_20' ) start [2025-02-15 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482451', 'tblTempUsageDetail_20' ) end [2025-02-15 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482451', 'tblTempVendorCDR_20' ) start [2025-02-15 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482451', 'tblTempVendorCDR_20' ) end [2025-02-15 16:57:20] Production.INFO: ProcessCDR(1,14482451,1,1,2) [2025-02-15 16:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482451', 'tblTempUsageDetail_20' ) start [2025-02-15 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482451', 'tblTempUsageDetail_20' ) end [2025-02-15 16:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:57:25] Production.INFO: ==32364== Releasing lock... [2025-02-15 16:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:57:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:58:05 [end_date_ymd] => 2025-02-15 16:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 13:58:05' and `end` < '2025-02-15 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-15 16:58:19] Production.INFO: count ==1851 [2025-02-15 16:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:58:05 - End Time 2025-02-15 16:58:05 [2025-02-15 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482456', 'tblTempUsageDetail_20' ) start [2025-02-15 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482456', 'tblTempUsageDetail_20' ) end [2025-02-15 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482456', 'tblTempVendorCDR_20' ) start [2025-02-15 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482456', 'tblTempVendorCDR_20' ) end [2025-02-15 16:58:19] Production.INFO: ProcessCDR(1,14482456,1,1,2) [2025-02-15 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482456', 'tblTempUsageDetail_20' ) start [2025-02-15 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482456', 'tblTempUsageDetail_20' ) end [2025-02-15 16:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:58:23] Production.INFO: ==32434== Releasing lock... [2025-02-15 16:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:58:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 13:59:04 [end_date_ymd] => 2025-02-15 16:59:04 [RateCDR] => 1 ) [2025-02-15 16: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-15 13:59:04' and `end` < '2025-02-15 16: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-15 16:59:18] Production.INFO: count ==1849 [2025-02-15 16:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 13:59:04 - End Time 2025-02-15 16:59:04 [2025-02-15 16:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482461', 'tblTempUsageDetail_20' ) start [2025-02-15 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482461', 'tblTempUsageDetail_20' ) end [2025-02-15 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482461', 'tblTempVendorCDR_20' ) start [2025-02-15 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482461', 'tblTempVendorCDR_20' ) end [2025-02-15 16:59:19] Production.INFO: ProcessCDR(1,14482461,1,1,2) [2025-02-15 16:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 16:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482461', 'tblTempUsageDetail_20' ) start [2025-02-15 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482461', 'tblTempUsageDetail_20' ) end [2025-02-15 16:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 16:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 16:59:22] Production.INFO: ==32507== Releasing lock... [2025-02-15 16:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 16:59:22] Production.INFO: 42 MB #Memory Used# [2025-02-15 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:00:06 [end_date_ymd] => 2025-02-15 17:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 14:00:06' and `end` < '2025-02-15 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-15 17:00:19] Production.INFO: count ==1834 [2025-02-15 17:00:20] Production.ERROR: pbx CDR StartTime 2025-02-15 14:00:06 - End Time 2025-02-15 17:00:06 [2025-02-15 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482466', 'tblTempUsageDetail_20' ) start [2025-02-15 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482466', 'tblTempUsageDetail_20' ) end [2025-02-15 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482466', 'tblTempVendorCDR_20' ) start [2025-02-15 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482466', 'tblTempVendorCDR_20' ) end [2025-02-15 17:00:20] Production.INFO: ProcessCDR(1,14482466,1,1,2) [2025-02-15 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482466', 'tblTempUsageDetail_20' ) start [2025-02-15 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482466', 'tblTempUsageDetail_20' ) end [2025-02-15 17:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:00:24] Production.INFO: ==32581== Releasing lock... [2025-02-15 17:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:00:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:01:05 [end_date_ymd] => 2025-02-15 17:01:05 [RateCDR] => 1 ) [2025-02-15 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:01:05' and `end` < '2025-02-15 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:01:18] Production.INFO: count ==1846 [2025-02-15 17:01:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:01:05 - End Time 2025-02-15 17:01:05 [2025-02-15 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482472', 'tblTempUsageDetail_20' ) start [2025-02-15 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482472', 'tblTempUsageDetail_20' ) end [2025-02-15 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482472', 'tblTempVendorCDR_20' ) start [2025-02-15 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482472', 'tblTempVendorCDR_20' ) end [2025-02-15 17:01:19] Production.INFO: ProcessCDR(1,14482472,1,1,2) [2025-02-15 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482472', 'tblTempUsageDetail_20' ) start [2025-02-15 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482472', 'tblTempUsageDetail_20' ) end [2025-02-15 17:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:01:24] Production.INFO: ==32705== Releasing lock... [2025-02-15 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:01:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:02:05 [end_date_ymd] => 2025-02-15 17:02:05 [RateCDR] => 1 ) [2025-02-15 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:02:05' and `end` < '2025-02-15 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:02:19] Production.INFO: count ==1849 [2025-02-15 17:02:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:02:05 - End Time 2025-02-15 17:02:05 [2025-02-15 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482477', 'tblTempUsageDetail_20' ) start [2025-02-15 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482477', 'tblTempUsageDetail_20' ) end [2025-02-15 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482477', 'tblTempVendorCDR_20' ) start [2025-02-15 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482477', 'tblTempVendorCDR_20' ) end [2025-02-15 17:02:19] Production.INFO: ProcessCDR(1,14482477,1,1,2) [2025-02-15 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482477', 'tblTempUsageDetail_20' ) start [2025-02-15 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482477', 'tblTempUsageDetail_20' ) end [2025-02-15 17:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:02:24] Production.INFO: ==315== Releasing lock... [2025-02-15 17:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:02:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:03:06 [end_date_ymd] => 2025-02-15 17:03:06 [RateCDR] => 1 ) [2025-02-15 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-15 14:03:06' and `end` < '2025-02-15 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-15 17:03:19] Production.INFO: count ==1850 [2025-02-15 17:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:03:06 - End Time 2025-02-15 17:03:06 [2025-02-15 17:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482482', 'tblTempUsageDetail_20' ) start [2025-02-15 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482482', 'tblTempUsageDetail_20' ) end [2025-02-15 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482482', 'tblTempVendorCDR_20' ) start [2025-02-15 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482482', 'tblTempVendorCDR_20' ) end [2025-02-15 17:03:20] Production.INFO: ProcessCDR(1,14482482,1,1,2) [2025-02-15 17:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482482', 'tblTempUsageDetail_20' ) start [2025-02-15 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482482', 'tblTempUsageDetail_20' ) end [2025-02-15 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:03:24] Production.INFO: ==402== Releasing lock... [2025-02-15 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:03:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:04:06 [end_date_ymd] => 2025-02-15 17:04:06 [RateCDR] => 1 ) [2025-02-15 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:04:06' and `end` < '2025-02-15 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:04:19] Production.INFO: count ==1850 [2025-02-15 17:04:20] Production.ERROR: pbx CDR StartTime 2025-02-15 14:04:06 - End Time 2025-02-15 17:04:06 [2025-02-15 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482487', 'tblTempUsageDetail_20' ) start [2025-02-15 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482487', 'tblTempUsageDetail_20' ) end [2025-02-15 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482487', 'tblTempVendorCDR_20' ) start [2025-02-15 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482487', 'tblTempVendorCDR_20' ) end [2025-02-15 17:04:20] Production.INFO: ProcessCDR(1,14482487,1,1,2) [2025-02-15 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482487', 'tblTempUsageDetail_20' ) start [2025-02-15 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482487', 'tblTempUsageDetail_20' ) end [2025-02-15 17:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:04:24] Production.INFO: ==475== Releasing lock... [2025-02-15 17:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:04:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:05:06 [end_date_ymd] => 2025-02-15 17:05:06 [RateCDR] => 1 ) [2025-02-15 17:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:05:06' and `end` < '2025-02-15 17:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:05:19] Production.INFO: count ==1848 [2025-02-15 17:05:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:05:06 - End Time 2025-02-15 17:05:06 [2025-02-15 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482492', 'tblTempUsageDetail_20' ) start [2025-02-15 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482492', 'tblTempUsageDetail_20' ) end [2025-02-15 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482492', 'tblTempVendorCDR_20' ) start [2025-02-15 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482492', 'tblTempVendorCDR_20' ) end [2025-02-15 17:05:19] Production.INFO: ProcessCDR(1,14482492,1,1,2) [2025-02-15 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482492', 'tblTempUsageDetail_20' ) start [2025-02-15 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482492', 'tblTempUsageDetail_20' ) end [2025-02-15 17:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:05:24] Production.INFO: ==553== Releasing lock... [2025-02-15 17:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:05:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 17:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:06:04 [end_date_ymd] => 2025-02-15 17:06:04 [RateCDR] => 1 ) [2025-02-15 17:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:06:04' and `end` < '2025-02-15 17:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:06:18] Production.INFO: count ==1842 [2025-02-15 17:06:18] Production.ERROR: pbx CDR StartTime 2025-02-15 14:06:04 - End Time 2025-02-15 17:06:04 [2025-02-15 17:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482497', 'tblTempUsageDetail_20' ) start [2025-02-15 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482497', 'tblTempUsageDetail_20' ) end [2025-02-15 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482497', 'tblTempVendorCDR_20' ) start [2025-02-15 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482497', 'tblTempVendorCDR_20' ) end [2025-02-15 17:06:18] Production.INFO: ProcessCDR(1,14482497,1,1,2) [2025-02-15 17:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482497', 'tblTempUsageDetail_20' ) start [2025-02-15 17:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482497', 'tblTempUsageDetail_20' ) end [2025-02-15 17:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:06:21] Production.INFO: ==635== Releasing lock... [2025-02-15 17:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:06:21] Production.INFO: 42 MB #Memory Used# [2025-02-15 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:07:06 [end_date_ymd] => 2025-02-15 17:07:06 [RateCDR] => 1 ) [2025-02-15 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:07:06' and `end` < '2025-02-15 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:07:19] Production.INFO: count ==1840 [2025-02-15 17:07:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:07:06 - End Time 2025-02-15 17:07:06 [2025-02-15 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482502', 'tblTempUsageDetail_20' ) start [2025-02-15 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482502', 'tblTempUsageDetail_20' ) end [2025-02-15 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482502', 'tblTempVendorCDR_20' ) start [2025-02-15 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482502', 'tblTempVendorCDR_20' ) end [2025-02-15 17:07:19] Production.INFO: ProcessCDR(1,14482502,1,1,2) [2025-02-15 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482502', 'tblTempUsageDetail_20' ) start [2025-02-15 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482502', 'tblTempUsageDetail_20' ) end [2025-02-15 17:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:07:23] Production.INFO: ==730== Releasing lock... [2025-02-15 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:07:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:08:05 [end_date_ymd] => 2025-02-15 17:08:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:08:05' and `end` < '2025-02-15 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-15 17:08:19] Production.INFO: count ==1836 [2025-02-15 17:08:20] Production.ERROR: pbx CDR StartTime 2025-02-15 14:08:05 - End Time 2025-02-15 17:08:05 [2025-02-15 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482507', 'tblTempUsageDetail_20' ) start [2025-02-15 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482507', 'tblTempUsageDetail_20' ) end [2025-02-15 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482507', 'tblTempVendorCDR_20' ) start [2025-02-15 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482507', 'tblTempVendorCDR_20' ) end [2025-02-15 17:08:20] Production.INFO: ProcessCDR(1,14482507,1,1,2) [2025-02-15 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482507', 'tblTempUsageDetail_20' ) start [2025-02-15 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482507', 'tblTempUsageDetail_20' ) end [2025-02-15 17:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:08:23] Production.INFO: ==806== Releasing lock... [2025-02-15 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:08:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:09:05 [end_date_ymd] => 2025-02-15 17:09:05 [RateCDR] => 1 ) [2025-02-15 17: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-15 14:09:05' and `end` < '2025-02-15 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-15 17:09:19] Production.INFO: count ==1831 [2025-02-15 17:09:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:09:05 - End Time 2025-02-15 17:09:05 [2025-02-15 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482512', 'tblTempUsageDetail_20' ) start [2025-02-15 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482512', 'tblTempUsageDetail_20' ) end [2025-02-15 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482512', 'tblTempVendorCDR_20' ) start [2025-02-15 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482512', 'tblTempVendorCDR_20' ) end [2025-02-15 17:09:19] Production.INFO: ProcessCDR(1,14482512,1,1,2) [2025-02-15 17:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482512', 'tblTempUsageDetail_20' ) start [2025-02-15 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482512', 'tblTempUsageDetail_20' ) end [2025-02-15 17:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:09:22] Production.INFO: ==876== Releasing lock... [2025-02-15 17:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:09:22] Production.INFO: 42 MB #Memory Used# [2025-02-15 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:10:06 [end_date_ymd] => 2025-02-15 17:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 14:10:06' and `end` < '2025-02-15 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-15 17:10:19] Production.INFO: count ==1824 [2025-02-15 17:10:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:10:06 - End Time 2025-02-15 17:10:06 [2025-02-15 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482518', 'tblTempUsageDetail_20' ) start [2025-02-15 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482518', 'tblTempUsageDetail_20' ) end [2025-02-15 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482518', 'tblTempVendorCDR_20' ) start [2025-02-15 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482518', 'tblTempVendorCDR_20' ) end [2025-02-15 17:10:20] Production.INFO: ProcessCDR(1,14482518,1,1,2) [2025-02-15 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482518', 'tblTempUsageDetail_20' ) start [2025-02-15 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482518', 'tblTempUsageDetail_20' ) end [2025-02-15 17:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:10:24] Production.INFO: ==951== Releasing lock... [2025-02-15 17:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:10:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:11:05 [end_date_ymd] => 2025-02-15 17:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:11:05' and `end` < '2025-02-15 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-15 17:11:19] Production.INFO: count ==1811 [2025-02-15 17:11:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:11:05 - End Time 2025-02-15 17:11:05 [2025-02-15 17:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482523', 'tblTempUsageDetail_20' ) start [2025-02-15 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482523', 'tblTempUsageDetail_20' ) end [2025-02-15 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482523', 'tblTempVendorCDR_20' ) start [2025-02-15 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482523', 'tblTempVendorCDR_20' ) end [2025-02-15 17:11:19] Production.INFO: ProcessCDR(1,14482523,1,1,2) [2025-02-15 17:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482523', 'tblTempUsageDetail_20' ) start [2025-02-15 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482523', 'tblTempUsageDetail_20' ) end [2025-02-15 17:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:11:24] Production.INFO: ==1028== Releasing lock... [2025-02-15 17:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:11:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:12:05 [end_date_ymd] => 2025-02-15 17:12:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:12:05' and `end` < '2025-02-15 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-15 17:12:19] Production.INFO: count ==1811 [2025-02-15 17:12:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:12:05 - End Time 2025-02-15 17:12:05 [2025-02-15 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482528', 'tblTempUsageDetail_20' ) start [2025-02-15 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482528', 'tblTempUsageDetail_20' ) end [2025-02-15 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482528', 'tblTempVendorCDR_20' ) start [2025-02-15 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482528', 'tblTempVendorCDR_20' ) end [2025-02-15 17:12:19] Production.INFO: ProcessCDR(1,14482528,1,1,2) [2025-02-15 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482528', 'tblTempUsageDetail_20' ) start [2025-02-15 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482528', 'tblTempUsageDetail_20' ) end [2025-02-15 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:12:24] Production.INFO: ==1098== Releasing lock... [2025-02-15 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:12:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:13:06 [end_date_ymd] => 2025-02-15 17:13:06 [RateCDR] => 1 ) [2025-02-15 17: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-15 14:13:06' and `end` < '2025-02-15 17: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-15 17:13:20] Production.INFO: count ==1810 [2025-02-15 17:13:20] Production.ERROR: pbx CDR StartTime 2025-02-15 14:13:06 - End Time 2025-02-15 17:13:06 [2025-02-15 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482533', 'tblTempUsageDetail_20' ) start [2025-02-15 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482533', 'tblTempUsageDetail_20' ) end [2025-02-15 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482533', 'tblTempVendorCDR_20' ) start [2025-02-15 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482533', 'tblTempVendorCDR_20' ) end [2025-02-15 17:13:21] Production.INFO: ProcessCDR(1,14482533,1,1,2) [2025-02-15 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482533', 'tblTempUsageDetail_20' ) start [2025-02-15 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482533', 'tblTempUsageDetail_20' ) end [2025-02-15 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:13:25] Production.INFO: ==1177== Releasing lock... [2025-02-15 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:13:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:14:05 [end_date_ymd] => 2025-02-15 17:14:05 [RateCDR] => 1 ) [2025-02-15 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:14:05' and `end` < '2025-02-15 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:14:18] Production.INFO: count ==1811 [2025-02-15 17:14:18] Production.ERROR: pbx CDR StartTime 2025-02-15 14:14:05 - End Time 2025-02-15 17:14:05 [2025-02-15 17:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482538', 'tblTempUsageDetail_20' ) start [2025-02-15 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482538', 'tblTempUsageDetail_20' ) end [2025-02-15 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482538', 'tblTempVendorCDR_20' ) start [2025-02-15 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482538', 'tblTempVendorCDR_20' ) end [2025-02-15 17:14:19] Production.INFO: ProcessCDR(1,14482538,1,1,2) [2025-02-15 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482538', 'tblTempUsageDetail_20' ) start [2025-02-15 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482538', 'tblTempUsageDetail_20' ) end [2025-02-15 17:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:14:23] Production.INFO: ==1279== Releasing lock... [2025-02-15 17:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:14:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:15:05 [end_date_ymd] => 2025-02-15 17:15:05 [RateCDR] => 1 ) [2025-02-15 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:15:05' and `end` < '2025-02-15 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:15:19] Production.INFO: count ==1809 [2025-02-15 17:15:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:15:05 - End Time 2025-02-15 17:15:05 [2025-02-15 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482543', 'tblTempUsageDetail_20' ) start [2025-02-15 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482543', 'tblTempUsageDetail_20' ) end [2025-02-15 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482543', 'tblTempVendorCDR_20' ) start [2025-02-15 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482543', 'tblTempVendorCDR_20' ) end [2025-02-15 17:15:19] Production.INFO: ProcessCDR(1,14482543,1,1,2) [2025-02-15 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482543', 'tblTempUsageDetail_20' ) start [2025-02-15 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482543', 'tblTempUsageDetail_20' ) end [2025-02-15 17:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:15:23] Production.INFO: ==1370== Releasing lock... [2025-02-15 17:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:15:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:16:05 [end_date_ymd] => 2025-02-15 17:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:16:05' and `end` < '2025-02-15 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-15 17:16:19] Production.INFO: count ==1806 [2025-02-15 17:16:20] Production.ERROR: pbx CDR StartTime 2025-02-15 14:16:05 - End Time 2025-02-15 17:16:05 [2025-02-15 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482548', 'tblTempUsageDetail_20' ) start [2025-02-15 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482548', 'tblTempUsageDetail_20' ) end [2025-02-15 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482548', 'tblTempVendorCDR_20' ) start [2025-02-15 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482548', 'tblTempVendorCDR_20' ) end [2025-02-15 17:16:20] Production.INFO: ProcessCDR(1,14482548,1,1,2) [2025-02-15 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482548', 'tblTempUsageDetail_20' ) start [2025-02-15 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482548', 'tblTempUsageDetail_20' ) end [2025-02-15 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:16:24] Production.INFO: ==1462== Releasing lock... [2025-02-15 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:16:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:17:05 [end_date_ymd] => 2025-02-15 17:17:05 [RateCDR] => 1 ) [2025-02-15 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:17:05' and `end` < '2025-02-15 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:17:22] Production.INFO: count ==1804 [2025-02-15 17:17:23] Production.ERROR: pbx CDR StartTime 2025-02-15 14:17:05 - End Time 2025-02-15 17:17:05 [2025-02-15 17:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482553', 'tblTempUsageDetail_20' ) start [2025-02-15 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482553', 'tblTempUsageDetail_20' ) end [2025-02-15 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482553', 'tblTempVendorCDR_20' ) start [2025-02-15 17:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482553', 'tblTempVendorCDR_20' ) end [2025-02-15 17:17:23] Production.INFO: ProcessCDR(1,14482553,1,1,2) [2025-02-15 17:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482553', 'tblTempUsageDetail_20' ) start [2025-02-15 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482553', 'tblTempUsageDetail_20' ) end [2025-02-15 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:17:27] Production.INFO: ==1626== Releasing lock... [2025-02-15 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:17:27] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:18:05 [end_date_ymd] => 2025-02-15 17:18:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:18:05' and `end` < '2025-02-15 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-15 17:18:18] Production.INFO: count ==1805 [2025-02-15 17:18:18] Production.ERROR: pbx CDR StartTime 2025-02-15 14:18:05 - End Time 2025-02-15 17:18:05 [2025-02-15 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482558', 'tblTempUsageDetail_20' ) start [2025-02-15 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482558', 'tblTempUsageDetail_20' ) end [2025-02-15 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482558', 'tblTempVendorCDR_20' ) start [2025-02-15 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482558', 'tblTempVendorCDR_20' ) end [2025-02-15 17:18:18] Production.INFO: ProcessCDR(1,14482558,1,1,2) [2025-02-15 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482558', 'tblTempUsageDetail_20' ) start [2025-02-15 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482558', 'tblTempUsageDetail_20' ) end [2025-02-15 17:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:18:23] Production.INFO: ==1718== Releasing lock... [2025-02-15 17:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:18:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:19:05 [end_date_ymd] => 2025-02-15 17:19:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:19:05' and `end` < '2025-02-15 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-15 17:19:18] Production.INFO: count ==1801 [2025-02-15 17:19:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:19:05 - End Time 2025-02-15 17:19:05 [2025-02-15 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482563', 'tblTempUsageDetail_20' ) start [2025-02-15 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482563', 'tblTempUsageDetail_20' ) end [2025-02-15 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482563', 'tblTempVendorCDR_20' ) start [2025-02-15 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482563', 'tblTempVendorCDR_20' ) end [2025-02-15 17:19:19] Production.INFO: ProcessCDR(1,14482563,1,1,2) [2025-02-15 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482563', 'tblTempUsageDetail_20' ) start [2025-02-15 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482563', 'tblTempUsageDetail_20' ) end [2025-02-15 17:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:19:22] Production.INFO: ==1810== Releasing lock... [2025-02-15 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:19:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:20:06 [end_date_ymd] => 2025-02-15 17:20:06 [RateCDR] => 1 ) [2025-02-15 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-15 14:20:06' and `end` < '2025-02-15 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-15 17:20:19] Production.INFO: count ==1800 [2025-02-15 17:20:20] Production.ERROR: pbx CDR StartTime 2025-02-15 14:20:06 - End Time 2025-02-15 17:20:06 [2025-02-15 17:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482569', 'tblTempUsageDetail_20' ) start [2025-02-15 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482569', 'tblTempUsageDetail_20' ) end [2025-02-15 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482569', 'tblTempVendorCDR_20' ) start [2025-02-15 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482569', 'tblTempVendorCDR_20' ) end [2025-02-15 17:20:20] Production.INFO: ProcessCDR(1,14482569,1,1,2) [2025-02-15 17:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482569', 'tblTempUsageDetail_20' ) start [2025-02-15 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482569', 'tblTempUsageDetail_20' ) end [2025-02-15 17:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:20:23] Production.INFO: ==1906== Releasing lock... [2025-02-15 17:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:20:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:21:05 [end_date_ymd] => 2025-02-15 17:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:21:05' and `end` < '2025-02-15 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-15 17:21:19] Production.INFO: count ==1799 [2025-02-15 17:21:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:21:05 - End Time 2025-02-15 17:21:05 [2025-02-15 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482574', 'tblTempUsageDetail_20' ) start [2025-02-15 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482574', 'tblTempUsageDetail_20' ) end [2025-02-15 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482574', 'tblTempVendorCDR_20' ) start [2025-02-15 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482574', 'tblTempVendorCDR_20' ) end [2025-02-15 17:21:19] Production.INFO: ProcessCDR(1,14482574,1,1,2) [2025-02-15 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482574', 'tblTempUsageDetail_20' ) start [2025-02-15 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482574', 'tblTempUsageDetail_20' ) end [2025-02-15 17:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:21:23] Production.INFO: ==2001== Releasing lock... [2025-02-15 17:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:21:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:22:05 [end_date_ymd] => 2025-02-15 17:22:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:22:05' and `end` < '2025-02-15 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-15 17:22:19] Production.INFO: count ==1802 [2025-02-15 17:22:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:22:05 - End Time 2025-02-15 17:22:05 [2025-02-15 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482579', 'tblTempUsageDetail_20' ) start [2025-02-15 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482579', 'tblTempUsageDetail_20' ) end [2025-02-15 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482579', 'tblTempVendorCDR_20' ) start [2025-02-15 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482579', 'tblTempVendorCDR_20' ) end [2025-02-15 17:22:19] Production.INFO: ProcessCDR(1,14482579,1,1,2) [2025-02-15 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482579', 'tblTempUsageDetail_20' ) start [2025-02-15 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482579', 'tblTempUsageDetail_20' ) end [2025-02-15 17:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:22:24] Production.INFO: ==2095== Releasing lock... [2025-02-15 17:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:22:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:23:05 [end_date_ymd] => 2025-02-15 17:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:23:05' and `end` < '2025-02-15 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-15 17:23:18] Production.INFO: count ==1799 [2025-02-15 17:23:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:23:05 - End Time 2025-02-15 17:23:05 [2025-02-15 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482584', 'tblTempUsageDetail_20' ) start [2025-02-15 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482584', 'tblTempUsageDetail_20' ) end [2025-02-15 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482584', 'tblTempVendorCDR_20' ) start [2025-02-15 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482584', 'tblTempVendorCDR_20' ) end [2025-02-15 17:23:19] Production.INFO: ProcessCDR(1,14482584,1,1,2) [2025-02-15 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482584', 'tblTempUsageDetail_20' ) start [2025-02-15 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482584', 'tblTempUsageDetail_20' ) end [2025-02-15 17:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:23:22] Production.INFO: ==2188== Releasing lock... [2025-02-15 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:23:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:24:05 [end_date_ymd] => 2025-02-15 17:24:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:24:05' and `end` < '2025-02-15 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-15 17:24:18] Production.INFO: count ==1794 [2025-02-15 17:24:18] Production.ERROR: pbx CDR StartTime 2025-02-15 14:24:05 - End Time 2025-02-15 17:24:05 [2025-02-15 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482589', 'tblTempUsageDetail_20' ) start [2025-02-15 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482589', 'tblTempUsageDetail_20' ) end [2025-02-15 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482589', 'tblTempVendorCDR_20' ) start [2025-02-15 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482589', 'tblTempVendorCDR_20' ) end [2025-02-15 17:24:18] Production.INFO: ProcessCDR(1,14482589,1,1,2) [2025-02-15 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482589', 'tblTempUsageDetail_20' ) start [2025-02-15 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482589', 'tblTempUsageDetail_20' ) end [2025-02-15 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:24:23] Production.INFO: ==2288== Releasing lock... [2025-02-15 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:24:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:25:05 [end_date_ymd] => 2025-02-15 17:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:25:05' and `end` < '2025-02-15 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-15 17:25:18] Production.INFO: count ==1795 [2025-02-15 17:25:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:25:05 - End Time 2025-02-15 17:25:05 [2025-02-15 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482594', 'tblTempUsageDetail_20' ) start [2025-02-15 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482594', 'tblTempUsageDetail_20' ) end [2025-02-15 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482594', 'tblTempVendorCDR_20' ) start [2025-02-15 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482594', 'tblTempVendorCDR_20' ) end [2025-02-15 17:25:19] Production.INFO: ProcessCDR(1,14482594,1,1,2) [2025-02-15 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482594', 'tblTempUsageDetail_20' ) start [2025-02-15 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482594', 'tblTempUsageDetail_20' ) end [2025-02-15 17:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:25:22] Production.INFO: ==2374== Releasing lock... [2025-02-15 17:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:25:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 17:26:23] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:26:23 [end_date_ymd] => 2025-02-15 17:26:23 [RateCDR] => 1 ) [2025-02-15 17:26:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:26:23' and `end` < '2025-02-15 17:26:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:26:37] Production.INFO: count ==1794 [2025-02-15 17:26:55] Production.ERROR: pbx CDR StartTime 2025-02-15 14:26:23 - End Time 2025-02-15 17:26:23 [2025-02-15 17:26:55] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:26:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482599', 'tblTempUsageDetail_20' ) start [2025-02-15 17:26:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482599', 'tblTempUsageDetail_20' ) end [2025-02-15 17:26:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482599', 'tblTempVendorCDR_20' ) start [2025-02-15 17:26:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482599', 'tblTempVendorCDR_20' ) end [2025-02-15 17:26:55] Production.INFO: ProcessCDR(1,14482599,1,1,2) [2025-02-15 17:26:55] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:27:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:27:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482599', 'tblTempUsageDetail_20' ) start [2025-02-15 17:27:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482599', 'tblTempUsageDetail_20' ) end [2025-02-15 17:27:48] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:27:48] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:27:48] Production.INFO: ==2462== Releasing lock... [2025-02-15 17:27:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:27:48] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 17:28:16] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:28:16 [end_date_ymd] => 2025-02-15 17:28:16 [RateCDR] => 1 ) [2025-02-15 17:28:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:28:16' and `end` < '2025-02-15 17:28:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:28:31] Production.INFO: count ==1794 [2025-02-15 17:28:51] Production.ERROR: pbx CDR StartTime 2025-02-15 14:28:16 - End Time 2025-02-15 17:28:16 [2025-02-15 17:28:51] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:28:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482606', 'tblTempUsageDetail_20' ) start [2025-02-15 17:29:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482606', 'tblTempUsageDetail_20' ) end [2025-02-15 17:29:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482606', 'tblTempVendorCDR_20' ) start [2025-02-15 17:29:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482606', 'tblTempVendorCDR_20' ) end [2025-02-15 17:29:04] Production.INFO: ProcessCDR(1,14482606,1,1,2) [2025-02-15 17:29:04] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482606', 'tblTempUsageDetail_20' ) start [2025-02-15 17:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482606', 'tblTempUsageDetail_20' ) end [2025-02-15 17:29:31] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:29:31] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:29:36] Production.INFO: ==2621== Releasing lock... [2025-02-15 17:29:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:29:36] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:30:33] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:30:33 [end_date_ymd] => 2025-02-15 17:30:33 [RateCDR] => 1 ) [2025-02-15 17:30:33] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:30:33' and `end` < '2025-02-15 17:30:33' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:30:46] Production.INFO: count ==1772 [2025-02-15 17:30:59] Production.ERROR: pbx CDR StartTime 2025-02-15 14:30:33 - End Time 2025-02-15 17:30:33 [2025-02-15 17:30:59] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:30:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482615', 'tblTempUsageDetail_20' ) start [2025-02-15 17:30:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482615', 'tblTempUsageDetail_20' ) end [2025-02-15 17:30:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482615', 'tblTempVendorCDR_20' ) start [2025-02-15 17:30:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482615', 'tblTempVendorCDR_20' ) end [2025-02-15 17:30:59] Production.INFO: ProcessCDR(1,14482615,1,1,2) [2025-02-15 17:30:59] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:31:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:31:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482615', 'tblTempUsageDetail_20' ) start [2025-02-15 17:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482615', 'tblTempUsageDetail_20' ) end [2025-02-15 17:31:37] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:31:37] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:31:37] Production.INFO: ==2809== Releasing lock... [2025-02-15 17:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:31:37] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 17:32:32] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:32:32 [end_date_ymd] => 2025-02-15 17:32:32 [RateCDR] => 1 ) [2025-02-15 17:32: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-15 14:32:32' and `end` < '2025-02-15 17:32: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-15 17:32:46] Production.INFO: count ==1774 [2025-02-15 17:32:51] Production.ERROR: pbx CDR StartTime 2025-02-15 14:32:32 - End Time 2025-02-15 17:32:32 [2025-02-15 17:32:51] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:32:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482622', 'tblTempUsageDetail_20' ) start [2025-02-15 17:32:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482622', 'tblTempUsageDetail_20' ) end [2025-02-15 17:32:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482622', 'tblTempVendorCDR_20' ) start [2025-02-15 17:32:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482622', 'tblTempVendorCDR_20' ) end [2025-02-15 17:32:51] Production.INFO: ProcessCDR(1,14482622,1,1,2) [2025-02-15 17:32:51] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:32:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:32:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:33:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:33:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482622', 'tblTempUsageDetail_20' ) start [2025-02-15 17:33:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482622', 'tblTempUsageDetail_20' ) end [2025-02-15 17:33:12] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:33:13] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:33:17] Production.INFO: ==3029== Releasing lock... [2025-02-15 17:33:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:33:17] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 17:34:09] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:34:09 [end_date_ymd] => 2025-02-15 17:34:09 [RateCDR] => 1 ) [2025-02-15 17:34:09] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:34:09' and `end` < '2025-02-15 17:34:09' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:34:23] Production.INFO: count ==1774 [2025-02-15 17:34:24] Production.ERROR: pbx CDR StartTime 2025-02-15 14:34:09 - End Time 2025-02-15 17:34:09 [2025-02-15 17:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482630', 'tblTempUsageDetail_20' ) start [2025-02-15 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482630', 'tblTempUsageDetail_20' ) end [2025-02-15 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482630', 'tblTempVendorCDR_20' ) start [2025-02-15 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482630', 'tblTempVendorCDR_20' ) end [2025-02-15 17:34:24] Production.INFO: ProcessCDR(1,14482630,1,1,2) [2025-02-15 17:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482630', 'tblTempUsageDetail_20' ) start [2025-02-15 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482630', 'tblTempUsageDetail_20' ) end [2025-02-15 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:34:27] Production.INFO: ==3185== Releasing lock... [2025-02-15 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:34:27] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:35:05 [end_date_ymd] => 2025-02-15 17:35:05 [RateCDR] => 1 ) [2025-02-15 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:35:05' and `end` < '2025-02-15 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:35:19] Production.INFO: count ==1774 [2025-02-15 17:35:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:35:05 - End Time 2025-02-15 17:35:05 [2025-02-15 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482635', 'tblTempUsageDetail_20' ) start [2025-02-15 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482635', 'tblTempUsageDetail_20' ) end [2025-02-15 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482635', 'tblTempVendorCDR_20' ) start [2025-02-15 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482635', 'tblTempVendorCDR_20' ) end [2025-02-15 17:35:19] Production.INFO: ProcessCDR(1,14482635,1,1,2) [2025-02-15 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482635', 'tblTempUsageDetail_20' ) start [2025-02-15 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482635', 'tblTempUsageDetail_20' ) end [2025-02-15 17:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:35:24] Production.INFO: ==3261== Releasing lock... [2025-02-15 17:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:35:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:36:05 [end_date_ymd] => 2025-02-15 17:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:36:05' and `end` < '2025-02-15 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-15 17:36:18] Production.INFO: count ==1776 [2025-02-15 17:36:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:36:05 - End Time 2025-02-15 17:36:05 [2025-02-15 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482640', 'tblTempUsageDetail_20' ) start [2025-02-15 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482640', 'tblTempUsageDetail_20' ) end [2025-02-15 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482640', 'tblTempVendorCDR_20' ) start [2025-02-15 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482640', 'tblTempVendorCDR_20' ) end [2025-02-15 17:36:19] Production.INFO: ProcessCDR(1,14482640,1,1,2) [2025-02-15 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482640', 'tblTempUsageDetail_20' ) start [2025-02-15 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482640', 'tblTempUsageDetail_20' ) end [2025-02-15 17:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:36:23] Production.INFO: ==3330== Releasing lock... [2025-02-15 17:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:36:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:37:05 [end_date_ymd] => 2025-02-15 17:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:37:05' and `end` < '2025-02-15 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-15 17:37:18] Production.INFO: count ==1777 [2025-02-15 17:37:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:37:05 - End Time 2025-02-15 17:37:05 [2025-02-15 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482645', 'tblTempUsageDetail_20' ) start [2025-02-15 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482645', 'tblTempUsageDetail_20' ) end [2025-02-15 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482645', 'tblTempVendorCDR_20' ) start [2025-02-15 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482645', 'tblTempVendorCDR_20' ) end [2025-02-15 17:37:19] Production.INFO: ProcessCDR(1,14482645,1,1,2) [2025-02-15 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482645', 'tblTempUsageDetail_20' ) start [2025-02-15 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482645', 'tblTempUsageDetail_20' ) end [2025-02-15 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:37:23] Production.INFO: ==3404== Releasing lock... [2025-02-15 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:37:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:38:05 [end_date_ymd] => 2025-02-15 17:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:38:05' and `end` < '2025-02-15 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-15 17:38:19] Production.INFO: count ==1780 [2025-02-15 17:38:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:38:05 - End Time 2025-02-15 17:38:05 [2025-02-15 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482650', 'tblTempUsageDetail_20' ) start [2025-02-15 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482650', 'tblTempUsageDetail_20' ) end [2025-02-15 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482650', 'tblTempVendorCDR_20' ) start [2025-02-15 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482650', 'tblTempVendorCDR_20' ) end [2025-02-15 17:38:19] Production.INFO: ProcessCDR(1,14482650,1,1,2) [2025-02-15 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482650', 'tblTempUsageDetail_20' ) start [2025-02-15 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482650', 'tblTempUsageDetail_20' ) end [2025-02-15 17:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:38:24] Production.INFO: ==3476== Releasing lock... [2025-02-15 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:38:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:39:05 [end_date_ymd] => 2025-02-15 17:39:05 [RateCDR] => 1 ) [2025-02-15 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:39:05' and `end` < '2025-02-15 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:39:18] Production.INFO: count ==1780 [2025-02-15 17:39:18] Production.ERROR: pbx CDR StartTime 2025-02-15 14:39:05 - End Time 2025-02-15 17:39:05 [2025-02-15 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482655', 'tblTempUsageDetail_20' ) start [2025-02-15 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482655', 'tblTempUsageDetail_20' ) end [2025-02-15 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482655', 'tblTempVendorCDR_20' ) start [2025-02-15 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482655', 'tblTempVendorCDR_20' ) end [2025-02-15 17:39:19] Production.INFO: ProcessCDR(1,14482655,1,1,2) [2025-02-15 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482655', 'tblTempUsageDetail_20' ) start [2025-02-15 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482655', 'tblTempUsageDetail_20' ) end [2025-02-15 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:39:23] Production.INFO: ==3545== Releasing lock... [2025-02-15 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:39:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:40:06 [end_date_ymd] => 2025-02-15 17:40:06 [RateCDR] => 1 ) [2025-02-15 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-15 14:40:06' and `end` < '2025-02-15 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-15 17:40:20] Production.INFO: count ==1783 [2025-02-15 17:40:20] Production.ERROR: pbx CDR StartTime 2025-02-15 14:40:06 - End Time 2025-02-15 17:40:06 [2025-02-15 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482661', 'tblTempUsageDetail_20' ) start [2025-02-15 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482661', 'tblTempUsageDetail_20' ) end [2025-02-15 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482661', 'tblTempVendorCDR_20' ) start [2025-02-15 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482661', 'tblTempVendorCDR_20' ) end [2025-02-15 17:40:20] Production.INFO: ProcessCDR(1,14482661,1,1,2) [2025-02-15 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482661', 'tblTempUsageDetail_20' ) start [2025-02-15 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482661', 'tblTempUsageDetail_20' ) end [2025-02-15 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:40:24] Production.INFO: ==3617== Releasing lock... [2025-02-15 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:40:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:41:05 [end_date_ymd] => 2025-02-15 17:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:41:05' and `end` < '2025-02-15 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-15 17:41:18] Production.INFO: count ==1780 [2025-02-15 17:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:41:05 - End Time 2025-02-15 17:41:05 [2025-02-15 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482666', 'tblTempUsageDetail_20' ) start [2025-02-15 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482666', 'tblTempUsageDetail_20' ) end [2025-02-15 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482666', 'tblTempVendorCDR_20' ) start [2025-02-15 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482666', 'tblTempVendorCDR_20' ) end [2025-02-15 17:41:19] Production.INFO: ProcessCDR(1,14482666,1,1,2) [2025-02-15 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482666', 'tblTempUsageDetail_20' ) start [2025-02-15 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482666', 'tblTempUsageDetail_20' ) end [2025-02-15 17:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:41:24] Production.INFO: ==3690== Releasing lock... [2025-02-15 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:41:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:42:05 [end_date_ymd] => 2025-02-15 17:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:42:05' and `end` < '2025-02-15 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-15 17:42:19] Production.INFO: count ==1775 [2025-02-15 17:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:42:05 - End Time 2025-02-15 17:42:05 [2025-02-15 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482671', 'tblTempUsageDetail_20' ) start [2025-02-15 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482671', 'tblTempUsageDetail_20' ) end [2025-02-15 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482671', 'tblTempVendorCDR_20' ) start [2025-02-15 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482671', 'tblTempVendorCDR_20' ) end [2025-02-15 17:42:19] Production.INFO: ProcessCDR(1,14482671,1,1,2) [2025-02-15 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482671', 'tblTempUsageDetail_20' ) start [2025-02-15 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482671', 'tblTempUsageDetail_20' ) end [2025-02-15 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:42:24] Production.INFO: ==3764== Releasing lock... [2025-02-15 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:42:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:43:05 [end_date_ymd] => 2025-02-15 17:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:43:05' and `end` < '2025-02-15 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-15 17:43:18] Production.INFO: count ==1774 [2025-02-15 17:43:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:43:05 - End Time 2025-02-15 17:43:05 [2025-02-15 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482676', 'tblTempUsageDetail_20' ) start [2025-02-15 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482676', 'tblTempUsageDetail_20' ) end [2025-02-15 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482676', 'tblTempVendorCDR_20' ) start [2025-02-15 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482676', 'tblTempVendorCDR_20' ) end [2025-02-15 17:43:19] Production.INFO: ProcessCDR(1,14482676,1,1,2) [2025-02-15 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482676', 'tblTempUsageDetail_20' ) start [2025-02-15 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482676', 'tblTempUsageDetail_20' ) end [2025-02-15 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:43:24] Production.INFO: ==3841== Releasing lock... [2025-02-15 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:43:24] Production.INFO: 41 MB #Memory Used# [2025-02-15 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:44:05 [end_date_ymd] => 2025-02-15 17:44:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:44:05' and `end` < '2025-02-15 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-15 17:44:18] Production.INFO: count ==1752 [2025-02-15 17:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:44:05 - End Time 2025-02-15 17:44:05 [2025-02-15 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482681', 'tblTempUsageDetail_20' ) start [2025-02-15 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482681', 'tblTempUsageDetail_20' ) end [2025-02-15 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482681', 'tblTempVendorCDR_20' ) start [2025-02-15 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482681', 'tblTempVendorCDR_20' ) end [2025-02-15 17:44:19] Production.INFO: ProcessCDR(1,14482681,1,1,2) [2025-02-15 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482681', 'tblTempUsageDetail_20' ) start [2025-02-15 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482681', 'tblTempUsageDetail_20' ) end [2025-02-15 17:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:44:22] Production.INFO: ==3914== Releasing lock... [2025-02-15 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:44:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:45:05 [end_date_ymd] => 2025-02-15 17:45:05 [RateCDR] => 1 ) [2025-02-15 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:45:05' and `end` < '2025-02-15 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:45:21] Production.INFO: count ==1736 [2025-02-15 17:45:21] Production.ERROR: pbx CDR StartTime 2025-02-15 14:45:05 - End Time 2025-02-15 17:45:05 [2025-02-15 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482686', 'tblTempUsageDetail_20' ) start [2025-02-15 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482686', 'tblTempUsageDetail_20' ) end [2025-02-15 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482686', 'tblTempVendorCDR_20' ) start [2025-02-15 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482686', 'tblTempVendorCDR_20' ) end [2025-02-15 17:45:21] Production.INFO: ProcessCDR(1,14482686,1,1,2) [2025-02-15 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482686', 'tblTempUsageDetail_20' ) start [2025-02-15 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482686', 'tblTempUsageDetail_20' ) end [2025-02-15 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:45:26] Production.INFO: ==3985== Releasing lock... [2025-02-15 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:45:26] Production.INFO: 41 MB #Memory Used# [2025-02-15 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:46:05 [end_date_ymd] => 2025-02-15 17:46:05 [RateCDR] => 1 ) [2025-02-15 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:46:05' and `end` < '2025-02-15 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:46:20] Production.INFO: count ==1739 [2025-02-15 17:46:21] Production.ERROR: pbx CDR StartTime 2025-02-15 14:46:05 - End Time 2025-02-15 17:46:05 [2025-02-15 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482691', 'tblTempUsageDetail_20' ) start [2025-02-15 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482691', 'tblTempUsageDetail_20' ) end [2025-02-15 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482691', 'tblTempVendorCDR_20' ) start [2025-02-15 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482691', 'tblTempVendorCDR_20' ) end [2025-02-15 17:46:21] Production.INFO: ProcessCDR(1,14482691,1,1,2) [2025-02-15 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482691', 'tblTempUsageDetail_20' ) start [2025-02-15 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482691', 'tblTempUsageDetail_20' ) end [2025-02-15 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:46:26] Production.INFO: ==4058== Releasing lock... [2025-02-15 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:46:26] Production.INFO: 41 MB #Memory Used# [2025-02-15 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:47:05 [end_date_ymd] => 2025-02-15 17:47:05 [RateCDR] => 1 ) [2025-02-15 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:47:05' and `end` < '2025-02-15 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:47:18] Production.INFO: count ==1744 [2025-02-15 17:47:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:47:05 - End Time 2025-02-15 17:47:05 [2025-02-15 17:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482696', 'tblTempUsageDetail_20' ) start [2025-02-15 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482696', 'tblTempUsageDetail_20' ) end [2025-02-15 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482696', 'tblTempVendorCDR_20' ) start [2025-02-15 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482696', 'tblTempVendorCDR_20' ) end [2025-02-15 17:47:19] Production.INFO: ProcessCDR(1,14482696,1,1,2) [2025-02-15 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482696', 'tblTempUsageDetail_20' ) start [2025-02-15 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482696', 'tblTempUsageDetail_20' ) end [2025-02-15 17:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:47:24] Production.INFO: ==4169== Releasing lock... [2025-02-15 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:47:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:48:05 [end_date_ymd] => 2025-02-15 17:48:05 [RateCDR] => 1 ) [2025-02-15 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:48:05' and `end` < '2025-02-15 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:48:23] Production.INFO: count ==1731 [2025-02-15 17:48:23] Production.ERROR: pbx CDR StartTime 2025-02-15 14:48:05 - End Time 2025-02-15 17:48:05 [2025-02-15 17:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482701', 'tblTempUsageDetail_20' ) start [2025-02-15 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482701', 'tblTempUsageDetail_20' ) end [2025-02-15 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482701', 'tblTempVendorCDR_20' ) start [2025-02-15 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482701', 'tblTempVendorCDR_20' ) end [2025-02-15 17:48:23] Production.INFO: ProcessCDR(1,14482701,1,1,2) [2025-02-15 17:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482701', 'tblTempUsageDetail_20' ) start [2025-02-15 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482701', 'tblTempUsageDetail_20' ) end [2025-02-15 17:48:28] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:48:28] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:48:28] Production.INFO: ==4241== Releasing lock... [2025-02-15 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:48:28] Production.INFO: 41 MB #Memory Used# [2025-02-15 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:49:06 [end_date_ymd] => 2025-02-15 17:49:06 [RateCDR] => 1 ) [2025-02-15 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-15 14:49:06' and `end` < '2025-02-15 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-15 17:49:21] Production.INFO: count ==1729 [2025-02-15 17:49:22] Production.ERROR: pbx CDR StartTime 2025-02-15 14:49:06 - End Time 2025-02-15 17:49:06 [2025-02-15 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482706', 'tblTempUsageDetail_20' ) start [2025-02-15 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482706', 'tblTempUsageDetail_20' ) end [2025-02-15 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482706', 'tblTempVendorCDR_20' ) start [2025-02-15 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482706', 'tblTempVendorCDR_20' ) end [2025-02-15 17:49:22] Production.INFO: ProcessCDR(1,14482706,1,1,2) [2025-02-15 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482706', 'tblTempUsageDetail_20' ) start [2025-02-15 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482706', 'tblTempUsageDetail_20' ) end [2025-02-15 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:49:25] Production.INFO: ==4314== Releasing lock... [2025-02-15 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:49:25] Production.INFO: 41 MB #Memory Used# [2025-02-15 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:50:06 [end_date_ymd] => 2025-02-15 17:50:06 [RateCDR] => 1 ) [2025-02-15 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:50:06' and `end` < '2025-02-15 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:50:22] Production.INFO: count ==1730 [2025-02-15 17:50:22] Production.ERROR: pbx CDR StartTime 2025-02-15 14:50:06 - End Time 2025-02-15 17:50:06 [2025-02-15 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482712', 'tblTempUsageDetail_20' ) start [2025-02-15 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482712', 'tblTempUsageDetail_20' ) end [2025-02-15 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482712', 'tblTempVendorCDR_20' ) start [2025-02-15 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482712', 'tblTempVendorCDR_20' ) end [2025-02-15 17:50:22] Production.INFO: ProcessCDR(1,14482712,1,1,2) [2025-02-15 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482712', 'tblTempUsageDetail_20' ) start [2025-02-15 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482712', 'tblTempUsageDetail_20' ) end [2025-02-15 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:50:26] Production.INFO: ==4387== Releasing lock... [2025-02-15 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:50:26] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:51:06 [end_date_ymd] => 2025-02-15 17:51:06 [RateCDR] => 1 ) [2025-02-15 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-15 14:51:06' and `end` < '2025-02-15 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-15 17:51:19] Production.INFO: count ==1732 [2025-02-15 17:51:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:51:06 - End Time 2025-02-15 17:51:06 [2025-02-15 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482717', 'tblTempUsageDetail_20' ) start [2025-02-15 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482717', 'tblTempUsageDetail_20' ) end [2025-02-15 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482717', 'tblTempVendorCDR_20' ) start [2025-02-15 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482717', 'tblTempVendorCDR_20' ) end [2025-02-15 17:51:19] Production.INFO: ProcessCDR(1,14482717,1,1,2) [2025-02-15 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482717', 'tblTempUsageDetail_20' ) start [2025-02-15 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482717', 'tblTempUsageDetail_20' ) end [2025-02-15 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:51:23] Production.INFO: ==4462== Releasing lock... [2025-02-15 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:51:23] Production.INFO: 41 MB #Memory Used# [2025-02-15 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:52:05 [end_date_ymd] => 2025-02-15 17:52:05 [RateCDR] => 1 ) [2025-02-15 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:52:05' and `end` < '2025-02-15 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:52:18] Production.INFO: count ==1731 [2025-02-15 17:52:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:52:05 - End Time 2025-02-15 17:52:05 [2025-02-15 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482722', 'tblTempUsageDetail_20' ) start [2025-02-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482722', 'tblTempUsageDetail_20' ) end [2025-02-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482722', 'tblTempVendorCDR_20' ) start [2025-02-15 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482722', 'tblTempVendorCDR_20' ) end [2025-02-15 17:52:19] Production.INFO: ProcessCDR(1,14482722,1,1,2) [2025-02-15 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482722', 'tblTempUsageDetail_20' ) start [2025-02-15 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482722', 'tblTempUsageDetail_20' ) end [2025-02-15 17:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:52:22] Production.INFO: ==4532== Releasing lock... [2025-02-15 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:52:22] Production.INFO: 41 MB #Memory Used# [2025-02-15 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:53:06 [end_date_ymd] => 2025-02-15 17:53:06 [RateCDR] => 1 ) [2025-02-15 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-15 14:53:06' and `end` < '2025-02-15 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-15 17:53:21] Production.INFO: count ==1723 [2025-02-15 17:53:21] Production.ERROR: pbx CDR StartTime 2025-02-15 14:53:06 - End Time 2025-02-15 17:53:06 [2025-02-15 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482727', 'tblTempUsageDetail_20' ) start [2025-02-15 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482727', 'tblTempUsageDetail_20' ) end [2025-02-15 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482727', 'tblTempVendorCDR_20' ) start [2025-02-15 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482727', 'tblTempVendorCDR_20' ) end [2025-02-15 17:53:21] Production.INFO: ProcessCDR(1,14482727,1,1,2) [2025-02-15 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482727', 'tblTempUsageDetail_20' ) start [2025-02-15 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482727', 'tblTempUsageDetail_20' ) end [2025-02-15 17:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:53:24] Production.INFO: ==4613== Releasing lock... [2025-02-15 17:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:53:24] Production.INFO: 41 MB #Memory Used# [2025-02-15 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:54:05 [end_date_ymd] => 2025-02-15 17:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:54:05' and `end` < '2025-02-15 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-15 17:54:18] Production.INFO: count ==1733 [2025-02-15 17:54:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:54:05 - End Time 2025-02-15 17:54:05 [2025-02-15 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482732', 'tblTempUsageDetail_20' ) start [2025-02-15 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482732', 'tblTempUsageDetail_20' ) end [2025-02-15 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482732', 'tblTempVendorCDR_20' ) start [2025-02-15 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482732', 'tblTempVendorCDR_20' ) end [2025-02-15 17:54:19] Production.INFO: ProcessCDR(1,14482732,1,1,2) [2025-02-15 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482732', 'tblTempUsageDetail_20' ) start [2025-02-15 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482732', 'tblTempUsageDetail_20' ) end [2025-02-15 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:54:22] Production.INFO: ==4684== Releasing lock... [2025-02-15 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:54:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:55:05 [end_date_ymd] => 2025-02-15 17:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 14:55:05' and `end` < '2025-02-15 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-15 17:55:19] Production.INFO: count ==1734 [2025-02-15 17:55:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:55:05 - End Time 2025-02-15 17:55:05 [2025-02-15 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482737', 'tblTempUsageDetail_20' ) start [2025-02-15 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482737', 'tblTempUsageDetail_20' ) end [2025-02-15 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482737', 'tblTempVendorCDR_20' ) start [2025-02-15 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482737', 'tblTempVendorCDR_20' ) end [2025-02-15 17:55:19] Production.INFO: ProcessCDR(1,14482737,1,1,2) [2025-02-15 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482737', 'tblTempUsageDetail_20' ) start [2025-02-15 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482737', 'tblTempUsageDetail_20' ) end [2025-02-15 17:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:55:22] Production.INFO: ==4754== Releasing lock... [2025-02-15 17:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:55:22] Production.INFO: 41 MB #Memory Used# [2025-02-15 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:56:05 [end_date_ymd] => 2025-02-15 17:56:05 [RateCDR] => 1 ) [2025-02-15 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:56:05' and `end` < '2025-02-15 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:56:18] Production.INFO: count ==1738 [2025-02-15 17:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:56:05 - End Time 2025-02-15 17:56:05 [2025-02-15 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482742', 'tblTempUsageDetail_20' ) start [2025-02-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482742', 'tblTempUsageDetail_20' ) end [2025-02-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482742', 'tblTempVendorCDR_20' ) start [2025-02-15 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482742', 'tblTempVendorCDR_20' ) end [2025-02-15 17:56:19] Production.INFO: ProcessCDR(1,14482742,1,1,2) [2025-02-15 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482742', 'tblTempUsageDetail_20' ) start [2025-02-15 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482742', 'tblTempUsageDetail_20' ) end [2025-02-15 17:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:56:22] Production.INFO: ==4833== Releasing lock... [2025-02-15 17:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:56:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:57:05 [end_date_ymd] => 2025-02-15 17:57:05 [RateCDR] => 1 ) [2025-02-15 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:57:05' and `end` < '2025-02-15 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:57:18] Production.INFO: count ==1748 [2025-02-15 17:57:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:57:05 - End Time 2025-02-15 17:57:05 [2025-02-15 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482747', 'tblTempUsageDetail_20' ) start [2025-02-15 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482747', 'tblTempUsageDetail_20' ) end [2025-02-15 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482747', 'tblTempVendorCDR_20' ) start [2025-02-15 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482747', 'tblTempVendorCDR_20' ) end [2025-02-15 17:57:19] Production.INFO: ProcessCDR(1,14482747,1,1,2) [2025-02-15 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482747', 'tblTempUsageDetail_20' ) start [2025-02-15 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482747', 'tblTempUsageDetail_20' ) end [2025-02-15 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:57:24] Production.INFO: ==4907== Releasing lock... [2025-02-15 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:57:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:58:05 [end_date_ymd] => 2025-02-15 17:58:05 [RateCDR] => 1 ) [2025-02-15 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:58:05' and `end` < '2025-02-15 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:58:19] Production.INFO: count ==1752 [2025-02-15 17:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 14:58:05 - End Time 2025-02-15 17:58:05 [2025-02-15 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482752', 'tblTempUsageDetail_20' ) start [2025-02-15 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482752', 'tblTempUsageDetail_20' ) end [2025-02-15 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482752', 'tblTempVendorCDR_20' ) start [2025-02-15 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482752', 'tblTempVendorCDR_20' ) end [2025-02-15 17:58:19] Production.INFO: ProcessCDR(1,14482752,1,1,2) [2025-02-15 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482752', 'tblTempUsageDetail_20' ) start [2025-02-15 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482752', 'tblTempUsageDetail_20' ) end [2025-02-15 17:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:58:24] Production.INFO: ==4983== Releasing lock... [2025-02-15 17:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:58:24] Production.INFO: 41 MB #Memory Used# [2025-02-15 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 14:59:05 [end_date_ymd] => 2025-02-15 17:59:05 [RateCDR] => 1 ) [2025-02-15 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 14:59:05' and `end` < '2025-02-15 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 17:59:20] Production.INFO: count ==1754 [2025-02-15 17:59:20] Production.ERROR: pbx CDR StartTime 2025-02-15 14:59:05 - End Time 2025-02-15 17:59:05 [2025-02-15 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482757', 'tblTempUsageDetail_20' ) start [2025-02-15 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482757', 'tblTempUsageDetail_20' ) end [2025-02-15 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482757', 'tblTempVendorCDR_20' ) start [2025-02-15 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482757', 'tblTempVendorCDR_20' ) end [2025-02-15 17:59:20] Production.INFO: ProcessCDR(1,14482757,1,1,2) [2025-02-15 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482757', 'tblTempUsageDetail_20' ) start [2025-02-15 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482757', 'tblTempUsageDetail_20' ) end [2025-02-15 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 17:59:25] Production.INFO: ==5060== Releasing lock... [2025-02-15 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 17:59:25] Production.INFO: 41 MB #Memory Used# [2025-02-15 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:00:05 [end_date_ymd] => 2025-02-15 18:00:05 [RateCDR] => 1 ) [2025-02-15 18: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-15 15:00:05' and `end` < '2025-02-15 18: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-15 18:00:19] Production.INFO: count ==1754 [2025-02-15 18:00:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:00:05 - End Time 2025-02-15 18:00:05 [2025-02-15 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482762', 'tblTempUsageDetail_20' ) start [2025-02-15 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482762', 'tblTempUsageDetail_20' ) end [2025-02-15 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482762', 'tblTempVendorCDR_20' ) start [2025-02-15 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482762', 'tblTempVendorCDR_20' ) end [2025-02-15 18:00:19] Production.INFO: ProcessCDR(1,14482762,1,1,2) [2025-02-15 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482762', 'tblTempUsageDetail_20' ) start [2025-02-15 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482762', 'tblTempUsageDetail_20' ) end [2025-02-15 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:00:24] Production.INFO: ==5140== Releasing lock... [2025-02-15 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:00:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:01:05 [end_date_ymd] => 2025-02-15 18:01:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:01:05' and `end` < '2025-02-15 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-15 18:01:20] Production.INFO: count ==1828 [2025-02-15 18:01:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:01:05 - End Time 2025-02-15 18:01:05 [2025-02-15 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482768', 'tblTempUsageDetail_20' ) start [2025-02-15 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482768', 'tblTempUsageDetail_20' ) end [2025-02-15 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482768', 'tblTempVendorCDR_20' ) start [2025-02-15 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482768', 'tblTempVendorCDR_20' ) end [2025-02-15 18:01:20] Production.INFO: ProcessCDR(1,14482768,1,1,2) [2025-02-15 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482768', 'tblTempUsageDetail_20' ) start [2025-02-15 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482768', 'tblTempUsageDetail_20' ) end [2025-02-15 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:01:25] Production.INFO: ==5233== Releasing lock... [2025-02-15 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:01:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:02:06 [end_date_ymd] => 2025-02-15 18:02:06 [RateCDR] => 1 ) [2025-02-15 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-15 15:02:06' and `end` < '2025-02-15 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-15 18:02:24] Production.INFO: count ==1835 [2025-02-15 18:02:24] Production.ERROR: pbx CDR StartTime 2025-02-15 15:02:06 - End Time 2025-02-15 18:02:06 [2025-02-15 18:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482773', 'tblTempUsageDetail_20' ) start [2025-02-15 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482773', 'tblTempUsageDetail_20' ) end [2025-02-15 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482773', 'tblTempVendorCDR_20' ) start [2025-02-15 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482773', 'tblTempVendorCDR_20' ) end [2025-02-15 18:02:24] Production.INFO: ProcessCDR(1,14482773,1,1,2) [2025-02-15 18:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482773', 'tblTempUsageDetail_20' ) start [2025-02-15 18:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482773', 'tblTempUsageDetail_20' ) end [2025-02-15 18:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:02:28] Production.INFO: ==5311== Releasing lock... [2025-02-15 18:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:02:28] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:03:04 [end_date_ymd] => 2025-02-15 18:03:04 [RateCDR] => 1 ) [2025-02-15 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:03:04' and `end` < '2025-02-15 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:03:19] Production.INFO: count ==1840 [2025-02-15 18:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:03:04 - End Time 2025-02-15 18:03:04 [2025-02-15 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482778', 'tblTempUsageDetail_20' ) start [2025-02-15 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482778', 'tblTempUsageDetail_20' ) end [2025-02-15 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482778', 'tblTempVendorCDR_20' ) start [2025-02-15 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482778', 'tblTempVendorCDR_20' ) end [2025-02-15 18:03:19] Production.INFO: ProcessCDR(1,14482778,1,1,2) [2025-02-15 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482778', 'tblTempUsageDetail_20' ) start [2025-02-15 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482778', 'tblTempUsageDetail_20' ) end [2025-02-15 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:03:24] Production.INFO: ==5430== Releasing lock... [2025-02-15 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:03:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:04:05 [end_date_ymd] => 2025-02-15 18:04:05 [RateCDR] => 1 ) [2025-02-15 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:04:05' and `end` < '2025-02-15 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:04:18] Production.INFO: count ==1833 [2025-02-15 18:04:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:04:05 - End Time 2025-02-15 18:04:05 [2025-02-15 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482783', 'tblTempUsageDetail_20' ) start [2025-02-15 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482783', 'tblTempUsageDetail_20' ) end [2025-02-15 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482783', 'tblTempVendorCDR_20' ) start [2025-02-15 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482783', 'tblTempVendorCDR_20' ) end [2025-02-15 18:04:19] Production.INFO: ProcessCDR(1,14482783,1,1,2) [2025-02-15 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482783', 'tblTempUsageDetail_20' ) start [2025-02-15 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482783', 'tblTempUsageDetail_20' ) end [2025-02-15 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:04:24] Production.INFO: ==5505== Releasing lock... [2025-02-15 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:04:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:05:05 [end_date_ymd] => 2025-02-15 18:05:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:05:05' and `end` < '2025-02-15 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-15 18:05:21] Production.INFO: count ==1846 [2025-02-15 18:05:22] Production.ERROR: pbx CDR StartTime 2025-02-15 15:05:05 - End Time 2025-02-15 18:05:05 [2025-02-15 18:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482788', 'tblTempUsageDetail_20' ) start [2025-02-15 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482788', 'tblTempUsageDetail_20' ) end [2025-02-15 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482788', 'tblTempVendorCDR_20' ) start [2025-02-15 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482788', 'tblTempVendorCDR_20' ) end [2025-02-15 18:05:22] Production.INFO: ProcessCDR(1,14482788,1,1,2) [2025-02-15 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482788', 'tblTempUsageDetail_20' ) start [2025-02-15 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482788', 'tblTempUsageDetail_20' ) end [2025-02-15 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:05:25] Production.INFO: ==5583== Releasing lock... [2025-02-15 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:05:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:06:05 [end_date_ymd] => 2025-02-15 18:06:05 [RateCDR] => 1 ) [2025-02-15 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:06:05' and `end` < '2025-02-15 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:06:19] Production.INFO: count ==1850 [2025-02-15 18:06:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:06:05 - End Time 2025-02-15 18:06:05 [2025-02-15 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482793', 'tblTempUsageDetail_20' ) start [2025-02-15 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482793', 'tblTempUsageDetail_20' ) end [2025-02-15 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482793', 'tblTempVendorCDR_20' ) start [2025-02-15 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482793', 'tblTempVendorCDR_20' ) end [2025-02-15 18:06:19] Production.INFO: ProcessCDR(1,14482793,1,1,2) [2025-02-15 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482793', 'tblTempUsageDetail_20' ) start [2025-02-15 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482793', 'tblTempUsageDetail_20' ) end [2025-02-15 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:06:23] Production.INFO: ==5661== Releasing lock... [2025-02-15 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:06:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:07:05 [end_date_ymd] => 2025-02-15 18:07:05 [RateCDR] => 1 ) [2025-02-15 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:07:05' and `end` < '2025-02-15 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:07:18] Production.INFO: count ==1850 [2025-02-15 18:07:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:07:05 - End Time 2025-02-15 18:07:05 [2025-02-15 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482798', 'tblTempUsageDetail_20' ) start [2025-02-15 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482798', 'tblTempUsageDetail_20' ) end [2025-02-15 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482798', 'tblTempVendorCDR_20' ) start [2025-02-15 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482798', 'tblTempVendorCDR_20' ) end [2025-02-15 18:07:19] Production.INFO: ProcessCDR(1,14482798,1,1,2) [2025-02-15 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482798', 'tblTempUsageDetail_20' ) start [2025-02-15 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482798', 'tblTempUsageDetail_20' ) end [2025-02-15 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:07:24] Production.INFO: ==5738== Releasing lock... [2025-02-15 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:07:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:08:06 [end_date_ymd] => 2025-02-15 18:08:06 [RateCDR] => 1 ) [2025-02-15 18:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:08:06' and `end` < '2025-02-15 18:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:08:22] Production.INFO: count ==1856 [2025-02-15 18:08:22] Production.ERROR: pbx CDR StartTime 2025-02-15 15:08:06 - End Time 2025-02-15 18:08:06 [2025-02-15 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482803', 'tblTempUsageDetail_20' ) start [2025-02-15 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482803', 'tblTempUsageDetail_20' ) end [2025-02-15 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482803', 'tblTempVendorCDR_20' ) start [2025-02-15 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482803', 'tblTempVendorCDR_20' ) end [2025-02-15 18:08:23] Production.INFO: ProcessCDR(1,14482803,1,1,2) [2025-02-15 18:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482803', 'tblTempUsageDetail_20' ) start [2025-02-15 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482803', 'tblTempUsageDetail_20' ) end [2025-02-15 18:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:08:27] Production.INFO: ==5816== Releasing lock... [2025-02-15 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:08:27] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:09:05 [end_date_ymd] => 2025-02-15 18:09:05 [RateCDR] => 1 ) [2025-02-15 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:09:05' and `end` < '2025-02-15 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:09:18] Production.INFO: count ==1857 [2025-02-15 18:09:18] Production.ERROR: pbx CDR StartTime 2025-02-15 15:09:05 - End Time 2025-02-15 18:09:05 [2025-02-15 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482808', 'tblTempUsageDetail_20' ) start [2025-02-15 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482808', 'tblTempUsageDetail_20' ) end [2025-02-15 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482808', 'tblTempVendorCDR_20' ) start [2025-02-15 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482808', 'tblTempVendorCDR_20' ) end [2025-02-15 18:09:19] Production.INFO: ProcessCDR(1,14482808,1,1,2) [2025-02-15 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482808', 'tblTempUsageDetail_20' ) start [2025-02-15 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482808', 'tblTempUsageDetail_20' ) end [2025-02-15 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:09:23] Production.INFO: ==5897== Releasing lock... [2025-02-15 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:09:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:10:06 [end_date_ymd] => 2025-02-15 18:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 15:10:06' and `end` < '2025-02-15 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-15 18:10:21] Production.INFO: count ==1857 [2025-02-15 18:10:21] Production.ERROR: pbx CDR StartTime 2025-02-15 15:10:06 - End Time 2025-02-15 18:10:06 [2025-02-15 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482814', 'tblTempUsageDetail_20' ) start [2025-02-15 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482814', 'tblTempUsageDetail_20' ) end [2025-02-15 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482814', 'tblTempVendorCDR_20' ) start [2025-02-15 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482814', 'tblTempVendorCDR_20' ) end [2025-02-15 18:10:21] Production.INFO: ProcessCDR(1,14482814,1,1,2) [2025-02-15 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482814', 'tblTempUsageDetail_20' ) start [2025-02-15 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482814', 'tblTempUsageDetail_20' ) end [2025-02-15 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:10:26] Production.INFO: ==5978== Releasing lock... [2025-02-15 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:10:26] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:11:05 [end_date_ymd] => 2025-02-15 18:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:11:05' and `end` < '2025-02-15 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-15 18:11:18] Production.INFO: count ==1887 [2025-02-15 18:11:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:11:05 - End Time 2025-02-15 18:11:05 [2025-02-15 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482819', 'tblTempUsageDetail_20' ) start [2025-02-15 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482819', 'tblTempUsageDetail_20' ) end [2025-02-15 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482819', 'tblTempVendorCDR_20' ) start [2025-02-15 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482819', 'tblTempVendorCDR_20' ) end [2025-02-15 18:11:19] Production.INFO: ProcessCDR(1,14482819,1,1,2) [2025-02-15 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482819', 'tblTempUsageDetail_20' ) start [2025-02-15 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482819', 'tblTempUsageDetail_20' ) end [2025-02-15 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:11:24] Production.INFO: ==6054== Releasing lock... [2025-02-15 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:11:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:12:05 [end_date_ymd] => 2025-02-15 18:12:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:12:05' and `end` < '2025-02-15 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-15 18:12:20] Production.INFO: count ==1885 [2025-02-15 18:12:21] Production.ERROR: pbx CDR StartTime 2025-02-15 15:12:05 - End Time 2025-02-15 18:12:05 [2025-02-15 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482824', 'tblTempUsageDetail_20' ) start [2025-02-15 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482824', 'tblTempUsageDetail_20' ) end [2025-02-15 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482824', 'tblTempVendorCDR_20' ) start [2025-02-15 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482824', 'tblTempVendorCDR_20' ) end [2025-02-15 18:12:21] Production.INFO: ProcessCDR(1,14482824,1,1,2) [2025-02-15 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482824', 'tblTempUsageDetail_20' ) start [2025-02-15 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482824', 'tblTempUsageDetail_20' ) end [2025-02-15 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:12:25] Production.INFO: ==6131== Releasing lock... [2025-02-15 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:12:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:13:05 [end_date_ymd] => 2025-02-15 18:13:05 [RateCDR] => 1 ) [2025-02-15 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:13:05' and `end` < '2025-02-15 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:13:18] Production.INFO: count ==1882 [2025-02-15 18:13:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:13:05 - End Time 2025-02-15 18:13:05 [2025-02-15 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482829', 'tblTempUsageDetail_20' ) start [2025-02-15 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482829', 'tblTempUsageDetail_20' ) end [2025-02-15 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482829', 'tblTempVendorCDR_20' ) start [2025-02-15 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482829', 'tblTempVendorCDR_20' ) end [2025-02-15 18:13:19] Production.INFO: ProcessCDR(1,14482829,1,1,2) [2025-02-15 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482829', 'tblTempUsageDetail_20' ) start [2025-02-15 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482829', 'tblTempUsageDetail_20' ) end [2025-02-15 18:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:13:22] Production.INFO: ==6211== Releasing lock... [2025-02-15 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:13:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:14:06 [end_date_ymd] => 2025-02-15 18:14:06 [RateCDR] => 1 ) [2025-02-15 18:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:14:06' and `end` < '2025-02-15 18:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:14:20] Production.INFO: count ==1880 [2025-02-15 18:14:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:14:06 - End Time 2025-02-15 18:14:06 [2025-02-15 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482834', 'tblTempUsageDetail_20' ) start [2025-02-15 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482834', 'tblTempUsageDetail_20' ) end [2025-02-15 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482834', 'tblTempVendorCDR_20' ) start [2025-02-15 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482834', 'tblTempVendorCDR_20' ) end [2025-02-15 18:14:20] Production.INFO: ProcessCDR(1,14482834,1,1,2) [2025-02-15 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482834', 'tblTempUsageDetail_20' ) start [2025-02-15 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482834', 'tblTempUsageDetail_20' ) end [2025-02-15 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:14:24] Production.INFO: ==6289== Releasing lock... [2025-02-15 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:14:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:15:05 [end_date_ymd] => 2025-02-15 18:15:05 [RateCDR] => 1 ) [2025-02-15 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:15:05' and `end` < '2025-02-15 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:15:18] Production.INFO: count ==1883 [2025-02-15 18:15:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:15:05 - End Time 2025-02-15 18:15:05 [2025-02-15 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482839', 'tblTempUsageDetail_20' ) start [2025-02-15 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482839', 'tblTempUsageDetail_20' ) end [2025-02-15 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482839', 'tblTempVendorCDR_20' ) start [2025-02-15 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482839', 'tblTempVendorCDR_20' ) end [2025-02-15 18:15:19] Production.INFO: ProcessCDR(1,14482839,1,1,2) [2025-02-15 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482839', 'tblTempUsageDetail_20' ) start [2025-02-15 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482839', 'tblTempUsageDetail_20' ) end [2025-02-15 18:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:15:22] Production.INFO: ==6366== Releasing lock... [2025-02-15 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:15:22] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:16:05 [end_date_ymd] => 2025-02-15 18:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:16:05' and `end` < '2025-02-15 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-15 18:16:19] Production.INFO: count ==1877 [2025-02-15 18:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:16:05 - End Time 2025-02-15 18:16:05 [2025-02-15 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482844', 'tblTempUsageDetail_20' ) start [2025-02-15 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482844', 'tblTempUsageDetail_20' ) end [2025-02-15 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482844', 'tblTempVendorCDR_20' ) start [2025-02-15 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482844', 'tblTempVendorCDR_20' ) end [2025-02-15 18:16:19] Production.INFO: ProcessCDR(1,14482844,1,1,2) [2025-02-15 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482844', 'tblTempUsageDetail_20' ) start [2025-02-15 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482844', 'tblTempUsageDetail_20' ) end [2025-02-15 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:16:24] Production.INFO: ==6441== Releasing lock... [2025-02-15 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:16:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:17:04 [end_date_ymd] => 2025-02-15 18:17:04 [RateCDR] => 1 ) [2025-02-15 18: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-15 15:17:04' and `end` < '2025-02-15 18: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-15 18:17:18] Production.INFO: count ==1876 [2025-02-15 18:17:18] Production.ERROR: pbx CDR StartTime 2025-02-15 15:17:04 - End Time 2025-02-15 18:17:04 [2025-02-15 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482849', 'tblTempUsageDetail_20' ) start [2025-02-15 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482849', 'tblTempUsageDetail_20' ) end [2025-02-15 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482849', 'tblTempVendorCDR_20' ) start [2025-02-15 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482849', 'tblTempVendorCDR_20' ) end [2025-02-15 18:17:18] Production.INFO: ProcessCDR(1,14482849,1,1,2) [2025-02-15 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482849', 'tblTempUsageDetail_20' ) start [2025-02-15 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482849', 'tblTempUsageDetail_20' ) end [2025-02-15 18:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:17:22] Production.INFO: ==6520== Releasing lock... [2025-02-15 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:17:22] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:18:06 [end_date_ymd] => 2025-02-15 18:18:06 [RateCDR] => 1 ) [2025-02-15 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-15 15:18:06' and `end` < '2025-02-15 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-15 18:18:20] Production.INFO: count ==1876 [2025-02-15 18:18:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:18:06 - End Time 2025-02-15 18:18:06 [2025-02-15 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482854', 'tblTempUsageDetail_20' ) start [2025-02-15 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482854', 'tblTempUsageDetail_20' ) end [2025-02-15 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482854', 'tblTempVendorCDR_20' ) start [2025-02-15 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482854', 'tblTempVendorCDR_20' ) end [2025-02-15 18:18:20] Production.INFO: ProcessCDR(1,14482854,1,1,2) [2025-02-15 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482854', 'tblTempUsageDetail_20' ) start [2025-02-15 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482854', 'tblTempUsageDetail_20' ) end [2025-02-15 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:18:25] Production.INFO: ==6636== Releasing lock... [2025-02-15 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:18:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:19:06 [end_date_ymd] => 2025-02-15 18:19:06 [RateCDR] => 1 ) [2025-02-15 18: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-15 15:19:06' and `end` < '2025-02-15 18: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-15 18:19:19] Production.INFO: count ==1877 [2025-02-15 18:19:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:19:06 - End Time 2025-02-15 18:19:06 [2025-02-15 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482859', 'tblTempUsageDetail_20' ) start [2025-02-15 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482859', 'tblTempUsageDetail_20' ) end [2025-02-15 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482859', 'tblTempVendorCDR_20' ) start [2025-02-15 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482859', 'tblTempVendorCDR_20' ) end [2025-02-15 18:19:19] Production.INFO: ProcessCDR(1,14482859,1,1,2) [2025-02-15 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482859', 'tblTempUsageDetail_20' ) start [2025-02-15 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482859', 'tblTempUsageDetail_20' ) end [2025-02-15 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:19:24] Production.INFO: ==6720== Releasing lock... [2025-02-15 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:19:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:20:06 [end_date_ymd] => 2025-02-15 18:20:06 [RateCDR] => 1 ) [2025-02-15 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-15 15:20:06' and `end` < '2025-02-15 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-15 18:20:20] Production.INFO: count ==1878 [2025-02-15 18:20:21] Production.ERROR: pbx CDR StartTime 2025-02-15 15:20:06 - End Time 2025-02-15 18:20:06 [2025-02-15 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482865', 'tblTempUsageDetail_20' ) start [2025-02-15 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482865', 'tblTempUsageDetail_20' ) end [2025-02-15 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482865', 'tblTempVendorCDR_20' ) start [2025-02-15 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482865', 'tblTempVendorCDR_20' ) end [2025-02-15 18:20:21] Production.INFO: ProcessCDR(1,14482865,1,1,2) [2025-02-15 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482865', 'tblTempUsageDetail_20' ) start [2025-02-15 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482865', 'tblTempUsageDetail_20' ) end [2025-02-15 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:20:26] Production.INFO: ==6802== Releasing lock... [2025-02-15 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:20:26] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:21:05 [end_date_ymd] => 2025-02-15 18:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:21:05' and `end` < '2025-02-15 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-15 18:21:19] Production.INFO: count ==1932 [2025-02-15 18:21:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:21:05 - End Time 2025-02-15 18:21:05 [2025-02-15 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482870', 'tblTempUsageDetail_20' ) start [2025-02-15 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482870', 'tblTempUsageDetail_20' ) end [2025-02-15 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482870', 'tblTempVendorCDR_20' ) start [2025-02-15 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482870', 'tblTempVendorCDR_20' ) end [2025-02-15 18:21:20] Production.INFO: ProcessCDR(1,14482870,1,1,2) [2025-02-15 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482870', 'tblTempUsageDetail_20' ) start [2025-02-15 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482870', 'tblTempUsageDetail_20' ) end [2025-02-15 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:21:25] Production.INFO: ==6884== Releasing lock... [2025-02-15 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:21:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:22:05 [end_date_ymd] => 2025-02-15 18:22:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:22:05' and `end` < '2025-02-15 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-15 18:22:21] Production.INFO: count ==1933 [2025-02-15 18:22:21] Production.ERROR: pbx CDR StartTime 2025-02-15 15:22:05 - End Time 2025-02-15 18:22:05 [2025-02-15 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482875', 'tblTempUsageDetail_20' ) start [2025-02-15 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482875', 'tblTempUsageDetail_20' ) end [2025-02-15 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482875', 'tblTempVendorCDR_20' ) start [2025-02-15 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482875', 'tblTempVendorCDR_20' ) end [2025-02-15 18:22:21] Production.INFO: ProcessCDR(1,14482875,1,1,2) [2025-02-15 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482875', 'tblTempUsageDetail_20' ) start [2025-02-15 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482875', 'tblTempUsageDetail_20' ) end [2025-02-15 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:22:26] Production.INFO: ==6975== Releasing lock... [2025-02-15 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:22:26] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:23:06 [end_date_ymd] => 2025-02-15 18:23:06 [RateCDR] => 1 ) [2025-02-15 18:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:23:06' and `end` < '2025-02-15 18:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:23:21] Production.INFO: count ==1930 [2025-02-15 18:23:21] Production.ERROR: pbx CDR StartTime 2025-02-15 15:23:06 - End Time 2025-02-15 18:23:06 [2025-02-15 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482880', 'tblTempUsageDetail_20' ) start [2025-02-15 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482880', 'tblTempUsageDetail_20' ) end [2025-02-15 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482880', 'tblTempVendorCDR_20' ) start [2025-02-15 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482880', 'tblTempVendorCDR_20' ) end [2025-02-15 18:23:21] Production.INFO: ProcessCDR(1,14482880,1,1,2) [2025-02-15 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482880', 'tblTempUsageDetail_20' ) start [2025-02-15 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482880', 'tblTempUsageDetail_20' ) end [2025-02-15 18:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:23:26] Production.INFO: ==7061== Releasing lock... [2025-02-15 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:23:26] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:24:05 [end_date_ymd] => 2025-02-15 18:24:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:24:05' and `end` < '2025-02-15 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-15 18:24:20] Production.INFO: count ==1932 [2025-02-15 18:24:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:24:05 - End Time 2025-02-15 18:24:05 [2025-02-15 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482885', 'tblTempUsageDetail_20' ) start [2025-02-15 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482885', 'tblTempUsageDetail_20' ) end [2025-02-15 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482885', 'tblTempVendorCDR_20' ) start [2025-02-15 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482885', 'tblTempVendorCDR_20' ) end [2025-02-15 18:24:20] Production.INFO: ProcessCDR(1,14482885,1,1,2) [2025-02-15 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482885', 'tblTempUsageDetail_20' ) start [2025-02-15 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482885', 'tblTempUsageDetail_20' ) end [2025-02-15 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:24:25] Production.INFO: ==7144== Releasing lock... [2025-02-15 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:24:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:25:05 [end_date_ymd] => 2025-02-15 18:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:25:05' and `end` < '2025-02-15 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-15 18:25:19] Production.INFO: count ==1934 [2025-02-15 18:25:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:25:05 - End Time 2025-02-15 18:25:05 [2025-02-15 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482890', 'tblTempUsageDetail_20' ) start [2025-02-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482890', 'tblTempUsageDetail_20' ) end [2025-02-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482890', 'tblTempVendorCDR_20' ) start [2025-02-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482890', 'tblTempVendorCDR_20' ) end [2025-02-15 18:25:20] Production.INFO: ProcessCDR(1,14482890,1,1,2) [2025-02-15 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482890', 'tblTempUsageDetail_20' ) start [2025-02-15 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482890', 'tblTempUsageDetail_20' ) end [2025-02-15 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:25:24] Production.INFO: ==7223== Releasing lock... [2025-02-15 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:25:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:26:05 [end_date_ymd] => 2025-02-15 18:26:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:26:05' and `end` < '2025-02-15 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-15 18:26:18] Production.INFO: count ==1934 [2025-02-15 18:26:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:26:05 - End Time 2025-02-15 18:26:05 [2025-02-15 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482895', 'tblTempUsageDetail_20' ) start [2025-02-15 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482895', 'tblTempUsageDetail_20' ) end [2025-02-15 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482895', 'tblTempVendorCDR_20' ) start [2025-02-15 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482895', 'tblTempVendorCDR_20' ) end [2025-02-15 18:26:19] Production.INFO: ProcessCDR(1,14482895,1,1,2) [2025-02-15 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482895', 'tblTempUsageDetail_20' ) start [2025-02-15 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482895', 'tblTempUsageDetail_20' ) end [2025-02-15 18:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:26:23] Production.INFO: ==7302== Releasing lock... [2025-02-15 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:26:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:27:05 [end_date_ymd] => 2025-02-15 18:27:05 [RateCDR] => 1 ) [2025-02-15 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:27:05' and `end` < '2025-02-15 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-15 18:27:18] Production.INFO: count ==1938 [2025-02-15 18:27:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:27:05 - End Time 2025-02-15 18:27:05 [2025-02-15 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482900', 'tblTempUsageDetail_20' ) start [2025-02-15 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482900', 'tblTempUsageDetail_20' ) end [2025-02-15 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482900', 'tblTempVendorCDR_20' ) start [2025-02-15 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482900', 'tblTempVendorCDR_20' ) end [2025-02-15 18:27:19] Production.INFO: ProcessCDR(1,14482900,1,1,2) [2025-02-15 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482900', 'tblTempUsageDetail_20' ) start [2025-02-15 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482900', 'tblTempUsageDetail_20' ) end [2025-02-15 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:27:24] Production.INFO: ==7387== Releasing lock... [2025-02-15 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:27:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 18:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:28:04 [end_date_ymd] => 2025-02-15 18:28:04 [RateCDR] => 1 ) [2025-02-15 18: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-15 15:28:04' and `end` < '2025-02-15 18: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-15 18:28:18] Production.INFO: count ==1940 [2025-02-15 18:28:18] Production.ERROR: pbx CDR StartTime 2025-02-15 15:28:04 - End Time 2025-02-15 18:28:04 [2025-02-15 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482905', 'tblTempUsageDetail_20' ) start [2025-02-15 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482905', 'tblTempUsageDetail_20' ) end [2025-02-15 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482905', 'tblTempVendorCDR_20' ) start [2025-02-15 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482905', 'tblTempVendorCDR_20' ) end [2025-02-15 18:28:18] Production.INFO: ProcessCDR(1,14482905,1,1,2) [2025-02-15 18:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482905', 'tblTempUsageDetail_20' ) start [2025-02-15 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482905', 'tblTempUsageDetail_20' ) end [2025-02-15 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:28:23] Production.INFO: ==7466== Releasing lock... [2025-02-15 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:28:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:29:05 [end_date_ymd] => 2025-02-15 18:29:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:29:05' and `end` < '2025-02-15 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-15 18:29:19] Production.INFO: count ==1943 [2025-02-15 18:29:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:29:05 - End Time 2025-02-15 18:29:05 [2025-02-15 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482910', 'tblTempUsageDetail_20' ) start [2025-02-15 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482910', 'tblTempUsageDetail_20' ) end [2025-02-15 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482910', 'tblTempVendorCDR_20' ) start [2025-02-15 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482910', 'tblTempVendorCDR_20' ) end [2025-02-15 18:29:20] Production.INFO: ProcessCDR(1,14482910,1,1,2) [2025-02-15 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482910', 'tblTempUsageDetail_20' ) start [2025-02-15 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482910', 'tblTempUsageDetail_20' ) end [2025-02-15 18:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:29:25] Production.INFO: ==7548== Releasing lock... [2025-02-15 18:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:29:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:30:05 [end_date_ymd] => 2025-02-15 18:30:05 [RateCDR] => 1 ) [2025-02-15 18: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-15 15:30:05' and `end` < '2025-02-15 18: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-15 18:30:20] Production.INFO: count ==1940 [2025-02-15 18:30:21] Production.ERROR: pbx CDR StartTime 2025-02-15 15:30:05 - End Time 2025-02-15 18:30:05 [2025-02-15 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482916', 'tblTempUsageDetail_20' ) start [2025-02-15 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482916', 'tblTempUsageDetail_20' ) end [2025-02-15 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482916', 'tblTempVendorCDR_20' ) start [2025-02-15 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482916', 'tblTempVendorCDR_20' ) end [2025-02-15 18:30:21] Production.INFO: ProcessCDR(1,14482916,1,1,2) [2025-02-15 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482916', 'tblTempUsageDetail_20' ) start [2025-02-15 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482916', 'tblTempUsageDetail_20' ) end [2025-02-15 18:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:30:26] Production.INFO: ==7630== Releasing lock... [2025-02-15 18:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:30:26] Production.INFO: 42.5 MB #Memory Used# [2025-02-15 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:31:05 [end_date_ymd] => 2025-02-15 18:31:05 [RateCDR] => 1 ) [2025-02-15 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:31:05' and `end` < '2025-02-15 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:31:19] Production.INFO: count ==1981 [2025-02-15 18:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:31:05 - End Time 2025-02-15 18:31:05 [2025-02-15 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482921', 'tblTempUsageDetail_20' ) start [2025-02-15 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482921', 'tblTempUsageDetail_20' ) end [2025-02-15 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482921', 'tblTempVendorCDR_20' ) start [2025-02-15 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482921', 'tblTempVendorCDR_20' ) end [2025-02-15 18:31:19] Production.INFO: ProcessCDR(1,14482921,1,1,2) [2025-02-15 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482921', 'tblTempUsageDetail_20' ) start [2025-02-15 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482921', 'tblTempUsageDetail_20' ) end [2025-02-15 18:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:31:24] Production.INFO: ==7712== Releasing lock... [2025-02-15 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:31:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:32:05 [end_date_ymd] => 2025-02-15 18:32:05 [RateCDR] => 1 ) [2025-02-15 18: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-15 15:32:05' and `end` < '2025-02-15 18: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-15 18:32:19] Production.INFO: count ==1983 [2025-02-15 18:32:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:32:05 - End Time 2025-02-15 18:32:05 [2025-02-15 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482926', 'tblTempUsageDetail_20' ) start [2025-02-15 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482926', 'tblTempUsageDetail_20' ) end [2025-02-15 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482926', 'tblTempVendorCDR_20' ) start [2025-02-15 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482926', 'tblTempVendorCDR_20' ) end [2025-02-15 18:32:20] Production.INFO: ProcessCDR(1,14482926,1,1,2) [2025-02-15 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482926', 'tblTempUsageDetail_20' ) start [2025-02-15 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482926', 'tblTempUsageDetail_20' ) end [2025-02-15 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:32:25] Production.INFO: ==7784== Releasing lock... [2025-02-15 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:32:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:33:05 [end_date_ymd] => 2025-02-15 18:33:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:33:05' and `end` < '2025-02-15 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-15 18:33:21] Production.INFO: count ==1983 [2025-02-15 18:33:21] Production.ERROR: pbx CDR StartTime 2025-02-15 15:33:05 - End Time 2025-02-15 18:33:05 [2025-02-15 18:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482931', 'tblTempUsageDetail_20' ) start [2025-02-15 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482931', 'tblTempUsageDetail_20' ) end [2025-02-15 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482931', 'tblTempVendorCDR_20' ) start [2025-02-15 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482931', 'tblTempVendorCDR_20' ) end [2025-02-15 18:33:21] Production.INFO: ProcessCDR(1,14482931,1,1,2) [2025-02-15 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482931', 'tblTempUsageDetail_20' ) start [2025-02-15 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482931', 'tblTempUsageDetail_20' ) end [2025-02-15 18:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:33:26] Production.INFO: ==7857== Releasing lock... [2025-02-15 18:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:33:26] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:34:06 [end_date_ymd] => 2025-02-15 18:34:06 [RateCDR] => 1 ) [2025-02-15 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-15 15:34:06' and `end` < '2025-02-15 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-15 18:34:20] Production.INFO: count ==1984 [2025-02-15 18:34:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:34:06 - End Time 2025-02-15 18:34:06 [2025-02-15 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482936', 'tblTempUsageDetail_20' ) start [2025-02-15 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482936', 'tblTempUsageDetail_20' ) end [2025-02-15 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482936', 'tblTempVendorCDR_20' ) start [2025-02-15 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482936', 'tblTempVendorCDR_20' ) end [2025-02-15 18:34:20] Production.INFO: ProcessCDR(1,14482936,1,1,2) [2025-02-15 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482936', 'tblTempUsageDetail_20' ) start [2025-02-15 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482936', 'tblTempUsageDetail_20' ) end [2025-02-15 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:34:25] Production.INFO: ==7972== Releasing lock... [2025-02-15 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:34:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-15 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:35:05 [end_date_ymd] => 2025-02-15 18:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:35:05' and `end` < '2025-02-15 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-15 18:35:19] Production.INFO: count ==1985 [2025-02-15 18:35:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:35:05 - End Time 2025-02-15 18:35:05 [2025-02-15 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482941', 'tblTempUsageDetail_20' ) start [2025-02-15 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482941', 'tblTempUsageDetail_20' ) end [2025-02-15 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482941', 'tblTempVendorCDR_20' ) start [2025-02-15 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482941', 'tblTempVendorCDR_20' ) end [2025-02-15 18:35:19] Production.INFO: ProcessCDR(1,14482941,1,1,2) [2025-02-15 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482941', 'tblTempUsageDetail_20' ) start [2025-02-15 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482941', 'tblTempUsageDetail_20' ) end [2025-02-15 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:35:24] Production.INFO: ==8053== Releasing lock... [2025-02-15 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:35:24] Production.INFO: 43 MB #Memory Used# [2025-02-15 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:36:05 [end_date_ymd] => 2025-02-15 18:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:36:05' and `end` < '2025-02-15 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-15 18:36:21] Production.INFO: count ==1984 [2025-02-15 18:36:22] Production.ERROR: pbx CDR StartTime 2025-02-15 15:36:05 - End Time 2025-02-15 18:36:05 [2025-02-15 18:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482946', 'tblTempUsageDetail_20' ) start [2025-02-15 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482946', 'tblTempUsageDetail_20' ) end [2025-02-15 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482946', 'tblTempVendorCDR_20' ) start [2025-02-15 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482946', 'tblTempVendorCDR_20' ) end [2025-02-15 18:36:22] Production.INFO: ProcessCDR(1,14482946,1,1,2) [2025-02-15 18:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482946', 'tblTempUsageDetail_20' ) start [2025-02-15 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482946', 'tblTempUsageDetail_20' ) end [2025-02-15 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:36:25] Production.INFO: ==8133== Releasing lock... [2025-02-15 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:36:25] Production.INFO: 43 MB #Memory Used# [2025-02-15 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:37:05 [end_date_ymd] => 2025-02-15 18:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:37:05' and `end` < '2025-02-15 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-15 18:37:19] Production.INFO: count ==1984 [2025-02-15 18:37:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:37:05 - End Time 2025-02-15 18:37:05 [2025-02-15 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482951', 'tblTempUsageDetail_20' ) start [2025-02-15 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482951', 'tblTempUsageDetail_20' ) end [2025-02-15 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482951', 'tblTempVendorCDR_20' ) start [2025-02-15 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482951', 'tblTempVendorCDR_20' ) end [2025-02-15 18:37:20] Production.INFO: ProcessCDR(1,14482951,1,1,2) [2025-02-15 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482951', 'tblTempUsageDetail_20' ) start [2025-02-15 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482951', 'tblTempUsageDetail_20' ) end [2025-02-15 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:37:23] Production.INFO: ==8206== Releasing lock... [2025-02-15 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:37:23] Production.INFO: 43 MB #Memory Used# [2025-02-15 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:38:05 [end_date_ymd] => 2025-02-15 18:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:38:05' and `end` < '2025-02-15 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-15 18:38:18] Production.INFO: count ==1917 [2025-02-15 18:38:18] Production.ERROR: pbx CDR StartTime 2025-02-15 15:38:05 - End Time 2025-02-15 18:38:05 [2025-02-15 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482956', 'tblTempUsageDetail_20' ) start [2025-02-15 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482956', 'tblTempUsageDetail_20' ) end [2025-02-15 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482956', 'tblTempVendorCDR_20' ) start [2025-02-15 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482956', 'tblTempVendorCDR_20' ) end [2025-02-15 18:38:18] Production.INFO: ProcessCDR(1,14482956,1,1,2) [2025-02-15 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482956', 'tblTempUsageDetail_20' ) start [2025-02-15 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482956', 'tblTempUsageDetail_20' ) end [2025-02-15 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:38:23] Production.INFO: ==8282== Releasing lock... [2025-02-15 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:38:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 18:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:39:04 [end_date_ymd] => 2025-02-15 18:39:04 [RateCDR] => 1 ) [2025-02-15 18:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:39:04' and `end` < '2025-02-15 18:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:39:17] Production.INFO: count ==1878 [2025-02-15 18:39:18] Production.ERROR: pbx CDR StartTime 2025-02-15 15:39:04 - End Time 2025-02-15 18:39:04 [2025-02-15 18:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482961', 'tblTempUsageDetail_20' ) start [2025-02-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482961', 'tblTempUsageDetail_20' ) end [2025-02-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482961', 'tblTempVendorCDR_20' ) start [2025-02-15 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482961', 'tblTempVendorCDR_20' ) end [2025-02-15 18:39:18] Production.INFO: ProcessCDR(1,14482961,1,1,2) [2025-02-15 18:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482961', 'tblTempUsageDetail_20' ) start [2025-02-15 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482961', 'tblTempUsageDetail_20' ) end [2025-02-15 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:39:23] Production.INFO: ==8356== Releasing lock... [2025-02-15 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:39:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:40:06 [end_date_ymd] => 2025-02-15 18:40:06 [RateCDR] => 1 ) [2025-02-15 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:40:06' and `end` < '2025-02-15 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:40:21] Production.INFO: count ==1877 [2025-02-15 18:40:21] Production.ERROR: pbx CDR StartTime 2025-02-15 15:40:06 - End Time 2025-02-15 18:40:06 [2025-02-15 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482967', 'tblTempUsageDetail_20' ) start [2025-02-15 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482967', 'tblTempUsageDetail_20' ) end [2025-02-15 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482967', 'tblTempVendorCDR_20' ) start [2025-02-15 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482967', 'tblTempVendorCDR_20' ) end [2025-02-15 18:40:21] Production.INFO: ProcessCDR(1,14482967,1,1,2) [2025-02-15 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482967', 'tblTempUsageDetail_20' ) start [2025-02-15 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482967', 'tblTempUsageDetail_20' ) end [2025-02-15 18:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:40:27] Production.INFO: ==8434== Releasing lock... [2025-02-15 18:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:40:27] Production.INFO: 42 MB #Memory Used# [2025-02-15 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:41:05 [end_date_ymd] => 2025-02-15 18:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:41:05' and `end` < '2025-02-15 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-15 18:41:18] Production.INFO: count ==1806 [2025-02-15 18:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:41:05 - End Time 2025-02-15 18:41:05 [2025-02-15 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482972', 'tblTempUsageDetail_20' ) start [2025-02-15 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482972', 'tblTempUsageDetail_20' ) end [2025-02-15 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482972', 'tblTempVendorCDR_20' ) start [2025-02-15 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482972', 'tblTempVendorCDR_20' ) end [2025-02-15 18:41:19] Production.INFO: ProcessCDR(1,14482972,1,1,2) [2025-02-15 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482972', 'tblTempUsageDetail_20' ) start [2025-02-15 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482972', 'tblTempUsageDetail_20' ) end [2025-02-15 18:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:41:22] Production.INFO: ==8513== Releasing lock... [2025-02-15 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:41:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:42:06 [end_date_ymd] => 2025-02-15 18:42:06 [RateCDR] => 1 ) [2025-02-15 18:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:42:06' and `end` < '2025-02-15 18:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:42:22] Production.INFO: count ==1803 [2025-02-15 18:42:22] Production.ERROR: pbx CDR StartTime 2025-02-15 15:42:06 - End Time 2025-02-15 18:42:06 [2025-02-15 18:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482977', 'tblTempUsageDetail_20' ) start [2025-02-15 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482977', 'tblTempUsageDetail_20' ) end [2025-02-15 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482977', 'tblTempVendorCDR_20' ) start [2025-02-15 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482977', 'tblTempVendorCDR_20' ) end [2025-02-15 18:42:22] Production.INFO: ProcessCDR(1,14482977,1,1,2) [2025-02-15 18:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482977', 'tblTempUsageDetail_20' ) start [2025-02-15 18:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482977', 'tblTempUsageDetail_20' ) end [2025-02-15 18:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:42:27] Production.INFO: ==8597== Releasing lock... [2025-02-15 18:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:42:27] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:43:05 [end_date_ymd] => 2025-02-15 18:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:43:05' and `end` < '2025-02-15 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-15 18:43:19] Production.INFO: count ==1804 [2025-02-15 18:43:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:43:05 - End Time 2025-02-15 18:43:05 [2025-02-15 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482982', 'tblTempUsageDetail_20' ) start [2025-02-15 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482982', 'tblTempUsageDetail_20' ) end [2025-02-15 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482982', 'tblTempVendorCDR_20' ) start [2025-02-15 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482982', 'tblTempVendorCDR_20' ) end [2025-02-15 18:43:19] Production.INFO: ProcessCDR(1,14482982,1,1,2) [2025-02-15 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482982', 'tblTempUsageDetail_20' ) start [2025-02-15 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482982', 'tblTempUsageDetail_20' ) end [2025-02-15 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:43:23] Production.INFO: ==8668== Releasing lock... [2025-02-15 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:43:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:44:05 [end_date_ymd] => 2025-02-15 18:44:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:44:05' and `end` < '2025-02-15 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-15 18:44:19] Production.INFO: count ==1811 [2025-02-15 18:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:44:05 - End Time 2025-02-15 18:44:05 [2025-02-15 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482987', 'tblTempUsageDetail_20' ) start [2025-02-15 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482987', 'tblTempUsageDetail_20' ) end [2025-02-15 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482987', 'tblTempVendorCDR_20' ) start [2025-02-15 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482987', 'tblTempVendorCDR_20' ) end [2025-02-15 18:44:19] Production.INFO: ProcessCDR(1,14482987,1,1,2) [2025-02-15 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482987', 'tblTempUsageDetail_20' ) start [2025-02-15 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482987', 'tblTempUsageDetail_20' ) end [2025-02-15 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:44:24] Production.INFO: ==8742== Releasing lock... [2025-02-15 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:44:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:45:06 [end_date_ymd] => 2025-02-15 18:45:06 [RateCDR] => 1 ) [2025-02-15 18:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:45:06' and `end` < '2025-02-15 18:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:45:19] Production.INFO: count ==1809 [2025-02-15 18:45:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:45:06 - End Time 2025-02-15 18:45:06 [2025-02-15 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482992', 'tblTempUsageDetail_20' ) start [2025-02-15 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482992', 'tblTempUsageDetail_20' ) end [2025-02-15 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482992', 'tblTempVendorCDR_20' ) start [2025-02-15 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482992', 'tblTempVendorCDR_20' ) end [2025-02-15 18:45:19] Production.INFO: ProcessCDR(1,14482992,1,1,2) [2025-02-15 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482992', 'tblTempUsageDetail_20' ) start [2025-02-15 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482992', 'tblTempUsageDetail_20' ) end [2025-02-15 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:45:24] Production.INFO: ==8818== Releasing lock... [2025-02-15 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:45:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:46:05 [end_date_ymd] => 2025-02-15 18:46:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:46:05' and `end` < '2025-02-15 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-15 18:46:19] Production.INFO: count ==1808 [2025-02-15 18:46:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:46:05 - End Time 2025-02-15 18:46:05 [2025-02-15 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482997', 'tblTempUsageDetail_20' ) start [2025-02-15 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14482997', 'tblTempUsageDetail_20' ) end [2025-02-15 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482997', 'tblTempVendorCDR_20' ) start [2025-02-15 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14482997', 'tblTempVendorCDR_20' ) end [2025-02-15 18:46:20] Production.INFO: ProcessCDR(1,14482997,1,1,2) [2025-02-15 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14482997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14482997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14482997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14482997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482997', 'tblTempUsageDetail_20' ) start [2025-02-15 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14482997', 'tblTempUsageDetail_20' ) end [2025-02-15 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:46:24] Production.INFO: ==8893== Releasing lock... [2025-02-15 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:46:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:47:05 [end_date_ymd] => 2025-02-15 18:47:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:47:05' and `end` < '2025-02-15 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-15 18:47:19] Production.INFO: count ==1809 [2025-02-15 18:47:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:47:05 - End Time 2025-02-15 18:47:05 [2025-02-15 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483002', 'tblTempUsageDetail_20' ) start [2025-02-15 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483002', 'tblTempUsageDetail_20' ) end [2025-02-15 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483002', 'tblTempVendorCDR_20' ) start [2025-02-15 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483002', 'tblTempVendorCDR_20' ) end [2025-02-15 18:47:19] Production.INFO: ProcessCDR(1,14483002,1,1,2) [2025-02-15 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483002', 'tblTempUsageDetail_20' ) start [2025-02-15 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483002', 'tblTempUsageDetail_20' ) end [2025-02-15 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:47:24] Production.INFO: ==8966== Releasing lock... [2025-02-15 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:47:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:48:05 [end_date_ymd] => 2025-02-15 18:48:05 [RateCDR] => 1 ) [2025-02-15 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:48:05' and `end` < '2025-02-15 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:48:19] Production.INFO: count ==1806 [2025-02-15 18:48:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:48:05 - End Time 2025-02-15 18:48:05 [2025-02-15 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483007', 'tblTempUsageDetail_20' ) start [2025-02-15 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483007', 'tblTempUsageDetail_20' ) end [2025-02-15 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483007', 'tblTempVendorCDR_20' ) start [2025-02-15 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483007', 'tblTempVendorCDR_20' ) end [2025-02-15 18:48:19] Production.INFO: ProcessCDR(1,14483007,1,1,2) [2025-02-15 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483007', 'tblTempUsageDetail_20' ) start [2025-02-15 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483007', 'tblTempUsageDetail_20' ) end [2025-02-15 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:48:23] Production.INFO: ==9046== Releasing lock... [2025-02-15 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:48:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:49:06 [end_date_ymd] => 2025-02-15 18:49:06 [RateCDR] => 1 ) [2025-02-15 18:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:49:06' and `end` < '2025-02-15 18:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:49:19] Production.INFO: count ==1806 [2025-02-15 18:49:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:49:06 - End Time 2025-02-15 18:49:06 [2025-02-15 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483012', 'tblTempUsageDetail_20' ) start [2025-02-15 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483012', 'tblTempUsageDetail_20' ) end [2025-02-15 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483012', 'tblTempVendorCDR_20' ) start [2025-02-15 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483012', 'tblTempVendorCDR_20' ) end [2025-02-15 18:49:20] Production.INFO: ProcessCDR(1,14483012,1,1,2) [2025-02-15 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483012', 'tblTempUsageDetail_20' ) start [2025-02-15 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483012', 'tblTempUsageDetail_20' ) end [2025-02-15 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:49:24] Production.INFO: ==9162== Releasing lock... [2025-02-15 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:49:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:50:05 [end_date_ymd] => 2025-02-15 18:50:05 [RateCDR] => 1 ) [2025-02-15 18: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-15 15:50:05' and `end` < '2025-02-15 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:50:19] Production.INFO: count ==1797 [2025-02-15 18:50:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:50:05 - End Time 2025-02-15 18:50:05 [2025-02-15 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483018', 'tblTempUsageDetail_20' ) start [2025-02-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483018', 'tblTempUsageDetail_20' ) end [2025-02-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483018', 'tblTempVendorCDR_20' ) start [2025-02-15 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483018', 'tblTempVendorCDR_20' ) end [2025-02-15 18:50:19] Production.INFO: ProcessCDR(1,14483018,1,1,2) [2025-02-15 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483018', 'tblTempUsageDetail_20' ) start [2025-02-15 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483018', 'tblTempUsageDetail_20' ) end [2025-02-15 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:50:24] Production.INFO: ==9237== Releasing lock... [2025-02-15 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:50:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:51:05 [end_date_ymd] => 2025-02-15 18:51:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:51:05' and `end` < '2025-02-15 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-15 18:51:21] Production.INFO: count ==1792 [2025-02-15 18:51:22] Production.ERROR: pbx CDR StartTime 2025-02-15 15:51:05 - End Time 2025-02-15 18:51:05 [2025-02-15 18:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483023', 'tblTempUsageDetail_20' ) start [2025-02-15 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483023', 'tblTempUsageDetail_20' ) end [2025-02-15 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483023', 'tblTempVendorCDR_20' ) start [2025-02-15 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483023', 'tblTempVendorCDR_20' ) end [2025-02-15 18:51:22] Production.INFO: ProcessCDR(1,14483023,1,1,2) [2025-02-15 18:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483023', 'tblTempUsageDetail_20' ) start [2025-02-15 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483023', 'tblTempUsageDetail_20' ) end [2025-02-15 18:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:51:26] Production.INFO: ==9315== Releasing lock... [2025-02-15 18:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:51:26] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:52:05 [end_date_ymd] => 2025-02-15 18:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:52:05' and `end` < '2025-02-15 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-15 18:52:18] Production.INFO: count ==1788 [2025-02-15 18:52:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:52:05 - End Time 2025-02-15 18:52:05 [2025-02-15 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483028', 'tblTempUsageDetail_20' ) start [2025-02-15 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483028', 'tblTempUsageDetail_20' ) end [2025-02-15 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483028', 'tblTempVendorCDR_20' ) start [2025-02-15 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483028', 'tblTempVendorCDR_20' ) end [2025-02-15 18:52:19] Production.INFO: ProcessCDR(1,14483028,1,1,2) [2025-02-15 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483028', 'tblTempUsageDetail_20' ) start [2025-02-15 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483028', 'tblTempUsageDetail_20' ) end [2025-02-15 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:52:23] Production.INFO: ==9392== Releasing lock... [2025-02-15 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:52:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:53:05 [end_date_ymd] => 2025-02-15 18:53:05 [RateCDR] => 1 ) [2025-02-15 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:53:05' and `end` < '2025-02-15 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:53:20] Production.INFO: count ==1785 [2025-02-15 18:53:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:53:05 - End Time 2025-02-15 18:53:05 [2025-02-15 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483033', 'tblTempUsageDetail_20' ) start [2025-02-15 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483033', 'tblTempUsageDetail_20' ) end [2025-02-15 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483033', 'tblTempVendorCDR_20' ) start [2025-02-15 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483033', 'tblTempVendorCDR_20' ) end [2025-02-15 18:53:20] Production.INFO: ProcessCDR(1,14483033,1,1,2) [2025-02-15 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483033', 'tblTempUsageDetail_20' ) start [2025-02-15 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483033', 'tblTempUsageDetail_20' ) end [2025-02-15 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:53:23] Production.INFO: ==9468== Releasing lock... [2025-02-15 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:53:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:54:05 [end_date_ymd] => 2025-02-15 18:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:54:05' and `end` < '2025-02-15 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-15 18:54:18] Production.INFO: count ==1781 [2025-02-15 18:54:18] Production.ERROR: pbx CDR StartTime 2025-02-15 15:54:05 - End Time 2025-02-15 18:54:05 [2025-02-15 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483038', 'tblTempUsageDetail_20' ) start [2025-02-15 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483038', 'tblTempUsageDetail_20' ) end [2025-02-15 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483038', 'tblTempVendorCDR_20' ) start [2025-02-15 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483038', 'tblTempVendorCDR_20' ) end [2025-02-15 18:54:18] Production.INFO: ProcessCDR(1,14483038,1,1,2) [2025-02-15 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483038', 'tblTempUsageDetail_20' ) start [2025-02-15 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483038', 'tblTempUsageDetail_20' ) end [2025-02-15 18:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:54:21] Production.INFO: ==9543== Releasing lock... [2025-02-15 18:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:54:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:55:05 [end_date_ymd] => 2025-02-15 18:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:55:05' and `end` < '2025-02-15 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-15 18:55:19] Production.INFO: count ==1783 [2025-02-15 18:55:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:55:05 - End Time 2025-02-15 18:55:05 [2025-02-15 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483043', 'tblTempUsageDetail_20' ) start [2025-02-15 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483043', 'tblTempUsageDetail_20' ) end [2025-02-15 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483043', 'tblTempVendorCDR_20' ) start [2025-02-15 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483043', 'tblTempVendorCDR_20' ) end [2025-02-15 18:55:20] Production.INFO: ProcessCDR(1,14483043,1,1,2) [2025-02-15 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483043', 'tblTempUsageDetail_20' ) start [2025-02-15 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483043', 'tblTempUsageDetail_20' ) end [2025-02-15 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:55:25] Production.INFO: ==9618== Releasing lock... [2025-02-15 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:55:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:56:05 [end_date_ymd] => 2025-02-15 18:56:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:56:05' and `end` < '2025-02-15 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-15 18:56:19] Production.INFO: count ==1784 [2025-02-15 18:56:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:56:05 - End Time 2025-02-15 18:56:05 [2025-02-15 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483048', 'tblTempUsageDetail_20' ) start [2025-02-15 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483048', 'tblTempUsageDetail_20' ) end [2025-02-15 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483048', 'tblTempVendorCDR_20' ) start [2025-02-15 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483048', 'tblTempVendorCDR_20' ) end [2025-02-15 18:56:20] Production.INFO: ProcessCDR(1,14483048,1,1,2) [2025-02-15 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483048', 'tblTempUsageDetail_20' ) start [2025-02-15 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483048', 'tblTempUsageDetail_20' ) end [2025-02-15 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:56:23] Production.INFO: ==9695== Releasing lock... [2025-02-15 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:56:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:57:06 [end_date_ymd] => 2025-02-15 18:57:06 [RateCDR] => 1 ) [2025-02-15 18:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 15:57:06' and `end` < '2025-02-15 18:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 18:57:19] Production.INFO: count ==1776 [2025-02-15 18:57:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:57:06 - End Time 2025-02-15 18:57:06 [2025-02-15 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483053', 'tblTempUsageDetail_20' ) start [2025-02-15 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483053', 'tblTempUsageDetail_20' ) end [2025-02-15 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483053', 'tblTempVendorCDR_20' ) start [2025-02-15 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483053', 'tblTempVendorCDR_20' ) end [2025-02-15 18:57:19] Production.INFO: ProcessCDR(1,14483053,1,1,2) [2025-02-15 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483053', 'tblTempUsageDetail_20' ) start [2025-02-15 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483053', 'tblTempUsageDetail_20' ) end [2025-02-15 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:57:24] Production.INFO: ==9771== Releasing lock... [2025-02-15 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:57:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:58:05 [end_date_ymd] => 2025-02-15 18:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:58:05' and `end` < '2025-02-15 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-15 18:58:19] Production.INFO: count ==1781 [2025-02-15 18:58:20] Production.ERROR: pbx CDR StartTime 2025-02-15 15:58:05 - End Time 2025-02-15 18:58:05 [2025-02-15 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483058', 'tblTempUsageDetail_20' ) start [2025-02-15 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483058', 'tblTempUsageDetail_20' ) end [2025-02-15 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483058', 'tblTempVendorCDR_20' ) start [2025-02-15 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483058', 'tblTempVendorCDR_20' ) end [2025-02-15 18:58:20] Production.INFO: ProcessCDR(1,14483058,1,1,2) [2025-02-15 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483058', 'tblTempUsageDetail_20' ) start [2025-02-15 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483058', 'tblTempUsageDetail_20' ) end [2025-02-15 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:58:25] Production.INFO: ==9851== Releasing lock... [2025-02-15 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:58:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 15:59:05 [end_date_ymd] => 2025-02-15 18:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 15:59:05' and `end` < '2025-02-15 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-15 18:59:19] Production.INFO: count ==1785 [2025-02-15 18:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 15:59:05 - End Time 2025-02-15 18:59:05 [2025-02-15 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483063', 'tblTempUsageDetail_20' ) start [2025-02-15 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483063', 'tblTempUsageDetail_20' ) end [2025-02-15 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483063', 'tblTempVendorCDR_20' ) start [2025-02-15 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483063', 'tblTempVendorCDR_20' ) end [2025-02-15 18:59:19] Production.INFO: ProcessCDR(1,14483063,1,1,2) [2025-02-15 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483063', 'tblTempUsageDetail_20' ) start [2025-02-15 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483063', 'tblTempUsageDetail_20' ) end [2025-02-15 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 18:59:23] Production.INFO: ==9925== Releasing lock... [2025-02-15 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 18:59:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:00:06 [end_date_ymd] => 2025-02-15 19:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 16:00:06' and `end` < '2025-02-15 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-15 19:00:20] Production.INFO: count ==1790 [2025-02-15 19:00:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:00:06 - End Time 2025-02-15 19:00:06 [2025-02-15 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483069', 'tblTempUsageDetail_20' ) start [2025-02-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483069', 'tblTempUsageDetail_20' ) end [2025-02-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483069', 'tblTempVendorCDR_20' ) start [2025-02-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483069', 'tblTempVendorCDR_20' ) end [2025-02-15 19:00:20] Production.INFO: ProcessCDR(1,14483069,1,1,2) [2025-02-15 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483069', 'tblTempUsageDetail_20' ) start [2025-02-15 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483069', 'tblTempUsageDetail_20' ) end [2025-02-15 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:00:25] Production.INFO: ==10002== Releasing lock... [2025-02-15 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:00:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:01:06 [end_date_ymd] => 2025-02-15 19:01:06 [RateCDR] => 1 ) [2025-02-15 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-15 16:01:06' and `end` < '2025-02-15 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-15 19:01:19] Production.INFO: count ==1813 [2025-02-15 19:01:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:01:06 - End Time 2025-02-15 19:01:06 [2025-02-15 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483074', 'tblTempUsageDetail_20' ) start [2025-02-15 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483074', 'tblTempUsageDetail_20' ) end [2025-02-15 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483074', 'tblTempVendorCDR_20' ) start [2025-02-15 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483074', 'tblTempVendorCDR_20' ) end [2025-02-15 19:01:20] Production.INFO: ProcessCDR(1,14483074,1,1,2) [2025-02-15 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483074', 'tblTempUsageDetail_20' ) start [2025-02-15 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483074', 'tblTempUsageDetail_20' ) end [2025-02-15 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:01:23] Production.INFO: ==10175== Releasing lock... [2025-02-15 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:01:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:02:05 [end_date_ymd] => 2025-02-15 19:02:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:02:05' and `end` < '2025-02-15 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-15 19:02:20] Production.INFO: count ==1829 [2025-02-15 19:02:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:02:05 - End Time 2025-02-15 19:02:05 [2025-02-15 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483079', 'tblTempUsageDetail_20' ) start [2025-02-15 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483079', 'tblTempUsageDetail_20' ) end [2025-02-15 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483079', 'tblTempVendorCDR_20' ) start [2025-02-15 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483079', 'tblTempVendorCDR_20' ) end [2025-02-15 19:02:20] Production.INFO: ProcessCDR(1,14483079,1,1,2) [2025-02-15 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483079', 'tblTempUsageDetail_20' ) start [2025-02-15 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483079', 'tblTempUsageDetail_20' ) end [2025-02-15 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:02:23] Production.INFO: ==10249== Releasing lock... [2025-02-15 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:02:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:03:05 [end_date_ymd] => 2025-02-15 19:03:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:03:05' and `end` < '2025-02-15 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-15 19:03:19] Production.INFO: count ==1837 [2025-02-15 19:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:03:05 - End Time 2025-02-15 19:03:05 [2025-02-15 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483084', 'tblTempUsageDetail_20' ) start [2025-02-15 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483084', 'tblTempUsageDetail_20' ) end [2025-02-15 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483084', 'tblTempVendorCDR_20' ) start [2025-02-15 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483084', 'tblTempVendorCDR_20' ) end [2025-02-15 19:03:19] Production.INFO: ProcessCDR(1,14483084,1,1,2) [2025-02-15 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483084', 'tblTempUsageDetail_20' ) start [2025-02-15 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483084', 'tblTempUsageDetail_20' ) end [2025-02-15 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:03:23] Production.INFO: ==10321== Releasing lock... [2025-02-15 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:03:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:04:05 [end_date_ymd] => 2025-02-15 19:04:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:04:05' and `end` < '2025-02-15 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-15 19:04:18] Production.INFO: count ==1837 [2025-02-15 19:04:18] Production.ERROR: pbx CDR StartTime 2025-02-15 16:04:05 - End Time 2025-02-15 19:04:05 [2025-02-15 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483089', 'tblTempUsageDetail_20' ) start [2025-02-15 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483089', 'tblTempUsageDetail_20' ) end [2025-02-15 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483089', 'tblTempVendorCDR_20' ) start [2025-02-15 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483089', 'tblTempVendorCDR_20' ) end [2025-02-15 19:04:18] Production.INFO: ProcessCDR(1,14483089,1,1,2) [2025-02-15 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483089', 'tblTempUsageDetail_20' ) start [2025-02-15 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483089', 'tblTempUsageDetail_20' ) end [2025-02-15 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:04:22] Production.INFO: ==10396== Releasing lock... [2025-02-15 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:04:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:05:06 [end_date_ymd] => 2025-02-15 19:05:06 [RateCDR] => 1 ) [2025-02-15 19:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:05:06' and `end` < '2025-02-15 19:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:05:27] Production.INFO: count ==1846 [2025-02-15 19:05:28] Production.ERROR: pbx CDR StartTime 2025-02-15 16:05:06 - End Time 2025-02-15 19:05:06 [2025-02-15 19:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483094', 'tblTempUsageDetail_20' ) start [2025-02-15 19:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483094', 'tblTempUsageDetail_20' ) end [2025-02-15 19:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483094', 'tblTempVendorCDR_20' ) start [2025-02-15 19:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483094', 'tblTempVendorCDR_20' ) end [2025-02-15 19:05:28] Production.INFO: ProcessCDR(1,14483094,1,1,2) [2025-02-15 19:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483094', 'tblTempUsageDetail_20' ) start [2025-02-15 19:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483094', 'tblTempUsageDetail_20' ) end [2025-02-15 19:05:31] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:05:31] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:05:31] Production.INFO: ==10583== Releasing lock... [2025-02-15 19:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:05:31] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:06:05 [end_date_ymd] => 2025-02-15 19:06:05 [RateCDR] => 1 ) [2025-02-15 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:06:05' and `end` < '2025-02-15 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:06:26] Production.INFO: count ==1848 [2025-02-15 19:06:26] Production.ERROR: pbx CDR StartTime 2025-02-15 16:06:05 - End Time 2025-02-15 19:06:05 [2025-02-15 19:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483099', 'tblTempUsageDetail_20' ) start [2025-02-15 19:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483099', 'tblTempUsageDetail_20' ) end [2025-02-15 19:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483099', 'tblTempVendorCDR_20' ) start [2025-02-15 19:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483099', 'tblTempVendorCDR_20' ) end [2025-02-15 19:06:26] Production.INFO: ProcessCDR(1,14483099,1,1,2) [2025-02-15 19:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483099', 'tblTempUsageDetail_20' ) start [2025-02-15 19:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483099', 'tblTempUsageDetail_20' ) end [2025-02-15 19:06:30] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:06:31] Production.INFO: ==10662== Releasing lock... [2025-02-15 19:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:06:31] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:07:05 [end_date_ymd] => 2025-02-15 19:07:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:07:05' and `end` < '2025-02-15 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-15 19:07:21] Production.INFO: count ==1845 [2025-02-15 19:07:22] Production.ERROR: pbx CDR StartTime 2025-02-15 16:07:05 - End Time 2025-02-15 19:07:05 [2025-02-15 19:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483104', 'tblTempUsageDetail_20' ) start [2025-02-15 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483104', 'tblTempUsageDetail_20' ) end [2025-02-15 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483104', 'tblTempVendorCDR_20' ) start [2025-02-15 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483104', 'tblTempVendorCDR_20' ) end [2025-02-15 19:07:22] Production.INFO: ProcessCDR(1,14483104,1,1,2) [2025-02-15 19:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483104', 'tblTempUsageDetail_20' ) start [2025-02-15 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483104', 'tblTempUsageDetail_20' ) end [2025-02-15 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:07:25] Production.INFO: ==10747== Releasing lock... [2025-02-15 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:07:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:08:06 [end_date_ymd] => 2025-02-15 19:08:06 [RateCDR] => 1 ) [2025-02-15 19: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-15 16:08:06' and `end` < '2025-02-15 19: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-15 19:08:19] Production.INFO: count ==1843 [2025-02-15 19:08:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:08:06 - End Time 2025-02-15 19:08:06 [2025-02-15 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483109', 'tblTempUsageDetail_20' ) start [2025-02-15 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483109', 'tblTempUsageDetail_20' ) end [2025-02-15 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483109', 'tblTempVendorCDR_20' ) start [2025-02-15 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483109', 'tblTempVendorCDR_20' ) end [2025-02-15 19:08:19] Production.INFO: ProcessCDR(1,14483109,1,1,2) [2025-02-15 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483109', 'tblTempUsageDetail_20' ) start [2025-02-15 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483109', 'tblTempUsageDetail_20' ) end [2025-02-15 19:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:08:22] Production.INFO: ==10898== Releasing lock... [2025-02-15 19:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:08:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:09:05 [end_date_ymd] => 2025-02-15 19:09:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:09:05' and `end` < '2025-02-15 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-15 19:09:18] Production.INFO: count ==1839 [2025-02-15 19:09:18] Production.ERROR: pbx CDR StartTime 2025-02-15 16:09:05 - End Time 2025-02-15 19:09:05 [2025-02-15 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483114', 'tblTempUsageDetail_20' ) start [2025-02-15 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483114', 'tblTempUsageDetail_20' ) end [2025-02-15 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483114', 'tblTempVendorCDR_20' ) start [2025-02-15 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483114', 'tblTempVendorCDR_20' ) end [2025-02-15 19:09:18] Production.INFO: ProcessCDR(1,14483114,1,1,2) [2025-02-15 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483114', 'tblTempUsageDetail_20' ) start [2025-02-15 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483114', 'tblTempUsageDetail_20' ) end [2025-02-15 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:09:22] Production.INFO: ==10970== Releasing lock... [2025-02-15 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:09:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:10:06 [end_date_ymd] => 2025-02-15 19:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 16:10:06' and `end` < '2025-02-15 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-15 19:10:22] Production.INFO: count ==1844 [2025-02-15 19:10:22] Production.ERROR: pbx CDR StartTime 2025-02-15 16:10:06 - End Time 2025-02-15 19:10:06 [2025-02-15 19:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483120', 'tblTempUsageDetail_20' ) start [2025-02-15 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483120', 'tblTempUsageDetail_20' ) end [2025-02-15 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483120', 'tblTempVendorCDR_20' ) start [2025-02-15 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483120', 'tblTempVendorCDR_20' ) end [2025-02-15 19:10:22] Production.INFO: ProcessCDR(1,14483120,1,1,2) [2025-02-15 19:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483120', 'tblTempUsageDetail_20' ) start [2025-02-15 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483120', 'tblTempUsageDetail_20' ) end [2025-02-15 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:10:26] Production.INFO: ==11045== Releasing lock... [2025-02-15 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:10:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:11:05 [end_date_ymd] => 2025-02-15 19:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:11:05' and `end` < '2025-02-15 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-15 19:11:23] Production.INFO: count ==1862 [2025-02-15 19:11:23] Production.ERROR: pbx CDR StartTime 2025-02-15 16:11:05 - End Time 2025-02-15 19:11:05 [2025-02-15 19:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483125', 'tblTempUsageDetail_20' ) start [2025-02-15 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483125', 'tblTempUsageDetail_20' ) end [2025-02-15 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483125', 'tblTempVendorCDR_20' ) start [2025-02-15 19:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483125', 'tblTempVendorCDR_20' ) end [2025-02-15 19:11:23] Production.INFO: ProcessCDR(1,14483125,1,1,2) [2025-02-15 19:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483125', 'tblTempUsageDetail_20' ) start [2025-02-15 19:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483125', 'tblTempUsageDetail_20' ) end [2025-02-15 19:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:11:26] Production.INFO: ==11120== Releasing lock... [2025-02-15 19:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:11:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:12:06 [end_date_ymd] => 2025-02-15 19:12:06 [RateCDR] => 1 ) [2025-02-15 19: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-15 16:12:06' and `end` < '2025-02-15 19: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-15 19:12:19] Production.INFO: count ==1856 [2025-02-15 19:12:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:12:06 - End Time 2025-02-15 19:12:06 [2025-02-15 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483130', 'tblTempUsageDetail_20' ) start [2025-02-15 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483130', 'tblTempUsageDetail_20' ) end [2025-02-15 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483130', 'tblTempVendorCDR_20' ) start [2025-02-15 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483130', 'tblTempVendorCDR_20' ) end [2025-02-15 19:12:19] Production.INFO: ProcessCDR(1,14483130,1,1,2) [2025-02-15 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483130', 'tblTempUsageDetail_20' ) start [2025-02-15 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483130', 'tblTempUsageDetail_20' ) end [2025-02-15 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:12:22] Production.INFO: ==11271== Releasing lock... [2025-02-15 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:12:22] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:13:05 [end_date_ymd] => 2025-02-15 19:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:13:05' and `end` < '2025-02-15 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-15 19:13:21] Production.INFO: count ==1860 [2025-02-15 19:13:21] Production.ERROR: pbx CDR StartTime 2025-02-15 16:13:05 - End Time 2025-02-15 19:13:05 [2025-02-15 19:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483135', 'tblTempUsageDetail_20' ) start [2025-02-15 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483135', 'tblTempUsageDetail_20' ) end [2025-02-15 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483135', 'tblTempVendorCDR_20' ) start [2025-02-15 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483135', 'tblTempVendorCDR_20' ) end [2025-02-15 19:13:21] Production.INFO: ProcessCDR(1,14483135,1,1,2) [2025-02-15 19:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483135', 'tblTempUsageDetail_20' ) start [2025-02-15 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483135', 'tblTempUsageDetail_20' ) end [2025-02-15 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:13:24] Production.INFO: ==11343== Releasing lock... [2025-02-15 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:13:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:14:05 [end_date_ymd] => 2025-02-15 19:14:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:14:05' and `end` < '2025-02-15 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-15 19:14:19] Production.INFO: count ==1859 [2025-02-15 19:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:14:05 - End Time 2025-02-15 19:14:05 [2025-02-15 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483140', 'tblTempUsageDetail_20' ) start [2025-02-15 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483140', 'tblTempUsageDetail_20' ) end [2025-02-15 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483140', 'tblTempVendorCDR_20' ) start [2025-02-15 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483140', 'tblTempVendorCDR_20' ) end [2025-02-15 19:14:19] Production.INFO: ProcessCDR(1,14483140,1,1,2) [2025-02-15 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483140', 'tblTempUsageDetail_20' ) start [2025-02-15 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483140', 'tblTempUsageDetail_20' ) end [2025-02-15 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:14:22] Production.INFO: ==11418== Releasing lock... [2025-02-15 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:14:22] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:15:05 [end_date_ymd] => 2025-02-15 19:15:05 [RateCDR] => 1 ) [2025-02-15 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:15:05' and `end` < '2025-02-15 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:15:20] Production.INFO: count ==1859 [2025-02-15 19:15:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:15:05 - End Time 2025-02-15 19:15:05 [2025-02-15 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483145', 'tblTempUsageDetail_20' ) start [2025-02-15 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483145', 'tblTempUsageDetail_20' ) end [2025-02-15 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483145', 'tblTempVendorCDR_20' ) start [2025-02-15 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483145', 'tblTempVendorCDR_20' ) end [2025-02-15 19:15:20] Production.INFO: ProcessCDR(1,14483145,1,1,2) [2025-02-15 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483145', 'tblTempUsageDetail_20' ) start [2025-02-15 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483145', 'tblTempUsageDetail_20' ) end [2025-02-15 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:15:25] Production.INFO: ==11576== Releasing lock... [2025-02-15 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:15:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:16:05 [end_date_ymd] => 2025-02-15 19:16:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:16:05' and `end` < '2025-02-15 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-15 19:16:19] Production.INFO: count ==1860 [2025-02-15 19:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:16:05 - End Time 2025-02-15 19:16:05 [2025-02-15 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483150', 'tblTempUsageDetail_20' ) start [2025-02-15 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483150', 'tblTempUsageDetail_20' ) end [2025-02-15 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483150', 'tblTempVendorCDR_20' ) start [2025-02-15 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483150', 'tblTempVendorCDR_20' ) end [2025-02-15 19:16:19] Production.INFO: ProcessCDR(1,14483150,1,1,2) [2025-02-15 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483150', 'tblTempUsageDetail_20' ) start [2025-02-15 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483150', 'tblTempUsageDetail_20' ) end [2025-02-15 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:16:24] Production.INFO: ==11646== Releasing lock... [2025-02-15 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:16:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:17:05 [end_date_ymd] => 2025-02-15 19:17:05 [RateCDR] => 1 ) [2025-02-15 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:17:05' and `end` < '2025-02-15 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:17:19] Production.INFO: count ==1863 [2025-02-15 19:17:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:17:05 - End Time 2025-02-15 19:17:05 [2025-02-15 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483155', 'tblTempUsageDetail_20' ) start [2025-02-15 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483155', 'tblTempUsageDetail_20' ) end [2025-02-15 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483155', 'tblTempVendorCDR_20' ) start [2025-02-15 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483155', 'tblTempVendorCDR_20' ) end [2025-02-15 19:17:19] Production.INFO: ProcessCDR(1,14483155,1,1,2) [2025-02-15 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483155', 'tblTempUsageDetail_20' ) start [2025-02-15 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483155', 'tblTempUsageDetail_20' ) end [2025-02-15 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:17:22] Production.INFO: ==11717== Releasing lock... [2025-02-15 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:17:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:18:05 [end_date_ymd] => 2025-02-15 19:18:05 [RateCDR] => 1 ) [2025-02-15 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:18:05' and `end` < '2025-02-15 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:18:20] Production.INFO: count ==1856 [2025-02-15 19:18:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:18:05 - End Time 2025-02-15 19:18:05 [2025-02-15 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483160', 'tblTempUsageDetail_20' ) start [2025-02-15 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483160', 'tblTempUsageDetail_20' ) end [2025-02-15 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483160', 'tblTempVendorCDR_20' ) start [2025-02-15 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483160', 'tblTempVendorCDR_20' ) end [2025-02-15 19:18:20] Production.INFO: ProcessCDR(1,14483160,1,1,2) [2025-02-15 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483160', 'tblTempUsageDetail_20' ) start [2025-02-15 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483160', 'tblTempUsageDetail_20' ) end [2025-02-15 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:18:23] Production.INFO: ==11787== Releasing lock... [2025-02-15 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:18:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:19:05 [end_date_ymd] => 2025-02-15 19:19:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:19:05' and `end` < '2025-02-15 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-15 19:19:21] Production.INFO: count ==1852 [2025-02-15 19:19:21] Production.ERROR: pbx CDR StartTime 2025-02-15 16:19:05 - End Time 2025-02-15 19:19:05 [2025-02-15 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483165', 'tblTempUsageDetail_20' ) start [2025-02-15 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483165', 'tblTempUsageDetail_20' ) end [2025-02-15 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483165', 'tblTempVendorCDR_20' ) start [2025-02-15 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483165', 'tblTempVendorCDR_20' ) end [2025-02-15 19:19:21] Production.INFO: ProcessCDR(1,14483165,1,1,2) [2025-02-15 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483165', 'tblTempUsageDetail_20' ) start [2025-02-15 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483165', 'tblTempUsageDetail_20' ) end [2025-02-15 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:19:24] Production.INFO: ==11861== Releasing lock... [2025-02-15 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:19:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:20:07 [end_date_ymd] => 2025-02-15 19:20:07 [RateCDR] => 1 ) [2025-02-15 19: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-15 16:20:07' and `end` < '2025-02-15 19: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-15 19:20:22] Production.INFO: count ==1854 [2025-02-15 19:20:22] Production.ERROR: pbx CDR StartTime 2025-02-15 16:20:07 - End Time 2025-02-15 19:20:07 [2025-02-15 19:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483171', 'tblTempUsageDetail_20' ) start [2025-02-15 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483171', 'tblTempUsageDetail_20' ) end [2025-02-15 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483171', 'tblTempVendorCDR_20' ) start [2025-02-15 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483171', 'tblTempVendorCDR_20' ) end [2025-02-15 19:20:22] Production.INFO: ProcessCDR(1,14483171,1,1,2) [2025-02-15 19:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483171', 'tblTempUsageDetail_20' ) start [2025-02-15 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483171', 'tblTempUsageDetail_20' ) end [2025-02-15 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:20:25] Production.INFO: ==11979== Releasing lock... [2025-02-15 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:20:25] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:21:04 [end_date_ymd] => 2025-02-15 19:21:04 [RateCDR] => 1 ) [2025-02-15 19: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-15 16:21:04' and `end` < '2025-02-15 19: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-15 19:21:18] Production.INFO: count ==1855 [2025-02-15 19:21:18] Production.ERROR: pbx CDR StartTime 2025-02-15 16:21:04 - End Time 2025-02-15 19:21:04 [2025-02-15 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483176', 'tblTempUsageDetail_20' ) start [2025-02-15 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483176', 'tblTempUsageDetail_20' ) end [2025-02-15 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483176', 'tblTempVendorCDR_20' ) start [2025-02-15 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483176', 'tblTempVendorCDR_20' ) end [2025-02-15 19:21:18] Production.INFO: ProcessCDR(1,14483176,1,1,2) [2025-02-15 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483176', 'tblTempUsageDetail_20' ) start [2025-02-15 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483176', 'tblTempUsageDetail_20' ) end [2025-02-15 19:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:21:21] Production.INFO: ==12052== Releasing lock... [2025-02-15 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:21:21] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:22:05 [end_date_ymd] => 2025-02-15 19:22:05 [RateCDR] => 1 ) [2025-02-15 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:22:05' and `end` < '2025-02-15 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:22:18] Production.INFO: count ==1856 [2025-02-15 19:22:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:22:05 - End Time 2025-02-15 19:22:05 [2025-02-15 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483181', 'tblTempUsageDetail_20' ) start [2025-02-15 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483181', 'tblTempUsageDetail_20' ) end [2025-02-15 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483181', 'tblTempVendorCDR_20' ) start [2025-02-15 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483181', 'tblTempVendorCDR_20' ) end [2025-02-15 19:22:19] Production.INFO: ProcessCDR(1,14483181,1,1,2) [2025-02-15 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483181', 'tblTempUsageDetail_20' ) start [2025-02-15 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483181', 'tblTempUsageDetail_20' ) end [2025-02-15 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:22:23] Production.INFO: ==12124== Releasing lock... [2025-02-15 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:22:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:23:05 [end_date_ymd] => 2025-02-15 19:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:23:05' and `end` < '2025-02-15 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-15 19:23:19] Production.INFO: count ==1851 [2025-02-15 19:23:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:23:05 - End Time 2025-02-15 19:23:05 [2025-02-15 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483186', 'tblTempUsageDetail_20' ) start [2025-02-15 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483186', 'tblTempUsageDetail_20' ) end [2025-02-15 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483186', 'tblTempVendorCDR_20' ) start [2025-02-15 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483186', 'tblTempVendorCDR_20' ) end [2025-02-15 19:23:20] Production.INFO: ProcessCDR(1,14483186,1,1,2) [2025-02-15 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483186', 'tblTempUsageDetail_20' ) start [2025-02-15 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483186', 'tblTempUsageDetail_20' ) end [2025-02-15 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:23:24] Production.INFO: ==12194== Releasing lock... [2025-02-15 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:23:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:24:05 [end_date_ymd] => 2025-02-15 19:24:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:24:05' and `end` < '2025-02-15 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-15 19:24:19] Production.INFO: count ==1848 [2025-02-15 19:24:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:24:05 - End Time 2025-02-15 19:24:05 [2025-02-15 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483191', 'tblTempUsageDetail_20' ) start [2025-02-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483191', 'tblTempUsageDetail_20' ) end [2025-02-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483191', 'tblTempVendorCDR_20' ) start [2025-02-15 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483191', 'tblTempVendorCDR_20' ) end [2025-02-15 19:24:19] Production.INFO: ProcessCDR(1,14483191,1,1,2) [2025-02-15 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483191', 'tblTempUsageDetail_20' ) start [2025-02-15 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483191', 'tblTempUsageDetail_20' ) end [2025-02-15 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:24:24] Production.INFO: ==12270== Releasing lock... [2025-02-15 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:24:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:25:05 [end_date_ymd] => 2025-02-15 19:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:25:05' and `end` < '2025-02-15 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-15 19:25:19] Production.INFO: count ==1844 [2025-02-15 19:25:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:25:05 - End Time 2025-02-15 19:25:05 [2025-02-15 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483196', 'tblTempUsageDetail_20' ) start [2025-02-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483196', 'tblTempUsageDetail_20' ) end [2025-02-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483196', 'tblTempVendorCDR_20' ) start [2025-02-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483196', 'tblTempVendorCDR_20' ) end [2025-02-15 19:25:19] Production.INFO: ProcessCDR(1,14483196,1,1,2) [2025-02-15 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483196', 'tblTempUsageDetail_20' ) start [2025-02-15 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483196', 'tblTempUsageDetail_20' ) end [2025-02-15 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:25:24] Production.INFO: ==12343== Releasing lock... [2025-02-15 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:25:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:26:05 [end_date_ymd] => 2025-02-15 19:26:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:26:05' and `end` < '2025-02-15 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-15 19:26:18] Production.INFO: count ==1852 [2025-02-15 19:26:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:26:05 - End Time 2025-02-15 19:26:05 [2025-02-15 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483201', 'tblTempUsageDetail_20' ) start [2025-02-15 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483201', 'tblTempUsageDetail_20' ) end [2025-02-15 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483201', 'tblTempVendorCDR_20' ) start [2025-02-15 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483201', 'tblTempVendorCDR_20' ) end [2025-02-15 19:26:19] Production.INFO: ProcessCDR(1,14483201,1,1,2) [2025-02-15 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483201', 'tblTempUsageDetail_20' ) start [2025-02-15 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483201', 'tblTempUsageDetail_20' ) end [2025-02-15 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:26:24] Production.INFO: ==12417== Releasing lock... [2025-02-15 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:26:24] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:27:05 [end_date_ymd] => 2025-02-15 19:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:27:05' and `end` < '2025-02-15 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-15 19:27:18] Production.INFO: count ==1850 [2025-02-15 19:27:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:27:05 - End Time 2025-02-15 19:27:05 [2025-02-15 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483206', 'tblTempUsageDetail_20' ) start [2025-02-15 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483206', 'tblTempUsageDetail_20' ) end [2025-02-15 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483206', 'tblTempVendorCDR_20' ) start [2025-02-15 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483206', 'tblTempVendorCDR_20' ) end [2025-02-15 19:27:19] Production.INFO: ProcessCDR(1,14483206,1,1,2) [2025-02-15 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483206', 'tblTempUsageDetail_20' ) start [2025-02-15 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483206', 'tblTempUsageDetail_20' ) end [2025-02-15 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:27:22] Production.INFO: ==12489== Releasing lock... [2025-02-15 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:27:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-15 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:28:05 [end_date_ymd] => 2025-02-15 19:28:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:28:05' and `end` < '2025-02-15 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-15 19:28:19] Production.INFO: count ==1851 [2025-02-15 19:28:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:28:05 - End Time 2025-02-15 19:28:05 [2025-02-15 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483211', 'tblTempUsageDetail_20' ) start [2025-02-15 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483211', 'tblTempUsageDetail_20' ) end [2025-02-15 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483211', 'tblTempVendorCDR_20' ) start [2025-02-15 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483211', 'tblTempVendorCDR_20' ) end [2025-02-15 19:28:20] Production.INFO: ProcessCDR(1,14483211,1,1,2) [2025-02-15 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483211', 'tblTempUsageDetail_20' ) start [2025-02-15 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483211', 'tblTempUsageDetail_20' ) end [2025-02-15 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:28:23] Production.INFO: ==12566== Releasing lock... [2025-02-15 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:28:23] Production.INFO: 42 MB #Memory Used# [2025-02-15 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:29:06 [end_date_ymd] => 2025-02-15 19:29:06 [RateCDR] => 1 ) [2025-02-15 19: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-15 16:29:06' and `end` < '2025-02-15 19: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-15 19:29:20] Production.INFO: count ==1834 [2025-02-15 19:29:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:29:06 - End Time 2025-02-15 19:29:06 [2025-02-15 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483216', 'tblTempUsageDetail_20' ) start [2025-02-15 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483216', 'tblTempUsageDetail_20' ) end [2025-02-15 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483216', 'tblTempVendorCDR_20' ) start [2025-02-15 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483216', 'tblTempVendorCDR_20' ) end [2025-02-15 19:29:20] Production.INFO: ProcessCDR(1,14483216,1,1,2) [2025-02-15 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483216', 'tblTempUsageDetail_20' ) start [2025-02-15 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483216', 'tblTempUsageDetail_20' ) end [2025-02-15 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:29:23] Production.INFO: ==12642== Releasing lock... [2025-02-15 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:29:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-15 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:30:06 [end_date_ymd] => 2025-02-15 19:30:06 [RateCDR] => 1 ) [2025-02-15 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:30:06' and `end` < '2025-02-15 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:30:23] Production.INFO: count ==1834 [2025-02-15 19:30:24] Production.ERROR: pbx CDR StartTime 2025-02-15 16:30:06 - End Time 2025-02-15 19:30:06 [2025-02-15 19:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483222', 'tblTempUsageDetail_20' ) start [2025-02-15 19:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483222', 'tblTempUsageDetail_20' ) end [2025-02-15 19:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483222', 'tblTempVendorCDR_20' ) start [2025-02-15 19:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483222', 'tblTempVendorCDR_20' ) end [2025-02-15 19:30:24] Production.INFO: ProcessCDR(1,14483222,1,1,2) [2025-02-15 19:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483222', 'tblTempUsageDetail_20' ) start [2025-02-15 19:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483222', 'tblTempUsageDetail_20' ) end [2025-02-15 19:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:30:27] Production.INFO: ==12721== Releasing lock... [2025-02-15 19:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:30:27] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:31:05 [end_date_ymd] => 2025-02-15 19:31:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:31:05' and `end` < '2025-02-15 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-15 19:31:19] Production.INFO: count ==1807 [2025-02-15 19:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:31:05 - End Time 2025-02-15 19:31:05 [2025-02-15 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483227', 'tblTempUsageDetail_20' ) start [2025-02-15 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483227', 'tblTempUsageDetail_20' ) end [2025-02-15 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483227', 'tblTempVendorCDR_20' ) start [2025-02-15 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483227', 'tblTempVendorCDR_20' ) end [2025-02-15 19:31:19] Production.INFO: ProcessCDR(1,14483227,1,1,2) [2025-02-15 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483227', 'tblTempUsageDetail_20' ) start [2025-02-15 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483227', 'tblTempUsageDetail_20' ) end [2025-02-15 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:31:22] Production.INFO: ==12797== Releasing lock... [2025-02-15 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:31:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:32:06 [end_date_ymd] => 2025-02-15 19:32:06 [RateCDR] => 1 ) [2025-02-15 19:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:32:06' and `end` < '2025-02-15 19:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:32:21] Production.INFO: count ==1805 [2025-02-15 19:32:21] Production.ERROR: pbx CDR StartTime 2025-02-15 16:32:06 - End Time 2025-02-15 19:32:06 [2025-02-15 19:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483232', 'tblTempUsageDetail_20' ) start [2025-02-15 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483232', 'tblTempUsageDetail_20' ) end [2025-02-15 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483232', 'tblTempVendorCDR_20' ) start [2025-02-15 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483232', 'tblTempVendorCDR_20' ) end [2025-02-15 19:32:21] Production.INFO: ProcessCDR(1,14483232,1,1,2) [2025-02-15 19:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483232', 'tblTempUsageDetail_20' ) start [2025-02-15 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483232', 'tblTempUsageDetail_20' ) end [2025-02-15 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:32:24] Production.INFO: ==12872== Releasing lock... [2025-02-15 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:32:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-15 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:33:04 [end_date_ymd] => 2025-02-15 19:33:04 [RateCDR] => 1 ) [2025-02-15 19: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-15 16:33:04' and `end` < '2025-02-15 19: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-15 19:33:18] Production.INFO: count ==1801 [2025-02-15 19:33:18] Production.ERROR: pbx CDR StartTime 2025-02-15 16:33:04 - End Time 2025-02-15 19:33:04 [2025-02-15 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483237', 'tblTempUsageDetail_20' ) start [2025-02-15 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483237', 'tblTempUsageDetail_20' ) end [2025-02-15 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483237', 'tblTempVendorCDR_20' ) start [2025-02-15 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483237', 'tblTempVendorCDR_20' ) end [2025-02-15 19:33:18] Production.INFO: ProcessCDR(1,14483237,1,1,2) [2025-02-15 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483237', 'tblTempUsageDetail_20' ) start [2025-02-15 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483237', 'tblTempUsageDetail_20' ) end [2025-02-15 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:33:21] Production.INFO: ==12945== Releasing lock... [2025-02-15 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:33:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:34:05 [end_date_ymd] => 2025-02-15 19:34:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:34:05' and `end` < '2025-02-15 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-15 19:34:19] Production.INFO: count ==1799 [2025-02-15 19:34:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:34:05 - End Time 2025-02-15 19:34:05 [2025-02-15 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483242', 'tblTempUsageDetail_20' ) start [2025-02-15 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483242', 'tblTempUsageDetail_20' ) end [2025-02-15 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483242', 'tblTempVendorCDR_20' ) start [2025-02-15 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483242', 'tblTempVendorCDR_20' ) end [2025-02-15 19:34:19] Production.INFO: ProcessCDR(1,14483242,1,1,2) [2025-02-15 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483242', 'tblTempUsageDetail_20' ) start [2025-02-15 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483242', 'tblTempUsageDetail_20' ) end [2025-02-15 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:34:22] Production.INFO: ==13027== Releasing lock... [2025-02-15 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:34:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:35:05 [end_date_ymd] => 2025-02-15 19:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:35:05' and `end` < '2025-02-15 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-15 19:35:20] Production.INFO: count ==1802 [2025-02-15 19:35:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:35:05 - End Time 2025-02-15 19:35:05 [2025-02-15 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483247', 'tblTempUsageDetail_20' ) start [2025-02-15 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483247', 'tblTempUsageDetail_20' ) end [2025-02-15 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483247', 'tblTempVendorCDR_20' ) start [2025-02-15 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483247', 'tblTempVendorCDR_20' ) end [2025-02-15 19:35:20] Production.INFO: ProcessCDR(1,14483247,1,1,2) [2025-02-15 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483247', 'tblTempUsageDetail_20' ) start [2025-02-15 19:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483247', 'tblTempUsageDetail_20' ) end [2025-02-15 19:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:35:25] Production.INFO: ==13102== Releasing lock... [2025-02-15 19:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:35:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:36:05 [end_date_ymd] => 2025-02-15 19:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:36:05' and `end` < '2025-02-15 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-15 19:36:18] Production.INFO: count ==1802 [2025-02-15 19:36:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:36:05 - End Time 2025-02-15 19:36:05 [2025-02-15 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483252', 'tblTempUsageDetail_20' ) start [2025-02-15 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483252', 'tblTempUsageDetail_20' ) end [2025-02-15 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483252', 'tblTempVendorCDR_20' ) start [2025-02-15 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483252', 'tblTempVendorCDR_20' ) end [2025-02-15 19:36:19] Production.INFO: ProcessCDR(1,14483252,1,1,2) [2025-02-15 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483252', 'tblTempUsageDetail_20' ) start [2025-02-15 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483252', 'tblTempUsageDetail_20' ) end [2025-02-15 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:36:22] Production.INFO: ==13215== Releasing lock... [2025-02-15 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:36:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:37:05 [end_date_ymd] => 2025-02-15 19:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:37:05' and `end` < '2025-02-15 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-15 19:37:18] Production.INFO: count ==1790 [2025-02-15 19:37:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:37:05 - End Time 2025-02-15 19:37:05 [2025-02-15 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483257', 'tblTempUsageDetail_20' ) start [2025-02-15 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483257', 'tblTempUsageDetail_20' ) end [2025-02-15 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483257', 'tblTempVendorCDR_20' ) start [2025-02-15 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483257', 'tblTempVendorCDR_20' ) end [2025-02-15 19:37:19] Production.INFO: ProcessCDR(1,14483257,1,1,2) [2025-02-15 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483257', 'tblTempUsageDetail_20' ) start [2025-02-15 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483257', 'tblTempUsageDetail_20' ) end [2025-02-15 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:37:22] Production.INFO: ==13286== Releasing lock... [2025-02-15 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:37:22] Production.INFO: 41 MB #Memory Used# [2025-02-15 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:38:05 [end_date_ymd] => 2025-02-15 19:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:38:05' and `end` < '2025-02-15 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:38:21] Production.INFO: count ==1788 [2025-02-15 19:38:21] Production.ERROR: pbx CDR StartTime 2025-02-15 16:38:05 - End Time 2025-02-15 19:38:05 [2025-02-15 19:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483262', 'tblTempUsageDetail_20' ) start [2025-02-15 19:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483262', 'tblTempUsageDetail_20' ) end [2025-02-15 19:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483262', 'tblTempVendorCDR_20' ) start [2025-02-15 19:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483262', 'tblTempVendorCDR_20' ) end [2025-02-15 19:38:22] Production.INFO: ProcessCDR(1,14483262,1,1,2) [2025-02-15 19:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483262', 'tblTempUsageDetail_20' ) start [2025-02-15 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483262', 'tblTempUsageDetail_20' ) end [2025-02-15 19:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:38:25] Production.INFO: ==13362== Releasing lock... [2025-02-15 19:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:38:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:39:06 [end_date_ymd] => 2025-02-15 19:39:06 [RateCDR] => 1 ) [2025-02-15 19:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:39:06' and `end` < '2025-02-15 19: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-15 19:39:19] Production.INFO: count ==1786 [2025-02-15 19:39:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:39:06 - End Time 2025-02-15 19:39:06 [2025-02-15 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483267', 'tblTempUsageDetail_20' ) start [2025-02-15 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483267', 'tblTempUsageDetail_20' ) end [2025-02-15 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483267', 'tblTempVendorCDR_20' ) start [2025-02-15 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483267', 'tblTempVendorCDR_20' ) end [2025-02-15 19:39:19] Production.INFO: ProcessCDR(1,14483267,1,1,2) [2025-02-15 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483267', 'tblTempUsageDetail_20' ) start [2025-02-15 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483267', 'tblTempUsageDetail_20' ) end [2025-02-15 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:39:22] Production.INFO: ==13437== Releasing lock... [2025-02-15 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:39:22] Production.INFO: 41 MB #Memory Used# [2025-02-15 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:40:06 [end_date_ymd] => 2025-02-15 19:40:06 [RateCDR] => 1 ) [2025-02-15 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:40:06' and `end` < '2025-02-15 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:40:19] Production.INFO: count ==1786 [2025-02-15 19:40:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:40:06 - End Time 2025-02-15 19:40:06 [2025-02-15 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483273', 'tblTempUsageDetail_20' ) start [2025-02-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483273', 'tblTempUsageDetail_20' ) end [2025-02-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483273', 'tblTempVendorCDR_20' ) start [2025-02-15 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483273', 'tblTempVendorCDR_20' ) end [2025-02-15 19:40:19] Production.INFO: ProcessCDR(1,14483273,1,1,2) [2025-02-15 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483273', 'tblTempUsageDetail_20' ) start [2025-02-15 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483273', 'tblTempUsageDetail_20' ) end [2025-02-15 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:40:23] Production.INFO: ==13513== Releasing lock... [2025-02-15 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:40:23] Production.INFO: 41 MB #Memory Used# [2025-02-15 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:41:05 [end_date_ymd] => 2025-02-15 19:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:41:05' and `end` < '2025-02-15 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-15 19:41:19] Production.INFO: count ==1802 [2025-02-15 19:41:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:41:05 - End Time 2025-02-15 19:41:05 [2025-02-15 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483278', 'tblTempUsageDetail_20' ) start [2025-02-15 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483278', 'tblTempUsageDetail_20' ) end [2025-02-15 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483278', 'tblTempVendorCDR_20' ) start [2025-02-15 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483278', 'tblTempVendorCDR_20' ) end [2025-02-15 19:41:20] Production.INFO: ProcessCDR(1,14483278,1,1,2) [2025-02-15 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483278', 'tblTempUsageDetail_20' ) start [2025-02-15 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483278', 'tblTempUsageDetail_20' ) end [2025-02-15 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:41:25] Production.INFO: ==13599== Releasing lock... [2025-02-15 19:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:41:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:42:05 [end_date_ymd] => 2025-02-15 19:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:42:05' and `end` < '2025-02-15 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:42:19] Production.INFO: count ==1795 [2025-02-15 19:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:42:05 - End Time 2025-02-15 19:42:05 [2025-02-15 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483283', 'tblTempUsageDetail_20' ) start [2025-02-15 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483283', 'tblTempUsageDetail_20' ) end [2025-02-15 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483283', 'tblTempVendorCDR_20' ) start [2025-02-15 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483283', 'tblTempVendorCDR_20' ) end [2025-02-15 19:42:20] Production.INFO: ProcessCDR(1,14483283,1,1,2) [2025-02-15 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483283', 'tblTempUsageDetail_20' ) start [2025-02-15 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483283', 'tblTempUsageDetail_20' ) end [2025-02-15 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:42:23] Production.INFO: ==13674== Releasing lock... [2025-02-15 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:42:23] Production.INFO: 41 MB #Memory Used# [2025-02-15 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:43:06 [end_date_ymd] => 2025-02-15 19:43:06 [RateCDR] => 1 ) [2025-02-15 19:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:43:06' and `end` < '2025-02-15 19:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:43:19] Production.INFO: count ==1794 [2025-02-15 19:43:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:43:06 - End Time 2025-02-15 19:43:06 [2025-02-15 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483288', 'tblTempUsageDetail_20' ) start [2025-02-15 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483288', 'tblTempUsageDetail_20' ) end [2025-02-15 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483288', 'tblTempVendorCDR_20' ) start [2025-02-15 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483288', 'tblTempVendorCDR_20' ) end [2025-02-15 19:43:19] Production.INFO: ProcessCDR(1,14483288,1,1,2) [2025-02-15 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483288', 'tblTempUsageDetail_20' ) start [2025-02-15 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483288', 'tblTempUsageDetail_20' ) end [2025-02-15 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:43:23] Production.INFO: ==13748== Releasing lock... [2025-02-15 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:43:23] Production.INFO: 41 MB #Memory Used# [2025-02-15 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:44:05 [end_date_ymd] => 2025-02-15 19:44:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:44:05' and `end` < '2025-02-15 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-15 19:44:19] Production.INFO: count ==1784 [2025-02-15 19:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:44:05 - End Time 2025-02-15 19:44:05 [2025-02-15 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483293', 'tblTempUsageDetail_20' ) start [2025-02-15 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483293', 'tblTempUsageDetail_20' ) end [2025-02-15 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483293', 'tblTempVendorCDR_20' ) start [2025-02-15 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483293', 'tblTempVendorCDR_20' ) end [2025-02-15 19:44:19] Production.INFO: ProcessCDR(1,14483293,1,1,2) [2025-02-15 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483293', 'tblTempUsageDetail_20' ) start [2025-02-15 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483293', 'tblTempUsageDetail_20' ) end [2025-02-15 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:44:22] Production.INFO: ==13820== Releasing lock... [2025-02-15 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:44:22] Production.INFO: 41 MB #Memory Used# [2025-02-15 19:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:45:06 [end_date_ymd] => 2025-02-15 19:45:06 [RateCDR] => 1 ) [2025-02-15 19:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:45:06' and `end` < '2025-02-15 19: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-15 19:45:20] Production.INFO: count ==1773 [2025-02-15 19:45:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:45:06 - End Time 2025-02-15 19:45:06 [2025-02-15 19:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483298', 'tblTempUsageDetail_20' ) start [2025-02-15 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483298', 'tblTempUsageDetail_20' ) end [2025-02-15 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483298', 'tblTempVendorCDR_20' ) start [2025-02-15 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483298', 'tblTempVendorCDR_20' ) end [2025-02-15 19:45:20] Production.INFO: ProcessCDR(1,14483298,1,1,2) [2025-02-15 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483298', 'tblTempUsageDetail_20' ) start [2025-02-15 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483298', 'tblTempUsageDetail_20' ) end [2025-02-15 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:45:24] Production.INFO: ==13894== Releasing lock... [2025-02-15 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:45:24] Production.INFO: 41 MB #Memory Used# [2025-02-15 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:46:06 [end_date_ymd] => 2025-02-15 19:46:06 [RateCDR] => 1 ) [2025-02-15 19:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:46:06' and `end` < '2025-02-15 19:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:46:19] Production.INFO: count ==1772 [2025-02-15 19:46:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:46:06 - End Time 2025-02-15 19:46:06 [2025-02-15 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483303', 'tblTempUsageDetail_20' ) start [2025-02-15 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483303', 'tblTempUsageDetail_20' ) end [2025-02-15 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483303', 'tblTempVendorCDR_20' ) start [2025-02-15 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483303', 'tblTempVendorCDR_20' ) end [2025-02-15 19:46:19] Production.INFO: ProcessCDR(1,14483303,1,1,2) [2025-02-15 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483303', 'tblTempUsageDetail_20' ) start [2025-02-15 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483303', 'tblTempUsageDetail_20' ) end [2025-02-15 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:46:24] Production.INFO: ==13967== Releasing lock... [2025-02-15 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:46:24] Production.INFO: 41 MB #Memory Used# [2025-02-15 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:47:05 [end_date_ymd] => 2025-02-15 19:47:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:47:05' and `end` < '2025-02-15 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-15 19:47:21] Production.INFO: count ==1768 [2025-02-15 19:47:21] Production.ERROR: pbx CDR StartTime 2025-02-15 16:47:05 - End Time 2025-02-15 19:47:05 [2025-02-15 19:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483308', 'tblTempUsageDetail_20' ) start [2025-02-15 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483308', 'tblTempUsageDetail_20' ) end [2025-02-15 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483308', 'tblTempVendorCDR_20' ) start [2025-02-15 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483308', 'tblTempVendorCDR_20' ) end [2025-02-15 19:47:21] Production.INFO: ProcessCDR(1,14483308,1,1,2) [2025-02-15 19:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483308', 'tblTempUsageDetail_20' ) start [2025-02-15 19:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483308', 'tblTempUsageDetail_20' ) end [2025-02-15 19:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:47:26] Production.INFO: ==14042== Releasing lock... [2025-02-15 19:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:47:26] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:48:05 [end_date_ymd] => 2025-02-15 19:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:48:05' and `end` < '2025-02-15 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-15 19:48:19] Production.INFO: count ==1770 [2025-02-15 19:48:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:48:05 - End Time 2025-02-15 19:48:05 [2025-02-15 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483313', 'tblTempUsageDetail_20' ) start [2025-02-15 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483313', 'tblTempUsageDetail_20' ) end [2025-02-15 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483313', 'tblTempVendorCDR_20' ) start [2025-02-15 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483313', 'tblTempVendorCDR_20' ) end [2025-02-15 19:48:20] Production.INFO: ProcessCDR(1,14483313,1,1,2) [2025-02-15 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483313', 'tblTempUsageDetail_20' ) start [2025-02-15 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483313', 'tblTempUsageDetail_20' ) end [2025-02-15 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:48:24] Production.INFO: ==14116== Releasing lock... [2025-02-15 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:48:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:49:05 [end_date_ymd] => 2025-02-15 19:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:49:05' and `end` < '2025-02-15 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-15 19:49:20] Production.INFO: count ==1768 [2025-02-15 19:49:21] Production.ERROR: pbx CDR StartTime 2025-02-15 16:49:05 - End Time 2025-02-15 19:49:05 [2025-02-15 19:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483318', 'tblTempUsageDetail_20' ) start [2025-02-15 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483318', 'tblTempUsageDetail_20' ) end [2025-02-15 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483318', 'tblTempVendorCDR_20' ) start [2025-02-15 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483318', 'tblTempVendorCDR_20' ) end [2025-02-15 19:49:21] Production.INFO: ProcessCDR(1,14483318,1,1,2) [2025-02-15 19:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483318', 'tblTempUsageDetail_20' ) start [2025-02-15 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483318', 'tblTempUsageDetail_20' ) end [2025-02-15 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:49:24] Production.INFO: ==14191== Releasing lock... [2025-02-15 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:49:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:50:06 [end_date_ymd] => 2025-02-15 19:50:06 [RateCDR] => 1 ) [2025-02-15 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-15 16:50:06' and `end` < '2025-02-15 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-15 19:50:19] Production.INFO: count ==1761 [2025-02-15 19:50:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:50:06 - End Time 2025-02-15 19:50:06 [2025-02-15 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483324', 'tblTempUsageDetail_20' ) start [2025-02-15 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483324', 'tblTempUsageDetail_20' ) end [2025-02-15 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483324', 'tblTempVendorCDR_20' ) start [2025-02-15 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483324', 'tblTempVendorCDR_20' ) end [2025-02-15 19:50:20] Production.INFO: ProcessCDR(1,14483324,1,1,2) [2025-02-15 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483324', 'tblTempUsageDetail_20' ) start [2025-02-15 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483324', 'tblTempUsageDetail_20' ) end [2025-02-15 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:50:24] Production.INFO: ==14268== Releasing lock... [2025-02-15 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:50:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:51:05 [end_date_ymd] => 2025-02-15 19:51:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:51:05' and `end` < '2025-02-15 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-15 19:51:20] Production.INFO: count ==1751 [2025-02-15 19:51:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:51:05 - End Time 2025-02-15 19:51:05 [2025-02-15 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483329', 'tblTempUsageDetail_20' ) start [2025-02-15 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483329', 'tblTempUsageDetail_20' ) end [2025-02-15 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483329', 'tblTempVendorCDR_20' ) start [2025-02-15 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483329', 'tblTempVendorCDR_20' ) end [2025-02-15 19:51:20] Production.INFO: ProcessCDR(1,14483329,1,1,2) [2025-02-15 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483329', 'tblTempUsageDetail_20' ) start [2025-02-15 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483329', 'tblTempUsageDetail_20' ) end [2025-02-15 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:51:23] Production.INFO: ==14385== Releasing lock... [2025-02-15 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:51:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:52:05 [end_date_ymd] => 2025-02-15 19:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:52:05' and `end` < '2025-02-15 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-15 19:52:18] Production.INFO: count ==1755 [2025-02-15 19:52:18] Production.ERROR: pbx CDR StartTime 2025-02-15 16:52:05 - End Time 2025-02-15 19:52:05 [2025-02-15 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483334', 'tblTempUsageDetail_20' ) start [2025-02-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483334', 'tblTempUsageDetail_20' ) end [2025-02-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483334', 'tblTempVendorCDR_20' ) start [2025-02-15 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483334', 'tblTempVendorCDR_20' ) end [2025-02-15 19:52:18] Production.INFO: ProcessCDR(1,14483334,1,1,2) [2025-02-15 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483334', 'tblTempUsageDetail_20' ) start [2025-02-15 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483334', 'tblTempUsageDetail_20' ) end [2025-02-15 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:52:22] Production.INFO: ==14454== Releasing lock... [2025-02-15 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:52:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:53:05 [end_date_ymd] => 2025-02-15 19:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:53:05' and `end` < '2025-02-15 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-15 19:53:18] Production.INFO: count ==1759 [2025-02-15 19:53:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:53:05 - End Time 2025-02-15 19:53:05 [2025-02-15 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483339', 'tblTempUsageDetail_20' ) start [2025-02-15 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483339', 'tblTempUsageDetail_20' ) end [2025-02-15 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483339', 'tblTempVendorCDR_20' ) start [2025-02-15 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483339', 'tblTempVendorCDR_20' ) end [2025-02-15 19:53:19] Production.INFO: ProcessCDR(1,14483339,1,1,2) [2025-02-15 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483339', 'tblTempUsageDetail_20' ) start [2025-02-15 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483339', 'tblTempUsageDetail_20' ) end [2025-02-15 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:53:23] Production.INFO: ==14530== Releasing lock... [2025-02-15 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:53:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:54:06 [end_date_ymd] => 2025-02-15 19:54:06 [RateCDR] => 1 ) [2025-02-15 19:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:54:06' and `end` < '2025-02-15 19:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:54:19] Production.INFO: count ==1754 [2025-02-15 19:54:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:54:06 - End Time 2025-02-15 19:54:06 [2025-02-15 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483344', 'tblTempUsageDetail_20' ) start [2025-02-15 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483344', 'tblTempUsageDetail_20' ) end [2025-02-15 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483344', 'tblTempVendorCDR_20' ) start [2025-02-15 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483344', 'tblTempVendorCDR_20' ) end [2025-02-15 19:54:19] Production.INFO: ProcessCDR(1,14483344,1,1,2) [2025-02-15 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483344', 'tblTempUsageDetail_20' ) start [2025-02-15 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483344', 'tblTempUsageDetail_20' ) end [2025-02-15 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:54:22] Production.INFO: ==14611== Releasing lock... [2025-02-15 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:54:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:55:05 [end_date_ymd] => 2025-02-15 19:55:05 [RateCDR] => 1 ) [2025-02-15 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:55:05' and `end` < '2025-02-15 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 19:55:18] Production.INFO: count ==1750 [2025-02-15 19:55:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:55:05 - End Time 2025-02-15 19:55:05 [2025-02-15 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483349', 'tblTempUsageDetail_20' ) start [2025-02-15 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483349', 'tblTempUsageDetail_20' ) end [2025-02-15 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483349', 'tblTempVendorCDR_20' ) start [2025-02-15 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483349', 'tblTempVendorCDR_20' ) end [2025-02-15 19:55:19] Production.INFO: ProcessCDR(1,14483349,1,1,2) [2025-02-15 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483349', 'tblTempUsageDetail_20' ) start [2025-02-15 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483349', 'tblTempUsageDetail_20' ) end [2025-02-15 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:55:22] Production.INFO: ==14686== Releasing lock... [2025-02-15 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:55:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:56:05 [end_date_ymd] => 2025-02-15 19:56:05 [RateCDR] => 1 ) [2025-02-15 19:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 16:56:05' and `end` < '2025-02-15 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-15 19:56:20] Production.INFO: count ==1736 [2025-02-15 19:56:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:56:05 - End Time 2025-02-15 19:56:05 [2025-02-15 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483354', 'tblTempUsageDetail_20' ) start [2025-02-15 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483354', 'tblTempUsageDetail_20' ) end [2025-02-15 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483354', 'tblTempVendorCDR_20' ) start [2025-02-15 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483354', 'tblTempVendorCDR_20' ) end [2025-02-15 19:56:20] Production.INFO: ProcessCDR(1,14483354,1,1,2) [2025-02-15 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483354', 'tblTempUsageDetail_20' ) start [2025-02-15 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483354', 'tblTempUsageDetail_20' ) end [2025-02-15 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:56:23] Production.INFO: ==14762== Releasing lock... [2025-02-15 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:56:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:57:05 [end_date_ymd] => 2025-02-15 19:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:57:05' and `end` < '2025-02-15 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-15 19:57:18] Production.INFO: count ==1738 [2025-02-15 19:57:18] Production.ERROR: pbx CDR StartTime 2025-02-15 16:57:05 - End Time 2025-02-15 19:57:05 [2025-02-15 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483359', 'tblTempUsageDetail_20' ) start [2025-02-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483359', 'tblTempUsageDetail_20' ) end [2025-02-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483359', 'tblTempVendorCDR_20' ) start [2025-02-15 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483359', 'tblTempVendorCDR_20' ) end [2025-02-15 19:57:18] Production.INFO: ProcessCDR(1,14483359,1,1,2) [2025-02-15 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483359', 'tblTempUsageDetail_20' ) start [2025-02-15 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483359', 'tblTempUsageDetail_20' ) end [2025-02-15 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:57:21] Production.INFO: ==14834== Releasing lock... [2025-02-15 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:57:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:58:06 [end_date_ymd] => 2025-02-15 19:58:06 [RateCDR] => 1 ) [2025-02-15 19: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-15 16:58:06' and `end` < '2025-02-15 19: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-15 19:58:20] Production.INFO: count ==1738 [2025-02-15 19:58:20] Production.ERROR: pbx CDR StartTime 2025-02-15 16:58:06 - End Time 2025-02-15 19:58:06 [2025-02-15 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483364', 'tblTempUsageDetail_20' ) start [2025-02-15 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483364', 'tblTempUsageDetail_20' ) end [2025-02-15 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483364', 'tblTempVendorCDR_20' ) start [2025-02-15 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483364', 'tblTempVendorCDR_20' ) end [2025-02-15 19:58:20] Production.INFO: ProcessCDR(1,14483364,1,1,2) [2025-02-15 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483364', 'tblTempUsageDetail_20' ) start [2025-02-15 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483364', 'tblTempUsageDetail_20' ) end [2025-02-15 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:58:23] Production.INFO: ==14909== Releasing lock... [2025-02-15 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:58:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 16:59:05 [end_date_ymd] => 2025-02-15 19:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 16:59:05' and `end` < '2025-02-15 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-15 19:59:19] Production.INFO: count ==1736 [2025-02-15 19:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 16:59:05 - End Time 2025-02-15 19:59:05 [2025-02-15 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483369', 'tblTempUsageDetail_20' ) start [2025-02-15 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483369', 'tblTempUsageDetail_20' ) end [2025-02-15 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483369', 'tblTempVendorCDR_20' ) start [2025-02-15 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483369', 'tblTempVendorCDR_20' ) end [2025-02-15 19:59:19] Production.INFO: ProcessCDR(1,14483369,1,1,2) [2025-02-15 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483369', 'tblTempUsageDetail_20' ) start [2025-02-15 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483369', 'tblTempUsageDetail_20' ) end [2025-02-15 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 19:59:22] Production.INFO: ==14990== Releasing lock... [2025-02-15 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 19:59:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:00:06 [end_date_ymd] => 2025-02-15 20:00:06 [RateCDR] => 1 ) [2025-02-15 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-15 17:00:06' and `end` < '2025-02-15 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-15 20:00:20] Production.INFO: count ==1738 [2025-02-15 20:00:21] Production.ERROR: pbx CDR StartTime 2025-02-15 17:00:06 - End Time 2025-02-15 20:00:06 [2025-02-15 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483375', 'tblTempUsageDetail_20' ) start [2025-02-15 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483375', 'tblTempUsageDetail_20' ) end [2025-02-15 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483375', 'tblTempVendorCDR_20' ) start [2025-02-15 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483375', 'tblTempVendorCDR_20' ) end [2025-02-15 20:00:21] Production.INFO: ProcessCDR(1,14483375,1,1,2) [2025-02-15 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483375', 'tblTempUsageDetail_20' ) start [2025-02-15 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483375', 'tblTempUsageDetail_20' ) end [2025-02-15 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:00:24] Production.INFO: ==15073== Releasing lock... [2025-02-15 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:00:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:01:05 [end_date_ymd] => 2025-02-15 20:01:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:01:05' and `end` < '2025-02-15 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-15 20:01:19] Production.INFO: count ==1742 [2025-02-15 20:01:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:01:05 - End Time 2025-02-15 20:01:05 [2025-02-15 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483380', 'tblTempUsageDetail_20' ) start [2025-02-15 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483380', 'tblTempUsageDetail_20' ) end [2025-02-15 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483380', 'tblTempVendorCDR_20' ) start [2025-02-15 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483380', 'tblTempVendorCDR_20' ) end [2025-02-15 20:01:20] Production.INFO: ProcessCDR(1,14483380,1,1,2) [2025-02-15 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483380', 'tblTempUsageDetail_20' ) start [2025-02-15 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483380', 'tblTempUsageDetail_20' ) end [2025-02-15 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:01:23] Production.INFO: ==15200== Releasing lock... [2025-02-15 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:01:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:02:05 [end_date_ymd] => 2025-02-15 20:02:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:02:05' and `end` < '2025-02-15 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-15 20:02:18] Production.INFO: count ==1744 [2025-02-15 20:02:18] Production.ERROR: pbx CDR StartTime 2025-02-15 17:02:05 - End Time 2025-02-15 20:02:05 [2025-02-15 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483385', 'tblTempUsageDetail_20' ) start [2025-02-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483385', 'tblTempUsageDetail_20' ) end [2025-02-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483385', 'tblTempVendorCDR_20' ) start [2025-02-15 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483385', 'tblTempVendorCDR_20' ) end [2025-02-15 20:02:18] Production.INFO: ProcessCDR(1,14483385,1,1,2) [2025-02-15 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483385', 'tblTempUsageDetail_20' ) start [2025-02-15 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483385', 'tblTempUsageDetail_20' ) end [2025-02-15 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:02:22] Production.INFO: ==15278== Releasing lock... [2025-02-15 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:02:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:03:05 [end_date_ymd] => 2025-02-15 20:03:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:03:05' and `end` < '2025-02-15 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-15 20:03:18] Production.INFO: count ==1743 [2025-02-15 20:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:03:05 - End Time 2025-02-15 20:03:05 [2025-02-15 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483390', 'tblTempUsageDetail_20' ) start [2025-02-15 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483390', 'tblTempUsageDetail_20' ) end [2025-02-15 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483390', 'tblTempVendorCDR_20' ) start [2025-02-15 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483390', 'tblTempVendorCDR_20' ) end [2025-02-15 20:03:19] Production.INFO: ProcessCDR(1,14483390,1,1,2) [2025-02-15 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483390', 'tblTempUsageDetail_20' ) start [2025-02-15 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483390', 'tblTempUsageDetail_20' ) end [2025-02-15 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:03:24] Production.INFO: ==15350== Releasing lock... [2025-02-15 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:03:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:04:05 [end_date_ymd] => 2025-02-15 20:04:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:04:05' and `end` < '2025-02-15 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-15 20:04:18] Production.INFO: count ==1744 [2025-02-15 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:04:05 - End Time 2025-02-15 20:04:05 [2025-02-15 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483395', 'tblTempUsageDetail_20' ) start [2025-02-15 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483395', 'tblTempUsageDetail_20' ) end [2025-02-15 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483395', 'tblTempVendorCDR_20' ) start [2025-02-15 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483395', 'tblTempVendorCDR_20' ) end [2025-02-15 20:04:19] Production.INFO: ProcessCDR(1,14483395,1,1,2) [2025-02-15 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483395', 'tblTempUsageDetail_20' ) start [2025-02-15 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483395', 'tblTempUsageDetail_20' ) end [2025-02-15 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:04:23] Production.INFO: ==15426== Releasing lock... [2025-02-15 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:04:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:05:05 [end_date_ymd] => 2025-02-15 20:05:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:05:05' and `end` < '2025-02-15 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-15 20:05:18] Production.INFO: count ==1742 [2025-02-15 20:05:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:05:05 - End Time 2025-02-15 20:05:05 [2025-02-15 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483400', 'tblTempUsageDetail_20' ) start [2025-02-15 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483400', 'tblTempUsageDetail_20' ) end [2025-02-15 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483400', 'tblTempVendorCDR_20' ) start [2025-02-15 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483400', 'tblTempVendorCDR_20' ) end [2025-02-15 20:05:19] Production.INFO: ProcessCDR(1,14483400,1,1,2) [2025-02-15 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483400', 'tblTempUsageDetail_20' ) start [2025-02-15 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483400', 'tblTempUsageDetail_20' ) end [2025-02-15 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:05:22] Production.INFO: ==15503== Releasing lock... [2025-02-15 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:05:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:06:06 [end_date_ymd] => 2025-02-15 20:06:06 [RateCDR] => 1 ) [2025-02-15 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-15 17:06:06' and `end` < '2025-02-15 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-15 20:06:19] Production.INFO: count ==1742 [2025-02-15 20:06:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:06:06 - End Time 2025-02-15 20:06:06 [2025-02-15 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483405', 'tblTempUsageDetail_20' ) start [2025-02-15 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483405', 'tblTempUsageDetail_20' ) end [2025-02-15 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483405', 'tblTempVendorCDR_20' ) start [2025-02-15 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483405', 'tblTempVendorCDR_20' ) end [2025-02-15 20:06:19] Production.INFO: ProcessCDR(1,14483405,1,1,2) [2025-02-15 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483405', 'tblTempUsageDetail_20' ) start [2025-02-15 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483405', 'tblTempUsageDetail_20' ) end [2025-02-15 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:06:23] Production.INFO: ==15613== Releasing lock... [2025-02-15 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:06:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:07:05 [end_date_ymd] => 2025-02-15 20:07:05 [RateCDR] => 1 ) [2025-02-15 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:07:05' and `end` < '2025-02-15 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:07:18] Production.INFO: count ==1742 [2025-02-15 20:07:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:07:05 - End Time 2025-02-15 20:07:05 [2025-02-15 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483410', 'tblTempUsageDetail_20' ) start [2025-02-15 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483410', 'tblTempUsageDetail_20' ) end [2025-02-15 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483410', 'tblTempVendorCDR_20' ) start [2025-02-15 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483410', 'tblTempVendorCDR_20' ) end [2025-02-15 20:07:19] Production.INFO: ProcessCDR(1,14483410,1,1,2) [2025-02-15 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483410', 'tblTempUsageDetail_20' ) start [2025-02-15 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483410', 'tblTempUsageDetail_20' ) end [2025-02-15 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:07:22] Production.INFO: ==15692== Releasing lock... [2025-02-15 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:07:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:08:06 [end_date_ymd] => 2025-02-15 20:08:06 [RateCDR] => 1 ) [2025-02-15 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:08:06' and `end` < '2025-02-15 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:08:22] Production.INFO: count ==1753 [2025-02-15 20:08:23] Production.ERROR: pbx CDR StartTime 2025-02-15 17:08:06 - End Time 2025-02-15 20:08:06 [2025-02-15 20:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483415', 'tblTempUsageDetail_20' ) start [2025-02-15 20:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483415', 'tblTempUsageDetail_20' ) end [2025-02-15 20:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483415', 'tblTempVendorCDR_20' ) start [2025-02-15 20:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483415', 'tblTempVendorCDR_20' ) end [2025-02-15 20:08:23] Production.INFO: ProcessCDR(1,14483415,1,1,2) [2025-02-15 20:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483415', 'tblTempUsageDetail_20' ) start [2025-02-15 20:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483415', 'tblTempUsageDetail_20' ) end [2025-02-15 20:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:08:28] Production.INFO: ==15770== Releasing lock... [2025-02-15 20:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:08:28] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:09:05 [end_date_ymd] => 2025-02-15 20:09:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:09:05' and `end` < '2025-02-15 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-15 20:09:18] Production.INFO: count ==1755 [2025-02-15 20:09:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:09:05 - End Time 2025-02-15 20:09:05 [2025-02-15 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483420', 'tblTempUsageDetail_20' ) start [2025-02-15 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483420', 'tblTempUsageDetail_20' ) end [2025-02-15 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483420', 'tblTempVendorCDR_20' ) start [2025-02-15 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483420', 'tblTempVendorCDR_20' ) end [2025-02-15 20:09:19] Production.INFO: ProcessCDR(1,14483420,1,1,2) [2025-02-15 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483420', 'tblTempUsageDetail_20' ) start [2025-02-15 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483420', 'tblTempUsageDetail_20' ) end [2025-02-15 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:09:24] Production.INFO: ==15840== Releasing lock... [2025-02-15 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:09:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:10:06 [end_date_ymd] => 2025-02-15 20:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 17:10:06' and `end` < '2025-02-15 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-15 20:10:20] Production.INFO: count ==1760 [2025-02-15 20:10:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:10:06 - End Time 2025-02-15 20:10:06 [2025-02-15 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483426', 'tblTempUsageDetail_20' ) start [2025-02-15 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483426', 'tblTempUsageDetail_20' ) end [2025-02-15 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483426', 'tblTempVendorCDR_20' ) start [2025-02-15 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483426', 'tblTempVendorCDR_20' ) end [2025-02-15 20:10:20] Production.INFO: ProcessCDR(1,14483426,1,1,2) [2025-02-15 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483426', 'tblTempUsageDetail_20' ) start [2025-02-15 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483426', 'tblTempUsageDetail_20' ) end [2025-02-15 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:10:25] Production.INFO: ==15918== Releasing lock... [2025-02-15 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:10:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:11:05 [end_date_ymd] => 2025-02-15 20:11:05 [RateCDR] => 1 ) [2025-02-15 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:11:05' and `end` < '2025-02-15 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:11:20] Production.INFO: count ==1800 [2025-02-15 20:11:21] Production.ERROR: pbx CDR StartTime 2025-02-15 17:11:05 - End Time 2025-02-15 20:11:05 [2025-02-15 20:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483431', 'tblTempUsageDetail_20' ) start [2025-02-15 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483431', 'tblTempUsageDetail_20' ) end [2025-02-15 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483431', 'tblTempVendorCDR_20' ) start [2025-02-15 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483431', 'tblTempVendorCDR_20' ) end [2025-02-15 20:11:21] Production.INFO: ProcessCDR(1,14483431,1,1,2) [2025-02-15 20:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483431', 'tblTempUsageDetail_20' ) start [2025-02-15 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483431', 'tblTempUsageDetail_20' ) end [2025-02-15 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:11:24] Production.INFO: ==15991== Releasing lock... [2025-02-15 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:11:24] Production.INFO: 41 MB #Memory Used# [2025-02-15 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:12:05 [end_date_ymd] => 2025-02-15 20:12:05 [RateCDR] => 1 ) [2025-02-15 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:12:05' and `end` < '2025-02-15 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:12:22] Production.INFO: count ==1801 [2025-02-15 20:12:23] Production.ERROR: pbx CDR StartTime 2025-02-15 17:12:05 - End Time 2025-02-15 20:12:05 [2025-02-15 20:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483436', 'tblTempUsageDetail_20' ) start [2025-02-15 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483436', 'tblTempUsageDetail_20' ) end [2025-02-15 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483436', 'tblTempVendorCDR_20' ) start [2025-02-15 20:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483436', 'tblTempVendorCDR_20' ) end [2025-02-15 20:12:23] Production.INFO: ProcessCDR(1,14483436,1,1,2) [2025-02-15 20:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483436', 'tblTempUsageDetail_20' ) start [2025-02-15 20:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483436', 'tblTempUsageDetail_20' ) end [2025-02-15 20:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:12:26] Production.INFO: ==16062== Releasing lock... [2025-02-15 20:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:12:26] Production.INFO: 41 MB #Memory Used# [2025-02-15 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:13:05 [end_date_ymd] => 2025-02-15 20:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:13:05' and `end` < '2025-02-15 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-15 20:13:19] Production.INFO: count ==1800 [2025-02-15 20:13:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:13:05 - End Time 2025-02-15 20:13:05 [2025-02-15 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483441', 'tblTempUsageDetail_20' ) start [2025-02-15 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483441', 'tblTempUsageDetail_20' ) end [2025-02-15 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483441', 'tblTempVendorCDR_20' ) start [2025-02-15 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483441', 'tblTempVendorCDR_20' ) end [2025-02-15 20:13:19] Production.INFO: ProcessCDR(1,14483441,1,1,2) [2025-02-15 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483441', 'tblTempUsageDetail_20' ) start [2025-02-15 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483441', 'tblTempUsageDetail_20' ) end [2025-02-15 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:13:23] Production.INFO: ==16134== Releasing lock... [2025-02-15 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:13:23] Production.INFO: 41 MB #Memory Used# [2025-02-15 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:14:05 [end_date_ymd] => 2025-02-15 20:14:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:14:05' and `end` < '2025-02-15 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-15 20:14:19] Production.INFO: count ==1797 [2025-02-15 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:14:05 - End Time 2025-02-15 20:14:05 [2025-02-15 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483446', 'tblTempUsageDetail_20' ) start [2025-02-15 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483446', 'tblTempUsageDetail_20' ) end [2025-02-15 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483446', 'tblTempVendorCDR_20' ) start [2025-02-15 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483446', 'tblTempVendorCDR_20' ) end [2025-02-15 20:14:19] Production.INFO: ProcessCDR(1,14483446,1,1,2) [2025-02-15 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483446', 'tblTempUsageDetail_20' ) start [2025-02-15 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483446', 'tblTempUsageDetail_20' ) end [2025-02-15 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:14:23] Production.INFO: ==16207== Releasing lock... [2025-02-15 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:14:23] Production.INFO: 41 MB #Memory Used# [2025-02-15 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:15:06 [end_date_ymd] => 2025-02-15 20:15:06 [RateCDR] => 1 ) [2025-02-15 20: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-15 17:15:06' and `end` < '2025-02-15 20: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-15 20:15:19] Production.INFO: count ==1798 [2025-02-15 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:15:06 - End Time 2025-02-15 20:15:06 [2025-02-15 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483451', 'tblTempUsageDetail_20' ) start [2025-02-15 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483451', 'tblTempUsageDetail_20' ) end [2025-02-15 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483451', 'tblTempVendorCDR_20' ) start [2025-02-15 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483451', 'tblTempVendorCDR_20' ) end [2025-02-15 20:15:19] Production.INFO: ProcessCDR(1,14483451,1,1,2) [2025-02-15 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483451', 'tblTempUsageDetail_20' ) start [2025-02-15 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483451', 'tblTempUsageDetail_20' ) end [2025-02-15 20:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:15:25] Production.INFO: ==16280== Releasing lock... [2025-02-15 20:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:15:25] Production.INFO: 41 MB #Memory Used# [2025-02-15 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:16:06 [end_date_ymd] => 2025-02-15 20:16:06 [RateCDR] => 1 ) [2025-02-15 20:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:16:06' and `end` < '2025-02-15 20:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:16:20] Production.INFO: count ==1801 [2025-02-15 20:16:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:16:06 - End Time 2025-02-15 20:16:06 [2025-02-15 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483456', 'tblTempUsageDetail_20' ) start [2025-02-15 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483456', 'tblTempUsageDetail_20' ) end [2025-02-15 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483456', 'tblTempVendorCDR_20' ) start [2025-02-15 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483456', 'tblTempVendorCDR_20' ) end [2025-02-15 20:16:21] Production.INFO: ProcessCDR(1,14483456,1,1,2) [2025-02-15 20:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483456', 'tblTempUsageDetail_20' ) start [2025-02-15 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483456', 'tblTempUsageDetail_20' ) end [2025-02-15 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:16:24] Production.INFO: ==16361== Releasing lock... [2025-02-15 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:16:24] Production.INFO: 41 MB #Memory Used# [2025-02-15 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:17:05 [end_date_ymd] => 2025-02-15 20:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:17:05' and `end` < '2025-02-15 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-15 20:17:19] Production.INFO: count ==1802 [2025-02-15 20:17:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:17:05 - End Time 2025-02-15 20:17:05 [2025-02-15 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483461', 'tblTempUsageDetail_20' ) start [2025-02-15 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483461', 'tblTempUsageDetail_20' ) end [2025-02-15 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483461', 'tblTempVendorCDR_20' ) start [2025-02-15 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483461', 'tblTempVendorCDR_20' ) end [2025-02-15 20:17:20] Production.INFO: ProcessCDR(1,14483461,1,1,2) [2025-02-15 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483461', 'tblTempUsageDetail_20' ) start [2025-02-15 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483461', 'tblTempUsageDetail_20' ) end [2025-02-15 20:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:17:25] Production.INFO: ==16542== Releasing lock... [2025-02-15 20:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:17:25] Production.INFO: 41 MB #Memory Used# [2025-02-15 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:18:06 [end_date_ymd] => 2025-02-15 20:18:06 [RateCDR] => 1 ) [2025-02-15 20:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:18:06' and `end` < '2025-02-15 20:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:18:19] Production.INFO: count ==1797 [2025-02-15 20:18:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:18:06 - End Time 2025-02-15 20:18:06 [2025-02-15 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483466', 'tblTempUsageDetail_20' ) start [2025-02-15 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483466', 'tblTempUsageDetail_20' ) end [2025-02-15 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483466', 'tblTempVendorCDR_20' ) start [2025-02-15 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483466', 'tblTempVendorCDR_20' ) end [2025-02-15 20:18:19] Production.INFO: ProcessCDR(1,14483466,1,1,2) [2025-02-15 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483466', 'tblTempUsageDetail_20' ) start [2025-02-15 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483466', 'tblTempUsageDetail_20' ) end [2025-02-15 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:18:23] Production.INFO: ==16638== Releasing lock... [2025-02-15 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:18:23] Production.INFO: 41 MB #Memory Used# [2025-02-15 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:19:05 [end_date_ymd] => 2025-02-15 20:19:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:19:05' and `end` < '2025-02-15 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-15 20:19:19] Production.INFO: count ==1797 [2025-02-15 20:19:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:19:05 - End Time 2025-02-15 20:19:05 [2025-02-15 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483471', 'tblTempUsageDetail_20' ) start [2025-02-15 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483471', 'tblTempUsageDetail_20' ) end [2025-02-15 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483471', 'tblTempVendorCDR_20' ) start [2025-02-15 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483471', 'tblTempVendorCDR_20' ) end [2025-02-15 20:19:19] Production.INFO: ProcessCDR(1,14483471,1,1,2) [2025-02-15 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483471', 'tblTempUsageDetail_20' ) start [2025-02-15 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483471', 'tblTempUsageDetail_20' ) end [2025-02-15 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:19:22] Production.INFO: ==16720== Releasing lock... [2025-02-15 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:19:22] Production.INFO: 41 MB #Memory Used# [2025-02-15 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:20:06 [end_date_ymd] => 2025-02-15 20:20:06 [RateCDR] => 1 ) [2025-02-15 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-15 17:20:06' and `end` < '2025-02-15 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-15 20:20:20] Production.INFO: count ==1800 [2025-02-15 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:20:06 - End Time 2025-02-15 20:20:06 [2025-02-15 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483476', 'tblTempUsageDetail_20' ) start [2025-02-15 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483476', 'tblTempUsageDetail_20' ) end [2025-02-15 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483476', 'tblTempVendorCDR_20' ) start [2025-02-15 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483476', 'tblTempVendorCDR_20' ) end [2025-02-15 20:20:20] Production.INFO: ProcessCDR(1,14483476,1,1,2) [2025-02-15 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483476', 'tblTempUsageDetail_20' ) start [2025-02-15 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483476', 'tblTempUsageDetail_20' ) end [2025-02-15 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:20:25] Production.INFO: ==16811== Releasing lock... [2025-02-15 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:20:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-15 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:21:05 [end_date_ymd] => 2025-02-15 20:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:21:05' and `end` < '2025-02-15 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-15 20:21:18] Production.INFO: count ==1767 [2025-02-15 20:21:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:21:05 - End Time 2025-02-15 20:21:05 [2025-02-15 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483482', 'tblTempUsageDetail_20' ) start [2025-02-15 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483482', 'tblTempUsageDetail_20' ) end [2025-02-15 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483482', 'tblTempVendorCDR_20' ) start [2025-02-15 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483482', 'tblTempVendorCDR_20' ) end [2025-02-15 20:21:19] Production.INFO: ProcessCDR(1,14483482,1,1,2) [2025-02-15 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483482', 'tblTempUsageDetail_20' ) start [2025-02-15 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483482', 'tblTempUsageDetail_20' ) end [2025-02-15 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:21:24] Production.INFO: ==16896== Releasing lock... [2025-02-15 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:21:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:22:05 [end_date_ymd] => 2025-02-15 20:22:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:22:05' and `end` < '2025-02-15 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-15 20:22:20] Production.INFO: count ==1762 [2025-02-15 20:22:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:22:05 - End Time 2025-02-15 20:22:05 [2025-02-15 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483487', 'tblTempUsageDetail_20' ) start [2025-02-15 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483487', 'tblTempUsageDetail_20' ) end [2025-02-15 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483487', 'tblTempVendorCDR_20' ) start [2025-02-15 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483487', 'tblTempVendorCDR_20' ) end [2025-02-15 20:22:20] Production.INFO: ProcessCDR(1,14483487,1,1,2) [2025-02-15 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483487', 'tblTempUsageDetail_20' ) start [2025-02-15 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483487', 'tblTempUsageDetail_20' ) end [2025-02-15 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:22:23] Production.INFO: ==17017== Releasing lock... [2025-02-15 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:22:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:23:05 [end_date_ymd] => 2025-02-15 20:23:05 [RateCDR] => 1 ) [2025-02-15 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:23:05' and `end` < '2025-02-15 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:23:19] Production.INFO: count ==1755 [2025-02-15 20:23:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:23:05 - End Time 2025-02-15 20:23:05 [2025-02-15 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483492', 'tblTempUsageDetail_20' ) start [2025-02-15 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483492', 'tblTempUsageDetail_20' ) end [2025-02-15 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483492', 'tblTempVendorCDR_20' ) start [2025-02-15 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483492', 'tblTempVendorCDR_20' ) end [2025-02-15 20:23:19] Production.INFO: ProcessCDR(1,14483492,1,1,2) [2025-02-15 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483492', 'tblTempUsageDetail_20' ) start [2025-02-15 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483492', 'tblTempUsageDetail_20' ) end [2025-02-15 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:23:22] Production.INFO: ==17103== Releasing lock... [2025-02-15 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:23:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:24:06 [end_date_ymd] => 2025-02-15 20:24:06 [RateCDR] => 1 ) [2025-02-15 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:24:06' and `end` < '2025-02-15 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:24:20] Production.INFO: count ==1752 [2025-02-15 20:24:21] Production.ERROR: pbx CDR StartTime 2025-02-15 17:24:06 - End Time 2025-02-15 20:24:06 [2025-02-15 20:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483497', 'tblTempUsageDetail_20' ) start [2025-02-15 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483497', 'tblTempUsageDetail_20' ) end [2025-02-15 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483497', 'tblTempVendorCDR_20' ) start [2025-02-15 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483497', 'tblTempVendorCDR_20' ) end [2025-02-15 20:24:21] Production.INFO: ProcessCDR(1,14483497,1,1,2) [2025-02-15 20:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483497', 'tblTempUsageDetail_20' ) start [2025-02-15 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483497', 'tblTempUsageDetail_20' ) end [2025-02-15 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:24:24] Production.INFO: ==17187== Releasing lock... [2025-02-15 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:24:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:25:05 [end_date_ymd] => 2025-02-15 20:25:05 [RateCDR] => 1 ) [2025-02-15 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:25:05' and `end` < '2025-02-15 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:25:19] Production.INFO: count ==1750 [2025-02-15 20:25:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:25:05 - End Time 2025-02-15 20:25:05 [2025-02-15 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483500', 'tblTempUsageDetail_20' ) start [2025-02-15 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483500', 'tblTempUsageDetail_20' ) end [2025-02-15 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483500', 'tblTempVendorCDR_20' ) start [2025-02-15 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483500', 'tblTempVendorCDR_20' ) end [2025-02-15 20:25:20] Production.INFO: ProcessCDR(1,14483500,1,1,2) [2025-02-15 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483500', 'tblTempUsageDetail_20' ) start [2025-02-15 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483500', 'tblTempUsageDetail_20' ) end [2025-02-15 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:25:23] Production.INFO: ==17267== Releasing lock... [2025-02-15 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:25:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:26:06 [end_date_ymd] => 2025-02-15 20:26:06 [RateCDR] => 1 ) [2025-02-15 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:26:06' and `end` < '2025-02-15 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:26:20] Production.INFO: count ==1751 [2025-02-15 20:26:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:26:06 - End Time 2025-02-15 20:26:06 [2025-02-15 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483507', 'tblTempUsageDetail_20' ) start [2025-02-15 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483507', 'tblTempUsageDetail_20' ) end [2025-02-15 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483507', 'tblTempVendorCDR_20' ) start [2025-02-15 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483507', 'tblTempVendorCDR_20' ) end [2025-02-15 20:26:20] Production.INFO: ProcessCDR(1,14483507,1,1,2) [2025-02-15 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483507', 'tblTempUsageDetail_20' ) start [2025-02-15 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483507', 'tblTempUsageDetail_20' ) end [2025-02-15 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:26:24] Production.INFO: ==17354== Releasing lock... [2025-02-15 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:26:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:27:05 [end_date_ymd] => 2025-02-15 20:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:27:05' and `end` < '2025-02-15 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-15 20:27:19] Production.INFO: count ==1750 [2025-02-15 20:27:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:27:05 - End Time 2025-02-15 20:27:05 [2025-02-15 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483512', 'tblTempUsageDetail_20' ) start [2025-02-15 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483512', 'tblTempUsageDetail_20' ) end [2025-02-15 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483512', 'tblTempVendorCDR_20' ) start [2025-02-15 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483512', 'tblTempVendorCDR_20' ) end [2025-02-15 20:27:19] Production.INFO: ProcessCDR(1,14483512,1,1,2) [2025-02-15 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483512', 'tblTempUsageDetail_20' ) start [2025-02-15 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483512', 'tblTempUsageDetail_20' ) end [2025-02-15 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:27:23] Production.INFO: ==17438== Releasing lock... [2025-02-15 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:27:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:28:06 [end_date_ymd] => 2025-02-15 20:28:06 [RateCDR] => 1 ) [2025-02-15 20:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:28:06' and `end` < '2025-02-15 20:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:28:19] Production.INFO: count ==1748 [2025-02-15 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:28:06 - End Time 2025-02-15 20:28:06 [2025-02-15 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483517', 'tblTempUsageDetail_20' ) start [2025-02-15 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483517', 'tblTempUsageDetail_20' ) end [2025-02-15 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483517', 'tblTempVendorCDR_20' ) start [2025-02-15 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483517', 'tblTempVendorCDR_20' ) end [2025-02-15 20:28:19] Production.INFO: ProcessCDR(1,14483517,1,1,2) [2025-02-15 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483517', 'tblTempUsageDetail_20' ) start [2025-02-15 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483517', 'tblTempUsageDetail_20' ) end [2025-02-15 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:28:23] Production.INFO: ==17518== Releasing lock... [2025-02-15 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:28:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:29:06 [end_date_ymd] => 2025-02-15 20:29:06 [RateCDR] => 1 ) [2025-02-15 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:29:06' and `end` < '2025-02-15 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:29:19] Production.INFO: count ==1751 [2025-02-15 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:29:06 - End Time 2025-02-15 20:29:06 [2025-02-15 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483522', 'tblTempUsageDetail_20' ) start [2025-02-15 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483522', 'tblTempUsageDetail_20' ) end [2025-02-15 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483522', 'tblTempVendorCDR_20' ) start [2025-02-15 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483522', 'tblTempVendorCDR_20' ) end [2025-02-15 20:29:19] Production.INFO: ProcessCDR(1,14483522,1,1,2) [2025-02-15 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483522', 'tblTempUsageDetail_20' ) start [2025-02-15 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483522', 'tblTempUsageDetail_20' ) end [2025-02-15 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:29:23] Production.INFO: ==17601== Releasing lock... [2025-02-15 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:29:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:30:06 [end_date_ymd] => 2025-02-15 20:30:06 [RateCDR] => 1 ) [2025-02-15 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-15 17:30:06' and `end` < '2025-02-15 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-15 20:30:19] Production.INFO: count ==1750 [2025-02-15 20:30:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:30:06 - End Time 2025-02-15 20:30:06 [2025-02-15 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483527', 'tblTempUsageDetail_20' ) start [2025-02-15 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483527', 'tblTempUsageDetail_20' ) end [2025-02-15 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483527', 'tblTempVendorCDR_20' ) start [2025-02-15 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483527', 'tblTempVendorCDR_20' ) end [2025-02-15 20:30:20] Production.INFO: ProcessCDR(1,14483527,1,1,2) [2025-02-15 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483527', 'tblTempUsageDetail_20' ) start [2025-02-15 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483527', 'tblTempUsageDetail_20' ) end [2025-02-15 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:30:23] Production.INFO: ==17684== Releasing lock... [2025-02-15 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:30:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:31:06 [end_date_ymd] => 2025-02-15 20:31:06 [RateCDR] => 1 ) [2025-02-15 20:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:31:06' and `end` < '2025-02-15 20:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:31:19] Production.INFO: count ==1764 [2025-02-15 20:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:31:06 - End Time 2025-02-15 20:31:06 [2025-02-15 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483533', 'tblTempUsageDetail_20' ) start [2025-02-15 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483533', 'tblTempUsageDetail_20' ) end [2025-02-15 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483533', 'tblTempVendorCDR_20' ) start [2025-02-15 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483533', 'tblTempVendorCDR_20' ) end [2025-02-15 20:31:19] Production.INFO: ProcessCDR(1,14483533,1,1,2) [2025-02-15 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483533', 'tblTempUsageDetail_20' ) start [2025-02-15 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483533', 'tblTempUsageDetail_20' ) end [2025-02-15 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:31:23] Production.INFO: ==17774== Releasing lock... [2025-02-15 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:31:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:32:05 [end_date_ymd] => 2025-02-15 20:32:05 [RateCDR] => 1 ) [2025-02-15 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:32:05' and `end` < '2025-02-15 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:32:18] Production.INFO: count ==1763 [2025-02-15 20:32:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:32:05 - End Time 2025-02-15 20:32:05 [2025-02-15 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483538', 'tblTempUsageDetail_20' ) start [2025-02-15 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483538', 'tblTempUsageDetail_20' ) end [2025-02-15 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483538', 'tblTempVendorCDR_20' ) start [2025-02-15 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483538', 'tblTempVendorCDR_20' ) end [2025-02-15 20:32:19] Production.INFO: ProcessCDR(1,14483538,1,1,2) [2025-02-15 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483538', 'tblTempUsageDetail_20' ) start [2025-02-15 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483538', 'tblTempUsageDetail_20' ) end [2025-02-15 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:32:22] Production.INFO: ==17851== Releasing lock... [2025-02-15 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:32:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:33:05 [end_date_ymd] => 2025-02-15 20:33:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:33:05' and `end` < '2025-02-15 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-15 20:33:18] Production.INFO: count ==1758 [2025-02-15 20:33:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:33:05 - End Time 2025-02-15 20:33:05 [2025-02-15 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483543', 'tblTempUsageDetail_20' ) start [2025-02-15 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483543', 'tblTempUsageDetail_20' ) end [2025-02-15 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483543', 'tblTempVendorCDR_20' ) start [2025-02-15 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483543', 'tblTempVendorCDR_20' ) end [2025-02-15 20:33:19] Production.INFO: ProcessCDR(1,14483543,1,1,2) [2025-02-15 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483543', 'tblTempUsageDetail_20' ) start [2025-02-15 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483543', 'tblTempUsageDetail_20' ) end [2025-02-15 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:33:22] Production.INFO: ==17930== Releasing lock... [2025-02-15 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:33:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:34:05 [end_date_ymd] => 2025-02-15 20:34:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:34:05' and `end` < '2025-02-15 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-15 20:34:18] Production.INFO: count ==1758 [2025-02-15 20:34:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:34:05 - End Time 2025-02-15 20:34:05 [2025-02-15 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483548', 'tblTempUsageDetail_20' ) start [2025-02-15 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483548', 'tblTempUsageDetail_20' ) end [2025-02-15 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483548', 'tblTempVendorCDR_20' ) start [2025-02-15 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483548', 'tblTempVendorCDR_20' ) end [2025-02-15 20:34:19] Production.INFO: ProcessCDR(1,14483548,1,1,2) [2025-02-15 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483548', 'tblTempUsageDetail_20' ) start [2025-02-15 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483548', 'tblTempUsageDetail_20' ) end [2025-02-15 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:34:22] Production.INFO: ==18014== Releasing lock... [2025-02-15 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:34:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:35:06 [end_date_ymd] => 2025-02-15 20:35:06 [RateCDR] => 1 ) [2025-02-15 20:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:35:06' and `end` < '2025-02-15 20:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:35:19] Production.INFO: count ==1754 [2025-02-15 20:35:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:35:06 - End Time 2025-02-15 20:35:06 [2025-02-15 20:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483553', 'tblTempUsageDetail_20' ) start [2025-02-15 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483553', 'tblTempUsageDetail_20' ) end [2025-02-15 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483553', 'tblTempVendorCDR_20' ) start [2025-02-15 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483553', 'tblTempVendorCDR_20' ) end [2025-02-15 20:35:20] Production.INFO: ProcessCDR(1,14483553,1,1,2) [2025-02-15 20:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483553', 'tblTempUsageDetail_20' ) start [2025-02-15 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483553', 'tblTempUsageDetail_20' ) end [2025-02-15 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:35:23] Production.INFO: ==18101== Releasing lock... [2025-02-15 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:35:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:36:05 [end_date_ymd] => 2025-02-15 20:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:36:05' and `end` < '2025-02-15 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-15 20:36:19] Production.INFO: count ==1749 [2025-02-15 20:36:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:36:05 - End Time 2025-02-15 20:36:05 [2025-02-15 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483558', 'tblTempUsageDetail_20' ) start [2025-02-15 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483558', 'tblTempUsageDetail_20' ) end [2025-02-15 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483558', 'tblTempVendorCDR_20' ) start [2025-02-15 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483558', 'tblTempVendorCDR_20' ) end [2025-02-15 20:36:19] Production.INFO: ProcessCDR(1,14483558,1,1,2) [2025-02-15 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483558', 'tblTempUsageDetail_20' ) start [2025-02-15 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483558', 'tblTempUsageDetail_20' ) end [2025-02-15 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:36:22] Production.INFO: ==18185== Releasing lock... [2025-02-15 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:36:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:37:06 [end_date_ymd] => 2025-02-15 20:37:06 [RateCDR] => 1 ) [2025-02-15 20:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:37:06' and `end` < '2025-02-15 20:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:37:20] Production.INFO: count ==1749 [2025-02-15 20:37:21] Production.ERROR: pbx CDR StartTime 2025-02-15 17:37:06 - End Time 2025-02-15 20:37:06 [2025-02-15 20:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483563', 'tblTempUsageDetail_20' ) start [2025-02-15 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483563', 'tblTempUsageDetail_20' ) end [2025-02-15 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483563', 'tblTempVendorCDR_20' ) start [2025-02-15 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483563', 'tblTempVendorCDR_20' ) end [2025-02-15 20:37:21] Production.INFO: ProcessCDR(1,14483563,1,1,2) [2025-02-15 20:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483563', 'tblTempUsageDetail_20' ) start [2025-02-15 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483563', 'tblTempUsageDetail_20' ) end [2025-02-15 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:37:24] Production.INFO: ==18311== Releasing lock... [2025-02-15 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:37:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:38:05 [end_date_ymd] => 2025-02-15 20:38:05 [RateCDR] => 1 ) [2025-02-15 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:38:05' and `end` < '2025-02-15 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:38:18] Production.INFO: count ==1747 [2025-02-15 20:38:18] Production.ERROR: pbx CDR StartTime 2025-02-15 17:38:05 - End Time 2025-02-15 20:38:05 [2025-02-15 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483568', 'tblTempUsageDetail_20' ) start [2025-02-15 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483568', 'tblTempUsageDetail_20' ) end [2025-02-15 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483568', 'tblTempVendorCDR_20' ) start [2025-02-15 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483568', 'tblTempVendorCDR_20' ) end [2025-02-15 20:38:18] Production.INFO: ProcessCDR(1,14483568,1,1,2) [2025-02-15 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483568', 'tblTempUsageDetail_20' ) start [2025-02-15 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483568', 'tblTempUsageDetail_20' ) end [2025-02-15 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:38:22] Production.INFO: ==18398== Releasing lock... [2025-02-15 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:38:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:39:06 [end_date_ymd] => 2025-02-15 20:39:06 [RateCDR] => 1 ) [2025-02-15 20: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-15 17:39:06' and `end` < '2025-02-15 20: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-15 20:39:19] Production.INFO: count ==1748 [2025-02-15 20:39:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:39:06 - End Time 2025-02-15 20:39:06 [2025-02-15 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483573', 'tblTempUsageDetail_20' ) start [2025-02-15 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483573', 'tblTempUsageDetail_20' ) end [2025-02-15 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483573', 'tblTempVendorCDR_20' ) start [2025-02-15 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483573', 'tblTempVendorCDR_20' ) end [2025-02-15 20:39:20] Production.INFO: ProcessCDR(1,14483573,1,1,2) [2025-02-15 20:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483573', 'tblTempUsageDetail_20' ) start [2025-02-15 20:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483573', 'tblTempUsageDetail_20' ) end [2025-02-15 20:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:39:25] Production.INFO: ==18489== Releasing lock... [2025-02-15 20:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:39:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:40:05 [end_date_ymd] => 2025-02-15 20:40:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:40:05' and `end` < '2025-02-15 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-15 20:40:19] Production.INFO: count ==1745 [2025-02-15 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:40:05 - End Time 2025-02-15 20:40:05 [2025-02-15 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483578', 'tblTempUsageDetail_20' ) start [2025-02-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483578', 'tblTempUsageDetail_20' ) end [2025-02-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483578', 'tblTempVendorCDR_20' ) start [2025-02-15 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483578', 'tblTempVendorCDR_20' ) end [2025-02-15 20:40:19] Production.INFO: ProcessCDR(1,14483578,1,1,2) [2025-02-15 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483578', 'tblTempUsageDetail_20' ) start [2025-02-15 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483578', 'tblTempUsageDetail_20' ) end [2025-02-15 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:40:23] Production.INFO: ==18579== Releasing lock... [2025-02-15 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:40:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-15 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:41:05 [end_date_ymd] => 2025-02-15 20:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:41:05' and `end` < '2025-02-15 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-15 20:41:18] Production.INFO: count ==1734 [2025-02-15 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:41:05 - End Time 2025-02-15 20:41:05 [2025-02-15 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483584', 'tblTempUsageDetail_20' ) start [2025-02-15 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483584', 'tblTempUsageDetail_20' ) end [2025-02-15 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483584', 'tblTempVendorCDR_20' ) start [2025-02-15 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483584', 'tblTempVendorCDR_20' ) end [2025-02-15 20:41:19] Production.INFO: ProcessCDR(1,14483584,1,1,2) [2025-02-15 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483584', 'tblTempUsageDetail_20' ) start [2025-02-15 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483584', 'tblTempUsageDetail_20' ) end [2025-02-15 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:41:22] Production.INFO: ==18678== Releasing lock... [2025-02-15 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:41:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:42:05 [end_date_ymd] => 2025-02-15 20:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:42:05' and `end` < '2025-02-15 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-15 20:42:19] Production.INFO: count ==1732 [2025-02-15 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:42:05 - End Time 2025-02-15 20:42:05 [2025-02-15 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483589', 'tblTempUsageDetail_20' ) start [2025-02-15 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483589', 'tblTempUsageDetail_20' ) end [2025-02-15 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483589', 'tblTempVendorCDR_20' ) start [2025-02-15 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483589', 'tblTempVendorCDR_20' ) end [2025-02-15 20:42:19] Production.INFO: ProcessCDR(1,14483589,1,1,2) [2025-02-15 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483589', 'tblTempUsageDetail_20' ) start [2025-02-15 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483589', 'tblTempUsageDetail_20' ) end [2025-02-15 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:42:23] Production.INFO: ==18774== Releasing lock... [2025-02-15 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:42:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:43:05 [end_date_ymd] => 2025-02-15 20:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:43:05' and `end` < '2025-02-15 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-15 20:43:18] Production.INFO: count ==1731 [2025-02-15 20:43:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:43:05 - End Time 2025-02-15 20:43:05 [2025-02-15 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483594', 'tblTempUsageDetail_20' ) start [2025-02-15 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483594', 'tblTempUsageDetail_20' ) end [2025-02-15 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483594', 'tblTempVendorCDR_20' ) start [2025-02-15 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483594', 'tblTempVendorCDR_20' ) end [2025-02-15 20:43:19] Production.INFO: ProcessCDR(1,14483594,1,1,2) [2025-02-15 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483594', 'tblTempUsageDetail_20' ) start [2025-02-15 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483594', 'tblTempUsageDetail_20' ) end [2025-02-15 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:43:22] Production.INFO: ==18872== Releasing lock... [2025-02-15 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:43:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:44:06 [end_date_ymd] => 2025-02-15 20:44:06 [RateCDR] => 1 ) [2025-02-15 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-15 17:44:06' and `end` < '2025-02-15 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-15 20:44:19] Production.INFO: count ==1732 [2025-02-15 20:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:44:06 - End Time 2025-02-15 20:44:06 [2025-02-15 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483599', 'tblTempUsageDetail_20' ) start [2025-02-15 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483599', 'tblTempUsageDetail_20' ) end [2025-02-15 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483599', 'tblTempVendorCDR_20' ) start [2025-02-15 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483599', 'tblTempVendorCDR_20' ) end [2025-02-15 20:44:19] Production.INFO: ProcessCDR(1,14483599,1,1,2) [2025-02-15 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483599', 'tblTempUsageDetail_20' ) start [2025-02-15 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483599', 'tblTempUsageDetail_20' ) end [2025-02-15 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:44:23] Production.INFO: ==18968== Releasing lock... [2025-02-15 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:44:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:45:05 [end_date_ymd] => 2025-02-15 20:45:05 [RateCDR] => 1 ) [2025-02-15 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:45:05' and `end` < '2025-02-15 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:45:18] Production.INFO: count ==1730 [2025-02-15 20:45:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:45:05 - End Time 2025-02-15 20:45:05 [2025-02-15 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483604', 'tblTempUsageDetail_20' ) start [2025-02-15 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483604', 'tblTempUsageDetail_20' ) end [2025-02-15 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483604', 'tblTempVendorCDR_20' ) start [2025-02-15 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483604', 'tblTempVendorCDR_20' ) end [2025-02-15 20:45:19] Production.INFO: ProcessCDR(1,14483604,1,1,2) [2025-02-15 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483604', 'tblTempUsageDetail_20' ) start [2025-02-15 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483604', 'tblTempUsageDetail_20' ) end [2025-02-15 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:45:22] Production.INFO: ==19062== Releasing lock... [2025-02-15 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:45:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:46:05 [end_date_ymd] => 2025-02-15 20:46:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:46:05' and `end` < '2025-02-15 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-15 20:46:18] Production.INFO: count ==1725 [2025-02-15 20:46:18] Production.ERROR: pbx CDR StartTime 2025-02-15 17:46:05 - End Time 2025-02-15 20:46:05 [2025-02-15 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483608', 'tblTempUsageDetail_20' ) start [2025-02-15 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483608', 'tblTempUsageDetail_20' ) end [2025-02-15 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483608', 'tblTempVendorCDR_20' ) start [2025-02-15 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483608', 'tblTempVendorCDR_20' ) end [2025-02-15 20:46:18] Production.INFO: ProcessCDR(1,14483608,1,1,2) [2025-02-15 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483608', 'tblTempUsageDetail_20' ) start [2025-02-15 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483608', 'tblTempUsageDetail_20' ) end [2025-02-15 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:46:23] Production.INFO: ==19170== Releasing lock... [2025-02-15 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:46:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:47:06 [end_date_ymd] => 2025-02-15 20:47:06 [RateCDR] => 1 ) [2025-02-15 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:47:06' and `end` < '2025-02-15 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:47:20] Production.INFO: count ==1724 [2025-02-15 20:47:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:47:06 - End Time 2025-02-15 20:47:06 [2025-02-15 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483614', 'tblTempUsageDetail_20' ) start [2025-02-15 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483614', 'tblTempUsageDetail_20' ) end [2025-02-15 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483614', 'tblTempVendorCDR_20' ) start [2025-02-15 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483614', 'tblTempVendorCDR_20' ) end [2025-02-15 20:47:20] Production.INFO: ProcessCDR(1,14483614,1,1,2) [2025-02-15 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483614', 'tblTempUsageDetail_20' ) start [2025-02-15 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483614', 'tblTempUsageDetail_20' ) end [2025-02-15 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:47:23] Production.INFO: ==19272== Releasing lock... [2025-02-15 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:47:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:48:06 [end_date_ymd] => 2025-02-15 20:48:06 [RateCDR] => 1 ) [2025-02-15 20:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:48:06' and `end` < '2025-02-15 20:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:48:19] Production.INFO: count ==1723 [2025-02-15 20:48:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:48:06 - End Time 2025-02-15 20:48:06 [2025-02-15 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483619', 'tblTempUsageDetail_20' ) start [2025-02-15 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483619', 'tblTempUsageDetail_20' ) end [2025-02-15 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483619', 'tblTempVendorCDR_20' ) start [2025-02-15 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483619', 'tblTempVendorCDR_20' ) end [2025-02-15 20:48:20] Production.INFO: ProcessCDR(1,14483619,1,1,2) [2025-02-15 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483619', 'tblTempUsageDetail_20' ) start [2025-02-15 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483619', 'tblTempUsageDetail_20' ) end [2025-02-15 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:48:23] Production.INFO: ==19371== Releasing lock... [2025-02-15 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:48:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:49:05 [end_date_ymd] => 2025-02-15 20:49:05 [RateCDR] => 1 ) [2025-02-15 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:49:05' and `end` < '2025-02-15 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:49:19] Production.INFO: count ==1724 [2025-02-15 20:49:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:49:05 - End Time 2025-02-15 20:49:05 [2025-02-15 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483624', 'tblTempUsageDetail_20' ) start [2025-02-15 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483624', 'tblTempUsageDetail_20' ) end [2025-02-15 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483624', 'tblTempVendorCDR_20' ) start [2025-02-15 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483624', 'tblTempVendorCDR_20' ) end [2025-02-15 20:49:19] Production.INFO: ProcessCDR(1,14483624,1,1,2) [2025-02-15 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483624', 'tblTempUsageDetail_20' ) start [2025-02-15 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483624', 'tblTempUsageDetail_20' ) end [2025-02-15 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:49:24] Production.INFO: ==19471== Releasing lock... [2025-02-15 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:49:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:50:06 [end_date_ymd] => 2025-02-15 20:50:06 [RateCDR] => 1 ) [2025-02-15 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:50:06' and `end` < '2025-02-15 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:50:20] Production.INFO: count ==1722 [2025-02-15 20:50:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:50:06 - End Time 2025-02-15 20:50:06 [2025-02-15 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483630', 'tblTempUsageDetail_20' ) start [2025-02-15 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483630', 'tblTempUsageDetail_20' ) end [2025-02-15 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483630', 'tblTempVendorCDR_20' ) start [2025-02-15 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483630', 'tblTempVendorCDR_20' ) end [2025-02-15 20:50:20] Production.INFO: ProcessCDR(1,14483630,1,1,2) [2025-02-15 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483630', 'tblTempUsageDetail_20' ) start [2025-02-15 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483630', 'tblTempUsageDetail_20' ) end [2025-02-15 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:50:24] Production.INFO: ==19572== Releasing lock... [2025-02-15 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:50:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:51:05 [end_date_ymd] => 2025-02-15 20:51:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:51:05' and `end` < '2025-02-15 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-15 20:51:19] Production.INFO: count ==1708 [2025-02-15 20:51:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:51:05 - End Time 2025-02-15 20:51:05 [2025-02-15 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483635', 'tblTempUsageDetail_20' ) start [2025-02-15 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483635', 'tblTempUsageDetail_20' ) end [2025-02-15 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483635', 'tblTempVendorCDR_20' ) start [2025-02-15 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483635', 'tblTempVendorCDR_20' ) end [2025-02-15 20:51:19] Production.INFO: ProcessCDR(1,14483635,1,1,2) [2025-02-15 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483635', 'tblTempUsageDetail_20' ) start [2025-02-15 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483635', 'tblTempUsageDetail_20' ) end [2025-02-15 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:51:23] Production.INFO: ==19672== Releasing lock... [2025-02-15 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:51:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:52:06 [end_date_ymd] => 2025-02-15 20:52:06 [RateCDR] => 1 ) [2025-02-15 20:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:52:06' and `end` < '2025-02-15 20:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:52:20] Production.INFO: count ==1708 [2025-02-15 20:52:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:52:06 - End Time 2025-02-15 20:52:06 [2025-02-15 20:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483640', 'tblTempUsageDetail_20' ) start [2025-02-15 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483640', 'tblTempUsageDetail_20' ) end [2025-02-15 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483640', 'tblTempVendorCDR_20' ) start [2025-02-15 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483640', 'tblTempVendorCDR_20' ) end [2025-02-15 20:52:21] Production.INFO: ProcessCDR(1,14483640,1,1,2) [2025-02-15 20:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483640', 'tblTempUsageDetail_20' ) start [2025-02-15 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483640', 'tblTempUsageDetail_20' ) end [2025-02-15 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:52:24] Production.INFO: ==19766== Releasing lock... [2025-02-15 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:52:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-15 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:53:05 [end_date_ymd] => 2025-02-15 20:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:53:05' and `end` < '2025-02-15 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-15 20:53:19] Production.INFO: count ==1698 [2025-02-15 20:53:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:53:05 - End Time 2025-02-15 20:53:05 [2025-02-15 20:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483645', 'tblTempUsageDetail_20' ) start [2025-02-15 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483645', 'tblTempUsageDetail_20' ) end [2025-02-15 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483645', 'tblTempVendorCDR_20' ) start [2025-02-15 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483645', 'tblTempVendorCDR_20' ) end [2025-02-15 20:53:20] Production.INFO: ProcessCDR(1,14483645,1,1,2) [2025-02-15 20:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483645', 'tblTempUsageDetail_20' ) start [2025-02-15 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483645', 'tblTempUsageDetail_20' ) end [2025-02-15 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:53:23] Production.INFO: ==19892== Releasing lock... [2025-02-15 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:53:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-15 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:54:05 [end_date_ymd] => 2025-02-15 20:54:05 [RateCDR] => 1 ) [2025-02-15 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:54:05' and `end` < '2025-02-15 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:54:20] Production.INFO: count ==1700 [2025-02-15 20:54:20] Production.ERROR: pbx CDR StartTime 2025-02-15 17:54:05 - End Time 2025-02-15 20:54:05 [2025-02-15 20:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483650', 'tblTempUsageDetail_20' ) start [2025-02-15 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483650', 'tblTempUsageDetail_20' ) end [2025-02-15 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483650', 'tblTempVendorCDR_20' ) start [2025-02-15 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483650', 'tblTempVendorCDR_20' ) end [2025-02-15 20:54:20] Production.INFO: ProcessCDR(1,14483650,1,1,2) [2025-02-15 20:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483650', 'tblTempUsageDetail_20' ) start [2025-02-15 20:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483650', 'tblTempUsageDetail_20' ) end [2025-02-15 20:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:54:25] Production.INFO: ==19982== Releasing lock... [2025-02-15 20:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:54:25] Production.INFO: 40.25 MB #Memory Used# [2025-02-15 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:55:06 [end_date_ymd] => 2025-02-15 20:55:06 [RateCDR] => 1 ) [2025-02-15 20: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-15 17:55:06' and `end` < '2025-02-15 20: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-15 20:55:19] Production.INFO: count ==1691 [2025-02-15 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:55:06 - End Time 2025-02-15 20:55:06 [2025-02-15 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483655', 'tblTempUsageDetail_20' ) start [2025-02-15 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483655', 'tblTempUsageDetail_20' ) end [2025-02-15 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483655', 'tblTempVendorCDR_20' ) start [2025-02-15 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483655', 'tblTempVendorCDR_20' ) end [2025-02-15 20:55:19] Production.INFO: ProcessCDR(1,14483655,1,1,2) [2025-02-15 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483655', 'tblTempUsageDetail_20' ) start [2025-02-15 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483655', 'tblTempUsageDetail_20' ) end [2025-02-15 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:55:23] Production.INFO: ==20078== Releasing lock... [2025-02-15 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:55:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-15 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:56:06 [end_date_ymd] => 2025-02-15 20:56:06 [RateCDR] => 1 ) [2025-02-15 20:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:56:06' and `end` < '2025-02-15 20:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:56:22] Production.INFO: count ==1686 [2025-02-15 20:56:22] Production.ERROR: pbx CDR StartTime 2025-02-15 17:56:06 - End Time 2025-02-15 20:56:06 [2025-02-15 20:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483660', 'tblTempUsageDetail_20' ) start [2025-02-15 20:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483660', 'tblTempUsageDetail_20' ) end [2025-02-15 20:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483660', 'tblTempVendorCDR_20' ) start [2025-02-15 20:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483660', 'tblTempVendorCDR_20' ) end [2025-02-15 20:56:22] Production.INFO: ProcessCDR(1,14483660,1,1,2) [2025-02-15 20:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483660', 'tblTempUsageDetail_20' ) start [2025-02-15 20:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483660', 'tblTempUsageDetail_20' ) end [2025-02-15 20:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:56:26] Production.INFO: ==20180== Releasing lock... [2025-02-15 20:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:56:26] Production.INFO: 40.25 MB #Memory Used# [2025-02-15 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:57:05 [end_date_ymd] => 2025-02-15 20:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 17:57:05' and `end` < '2025-02-15 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-15 20:57:18] Production.INFO: count ==1680 [2025-02-15 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:57:05 - End Time 2025-02-15 20:57:05 [2025-02-15 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483665', 'tblTempUsageDetail_20' ) start [2025-02-15 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483665', 'tblTempUsageDetail_20' ) end [2025-02-15 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483665', 'tblTempVendorCDR_20' ) start [2025-02-15 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483665', 'tblTempVendorCDR_20' ) end [2025-02-15 20:57:19] Production.INFO: ProcessCDR(1,14483665,1,1,2) [2025-02-15 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483665', 'tblTempUsageDetail_20' ) start [2025-02-15 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483665', 'tblTempUsageDetail_20' ) end [2025-02-15 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:57:24] Production.INFO: ==20283== Releasing lock... [2025-02-15 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:57:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-15 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:58:06 [end_date_ymd] => 2025-02-15 20:58:06 [RateCDR] => 1 ) [2025-02-15 20:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:58:06' and `end` < '2025-02-15 20:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:58:19] Production.INFO: count ==1678 [2025-02-15 20:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:58:06 - End Time 2025-02-15 20:58:06 [2025-02-15 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483670', 'tblTempUsageDetail_20' ) start [2025-02-15 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483670', 'tblTempUsageDetail_20' ) end [2025-02-15 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483670', 'tblTempVendorCDR_20' ) start [2025-02-15 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483670', 'tblTempVendorCDR_20' ) end [2025-02-15 20:58:19] Production.INFO: ProcessCDR(1,14483670,1,1,2) [2025-02-15 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483670', 'tblTempUsageDetail_20' ) start [2025-02-15 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483670', 'tblTempUsageDetail_20' ) end [2025-02-15 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:58:24] Production.INFO: ==20380== Releasing lock... [2025-02-15 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:58:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-15 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 17:59:05 [end_date_ymd] => 2025-02-15 20:59:05 [RateCDR] => 1 ) [2025-02-15 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 17:59:05' and `end` < '2025-02-15 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 20:59:19] Production.INFO: count ==1674 [2025-02-15 20:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 17:59:05 - End Time 2025-02-15 20:59:05 [2025-02-15 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483675', 'tblTempUsageDetail_20' ) start [2025-02-15 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483675', 'tblTempUsageDetail_20' ) end [2025-02-15 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483675', 'tblTempVendorCDR_20' ) start [2025-02-15 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483675', 'tblTempVendorCDR_20' ) end [2025-02-15 20:59:19] Production.INFO: ProcessCDR(1,14483675,1,1,2) [2025-02-15 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 20:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483675', 'tblTempUsageDetail_20' ) start [2025-02-15 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483675', 'tblTempUsageDetail_20' ) end [2025-02-15 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 20:59:24] Production.INFO: ==20476== Releasing lock... [2025-02-15 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 20:59:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-15 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:00:06 [end_date_ymd] => 2025-02-15 21:00:06 [RateCDR] => 1 ) [2025-02-15 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:00:06' and `end` < '2025-02-15 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:00:19] Production.INFO: count ==1674 [2025-02-15 21:00:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:00:06 - End Time 2025-02-15 21:00:06 [2025-02-15 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483681', 'tblTempUsageDetail_20' ) start [2025-02-15 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483681', 'tblTempUsageDetail_20' ) end [2025-02-15 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483681', 'tblTempVendorCDR_20' ) start [2025-02-15 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483681', 'tblTempVendorCDR_20' ) end [2025-02-15 21:00:20] Production.INFO: ProcessCDR(1,14483681,1,1,2) [2025-02-15 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483681', 'tblTempUsageDetail_20' ) start [2025-02-15 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483681', 'tblTempUsageDetail_20' ) end [2025-02-15 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:00:25] Production.INFO: ==20579== Releasing lock... [2025-02-15 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:00:25] Production.INFO: 40.25 MB #Memory Used# [2025-02-15 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:01:06 [end_date_ymd] => 2025-02-15 21:01:06 [RateCDR] => 1 ) [2025-02-15 21:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:01:06' and `end` < '2025-02-15 21:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:01:19] Production.INFO: count ==1613 [2025-02-15 21:01:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:01:06 - End Time 2025-02-15 21:01:06 [2025-02-15 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483686', 'tblTempUsageDetail_20' ) start [2025-02-15 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483686', 'tblTempUsageDetail_20' ) end [2025-02-15 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483686', 'tblTempVendorCDR_20' ) start [2025-02-15 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483686', 'tblTempVendorCDR_20' ) end [2025-02-15 21:01:19] Production.INFO: ProcessCDR(1,14483686,1,1,2) [2025-02-15 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483686', 'tblTempUsageDetail_20' ) start [2025-02-15 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483686', 'tblTempUsageDetail_20' ) end [2025-02-15 21:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:01:24] Production.INFO: ==20686== Releasing lock... [2025-02-15 21:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:01:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-15 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:02:06 [end_date_ymd] => 2025-02-15 21:02:06 [RateCDR] => 1 ) [2025-02-15 21:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:02:06' and `end` < '2025-02-15 21:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:02:19] Production.INFO: count ==1606 [2025-02-15 21:02:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:02:06 - End Time 2025-02-15 21:02:06 [2025-02-15 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483691', 'tblTempUsageDetail_20' ) start [2025-02-15 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483691', 'tblTempUsageDetail_20' ) end [2025-02-15 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483691', 'tblTempVendorCDR_20' ) start [2025-02-15 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483691', 'tblTempVendorCDR_20' ) end [2025-02-15 21:02:19] Production.INFO: ProcessCDR(1,14483691,1,1,2) [2025-02-15 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483691', 'tblTempUsageDetail_20' ) start [2025-02-15 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483691', 'tblTempUsageDetail_20' ) end [2025-02-15 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:02:23] Production.INFO: ==20779== Releasing lock... [2025-02-15 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:02:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-15 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:03:05 [end_date_ymd] => 2025-02-15 21:03:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:03:05' and `end` < '2025-02-15 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-15 21:03:19] Production.INFO: count ==1592 [2025-02-15 21:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:03:05 - End Time 2025-02-15 21:03:05 [2025-02-15 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483696', 'tblTempUsageDetail_20' ) start [2025-02-15 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483696', 'tblTempUsageDetail_20' ) end [2025-02-15 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483696', 'tblTempVendorCDR_20' ) start [2025-02-15 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483696', 'tblTempVendorCDR_20' ) end [2025-02-15 21:03:19] Production.INFO: ProcessCDR(1,14483696,1,1,2) [2025-02-15 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483696', 'tblTempUsageDetail_20' ) start [2025-02-15 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483696', 'tblTempUsageDetail_20' ) end [2025-02-15 21:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:03:24] Production.INFO: ==20876== Releasing lock... [2025-02-15 21:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:03:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-15 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:04:06 [end_date_ymd] => 2025-02-15 21:04:06 [RateCDR] => 1 ) [2025-02-15 21: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-15 18:04:06' and `end` < '2025-02-15 21: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-15 21:04:20] Production.INFO: count ==1579 [2025-02-15 21:04:21] Production.ERROR: pbx CDR StartTime 2025-02-15 18:04:06 - End Time 2025-02-15 21:04:06 [2025-02-15 21:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483701', 'tblTempUsageDetail_20' ) start [2025-02-15 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483701', 'tblTempUsageDetail_20' ) end [2025-02-15 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483701', 'tblTempVendorCDR_20' ) start [2025-02-15 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483701', 'tblTempVendorCDR_20' ) end [2025-02-15 21:04:21] Production.INFO: ProcessCDR(1,14483701,1,1,2) [2025-02-15 21:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483701', 'tblTempUsageDetail_20' ) start [2025-02-15 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483701', 'tblTempUsageDetail_20' ) end [2025-02-15 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:04:24] Production.INFO: ==20972== Releasing lock... [2025-02-15 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:04:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-15 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:05:05 [end_date_ymd] => 2025-02-15 21:05:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:05:05' and `end` < '2025-02-15 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-15 21:05:18] Production.INFO: count ==1574 [2025-02-15 21:05:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:05:05 - End Time 2025-02-15 21:05:05 [2025-02-15 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483706', 'tblTempUsageDetail_20' ) start [2025-02-15 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483706', 'tblTempUsageDetail_20' ) end [2025-02-15 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483706', 'tblTempVendorCDR_20' ) start [2025-02-15 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483706', 'tblTempVendorCDR_20' ) end [2025-02-15 21:05:19] Production.INFO: ProcessCDR(1,14483706,1,1,2) [2025-02-15 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483706', 'tblTempUsageDetail_20' ) start [2025-02-15 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483706', 'tblTempUsageDetail_20' ) end [2025-02-15 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:05:23] Production.INFO: ==21061== Releasing lock... [2025-02-15 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:05:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-15 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:06:05 [end_date_ymd] => 2025-02-15 21:06:05 [RateCDR] => 1 ) [2025-02-15 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:06:05' and `end` < '2025-02-15 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:06:19] Production.INFO: count ==1577 [2025-02-15 21:06:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:06:05 - End Time 2025-02-15 21:06:05 [2025-02-15 21:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483711', 'tblTempUsageDetail_20' ) start [2025-02-15 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483711', 'tblTempUsageDetail_20' ) end [2025-02-15 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483711', 'tblTempVendorCDR_20' ) start [2025-02-15 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483711', 'tblTempVendorCDR_20' ) end [2025-02-15 21:06:20] Production.INFO: ProcessCDR(1,14483711,1,1,2) [2025-02-15 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483711', 'tblTempUsageDetail_20' ) start [2025-02-15 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483711', 'tblTempUsageDetail_20' ) end [2025-02-15 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:06:24] Production.INFO: ==21144== Releasing lock... [2025-02-15 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:06:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-15 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:07:04 [end_date_ymd] => 2025-02-15 21:07:04 [RateCDR] => 1 ) [2025-02-15 21: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-15 18:07:04' and `end` < '2025-02-15 21: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-15 21:07:18] Production.INFO: count ==1576 [2025-02-15 21:07:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:07:04 - End Time 2025-02-15 21:07:04 [2025-02-15 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483716', 'tblTempUsageDetail_20' ) start [2025-02-15 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483716', 'tblTempUsageDetail_20' ) end [2025-02-15 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483716', 'tblTempVendorCDR_20' ) start [2025-02-15 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483716', 'tblTempVendorCDR_20' ) end [2025-02-15 21:07:18] Production.INFO: ProcessCDR(1,14483716,1,1,2) [2025-02-15 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483716', 'tblTempUsageDetail_20' ) start [2025-02-15 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483716', 'tblTempUsageDetail_20' ) end [2025-02-15 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:07:23] Production.INFO: ==21223== Releasing lock... [2025-02-15 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:07:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-15 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:08:05 [end_date_ymd] => 2025-02-15 21:08:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:08:05' and `end` < '2025-02-15 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-15 21:08:19] Production.INFO: count ==1568 [2025-02-15 21:08:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:08:05 - End Time 2025-02-15 21:08:05 [2025-02-15 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483721', 'tblTempUsageDetail_20' ) start [2025-02-15 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483721', 'tblTempUsageDetail_20' ) end [2025-02-15 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483721', 'tblTempVendorCDR_20' ) start [2025-02-15 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483721', 'tblTempVendorCDR_20' ) end [2025-02-15 21:08:19] Production.INFO: ProcessCDR(1,14483721,1,1,2) [2025-02-15 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483721', 'tblTempUsageDetail_20' ) start [2025-02-15 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483721', 'tblTempUsageDetail_20' ) end [2025-02-15 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:08:22] Production.INFO: ==21352== Releasing lock... [2025-02-15 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:08:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:09:06 [end_date_ymd] => 2025-02-15 21:09:06 [RateCDR] => 1 ) [2025-02-15 21:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:09:06' and `end` < '2025-02-15 21:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:09:20] Production.INFO: count ==1566 [2025-02-15 21:09:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:09:06 - End Time 2025-02-15 21:09:06 [2025-02-15 21:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483726', 'tblTempUsageDetail_20' ) start [2025-02-15 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483726', 'tblTempUsageDetail_20' ) end [2025-02-15 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483726', 'tblTempVendorCDR_20' ) start [2025-02-15 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483726', 'tblTempVendorCDR_20' ) end [2025-02-15 21:09:20] Production.INFO: ProcessCDR(1,14483726,1,1,2) [2025-02-15 21:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483726', 'tblTempUsageDetail_20' ) start [2025-02-15 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483726', 'tblTempUsageDetail_20' ) end [2025-02-15 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:09:24] Production.INFO: ==21436== Releasing lock... [2025-02-15 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:09:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:10:06 [end_date_ymd] => 2025-02-15 21:10:06 [RateCDR] => 1 ) [2025-02-15 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-15 18:10:06' and `end` < '2025-02-15 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-15 21:10:19] Production.INFO: count ==1565 [2025-02-15 21:10:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:10:06 - End Time 2025-02-15 21:10:06 [2025-02-15 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483732', 'tblTempUsageDetail_20' ) start [2025-02-15 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483732', 'tblTempUsageDetail_20' ) end [2025-02-15 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483732', 'tblTempVendorCDR_20' ) start [2025-02-15 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483732', 'tblTempVendorCDR_20' ) end [2025-02-15 21:10:20] Production.INFO: ProcessCDR(1,14483732,1,1,2) [2025-02-15 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483732', 'tblTempUsageDetail_20' ) start [2025-02-15 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483732', 'tblTempUsageDetail_20' ) end [2025-02-15 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:10:23] Production.INFO: ==21520== Releasing lock... [2025-02-15 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:10:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:11:06 [end_date_ymd] => 2025-02-15 21:11:06 [RateCDR] => 1 ) [2025-02-15 21:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:11:06' and `end` < '2025-02-15 21:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:11:21] Production.INFO: count ==1548 [2025-02-15 21:11:21] Production.ERROR: pbx CDR StartTime 2025-02-15 18:11:06 - End Time 2025-02-15 21:11:06 [2025-02-15 21:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483737', 'tblTempUsageDetail_20' ) start [2025-02-15 21:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483737', 'tblTempUsageDetail_20' ) end [2025-02-15 21:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483737', 'tblTempVendorCDR_20' ) start [2025-02-15 21:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483737', 'tblTempVendorCDR_20' ) end [2025-02-15 21:11:21] Production.INFO: ProcessCDR(1,14483737,1,1,2) [2025-02-15 21:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483737', 'tblTempUsageDetail_20' ) start [2025-02-15 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483737', 'tblTempUsageDetail_20' ) end [2025-02-15 21:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:11:24] Production.INFO: ==21598== Releasing lock... [2025-02-15 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:11:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:12:05 [end_date_ymd] => 2025-02-15 21:12:05 [RateCDR] => 1 ) [2025-02-15 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:12:05' and `end` < '2025-02-15 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:12:18] Production.INFO: count ==1544 [2025-02-15 21:12:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:12:05 - End Time 2025-02-15 21:12:05 [2025-02-15 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483742', 'tblTempUsageDetail_20' ) start [2025-02-15 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483742', 'tblTempUsageDetail_20' ) end [2025-02-15 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483742', 'tblTempVendorCDR_20' ) start [2025-02-15 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483742', 'tblTempVendorCDR_20' ) end [2025-02-15 21:12:18] Production.INFO: ProcessCDR(1,14483742,1,1,2) [2025-02-15 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483742', 'tblTempUsageDetail_20' ) start [2025-02-15 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483742', 'tblTempUsageDetail_20' ) end [2025-02-15 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:12:22] Production.INFO: ==21669== Releasing lock... [2025-02-15 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:12:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:13:05 [end_date_ymd] => 2025-02-15 21:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:13:05' and `end` < '2025-02-15 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-15 21:13:19] Production.INFO: count ==1549 [2025-02-15 21:13:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:13:05 - End Time 2025-02-15 21:13:05 [2025-02-15 21:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483747', 'tblTempUsageDetail_20' ) start [2025-02-15 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483747', 'tblTempUsageDetail_20' ) end [2025-02-15 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483747', 'tblTempVendorCDR_20' ) start [2025-02-15 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483747', 'tblTempVendorCDR_20' ) end [2025-02-15 21:13:20] Production.INFO: ProcessCDR(1,14483747,1,1,2) [2025-02-15 21:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483747', 'tblTempUsageDetail_20' ) start [2025-02-15 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483747', 'tblTempUsageDetail_20' ) end [2025-02-15 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:13:23] Production.INFO: ==21747== Releasing lock... [2025-02-15 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:13:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:14:05 [end_date_ymd] => 2025-02-15 21:14:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:14:05' and `end` < '2025-02-15 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-15 21:14:19] Production.INFO: count ==1549 [2025-02-15 21:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:14:05 - End Time 2025-02-15 21:14:05 [2025-02-15 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483752', 'tblTempUsageDetail_20' ) start [2025-02-15 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483752', 'tblTempUsageDetail_20' ) end [2025-02-15 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483752', 'tblTempVendorCDR_20' ) start [2025-02-15 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483752', 'tblTempVendorCDR_20' ) end [2025-02-15 21:14:19] Production.INFO: ProcessCDR(1,14483752,1,1,2) [2025-02-15 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483752', 'tblTempUsageDetail_20' ) start [2025-02-15 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483752', 'tblTempUsageDetail_20' ) end [2025-02-15 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:14:22] Production.INFO: ==21834== Releasing lock... [2025-02-15 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:14:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:15:06 [end_date_ymd] => 2025-02-15 21:15:06 [RateCDR] => 1 ) [2025-02-15 21:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:15:06' and `end` < '2025-02-15 21:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:15:19] Production.INFO: count ==1547 [2025-02-15 21:15:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:15:06 - End Time 2025-02-15 21:15:06 [2025-02-15 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483757', 'tblTempUsageDetail_20' ) start [2025-02-15 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483757', 'tblTempUsageDetail_20' ) end [2025-02-15 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483757', 'tblTempVendorCDR_20' ) start [2025-02-15 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483757', 'tblTempVendorCDR_20' ) end [2025-02-15 21:15:19] Production.INFO: ProcessCDR(1,14483757,1,1,2) [2025-02-15 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483757', 'tblTempUsageDetail_20' ) start [2025-02-15 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483757', 'tblTempUsageDetail_20' ) end [2025-02-15 21:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:15:24] Production.INFO: ==21926== Releasing lock... [2025-02-15 21:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:15:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:16:05 [end_date_ymd] => 2025-02-15 21:16:05 [RateCDR] => 1 ) [2025-02-15 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:16:05' and `end` < '2025-02-15 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:16:18] Production.INFO: count ==1544 [2025-02-15 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:16:05 - End Time 2025-02-15 21:16:05 [2025-02-15 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483762', 'tblTempUsageDetail_20' ) start [2025-02-15 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483762', 'tblTempUsageDetail_20' ) end [2025-02-15 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483762', 'tblTempVendorCDR_20' ) start [2025-02-15 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483762', 'tblTempVendorCDR_20' ) end [2025-02-15 21:16:19] Production.INFO: ProcessCDR(1,14483762,1,1,2) [2025-02-15 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483762', 'tblTempUsageDetail_20' ) start [2025-02-15 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483762', 'tblTempUsageDetail_20' ) end [2025-02-15 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:16:22] Production.INFO: ==22015== Releasing lock... [2025-02-15 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:16:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:17:05 [end_date_ymd] => 2025-02-15 21:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:17:05' and `end` < '2025-02-15 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-15 21:17:19] Production.INFO: count ==1545 [2025-02-15 21:17:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:17:05 - End Time 2025-02-15 21:17:05 [2025-02-15 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483767', 'tblTempUsageDetail_20' ) start [2025-02-15 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483767', 'tblTempUsageDetail_20' ) end [2025-02-15 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483767', 'tblTempVendorCDR_20' ) start [2025-02-15 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483767', 'tblTempVendorCDR_20' ) end [2025-02-15 21:17:19] Production.INFO: ProcessCDR(1,14483767,1,1,2) [2025-02-15 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483767', 'tblTempUsageDetail_20' ) start [2025-02-15 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483767', 'tblTempUsageDetail_20' ) end [2025-02-15 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:17:24] Production.INFO: ==22100== Releasing lock... [2025-02-15 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:17:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:18:05 [end_date_ymd] => 2025-02-15 21:18:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:18:05' and `end` < '2025-02-15 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-15 21:18:19] Production.INFO: count ==1547 [2025-02-15 21:18:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:18:05 - End Time 2025-02-15 21:18:05 [2025-02-15 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483772', 'tblTempUsageDetail_20' ) start [2025-02-15 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483772', 'tblTempUsageDetail_20' ) end [2025-02-15 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483772', 'tblTempVendorCDR_20' ) start [2025-02-15 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483772', 'tblTempVendorCDR_20' ) end [2025-02-15 21:18:19] Production.INFO: ProcessCDR(1,14483772,1,1,2) [2025-02-15 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483772', 'tblTempUsageDetail_20' ) start [2025-02-15 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483772', 'tblTempUsageDetail_20' ) end [2025-02-15 21:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:18:24] Production.INFO: ==22183== Releasing lock... [2025-02-15 21:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:18:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:19:06 [end_date_ymd] => 2025-02-15 21:19:06 [RateCDR] => 1 ) [2025-02-15 21:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:19:06' and `end` < '2025-02-15 21:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:19:19] Production.INFO: count ==1542 [2025-02-15 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:19:06 - End Time 2025-02-15 21:19:06 [2025-02-15 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483777', 'tblTempUsageDetail_20' ) start [2025-02-15 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483777', 'tblTempUsageDetail_20' ) end [2025-02-15 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483777', 'tblTempVendorCDR_20' ) start [2025-02-15 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483777', 'tblTempVendorCDR_20' ) end [2025-02-15 21:19:19] Production.INFO: ProcessCDR(1,14483777,1,1,2) [2025-02-15 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483777', 'tblTempUsageDetail_20' ) start [2025-02-15 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483777', 'tblTempUsageDetail_20' ) end [2025-02-15 21:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:19:24] Production.INFO: ==22268== Releasing lock... [2025-02-15 21:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:19:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:20:05 [end_date_ymd] => 2025-02-15 21:20:05 [RateCDR] => 1 ) [2025-02-15 21: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-15 18:20:05' and `end` < '2025-02-15 21: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-15 21:20:20] Production.INFO: count ==1547 [2025-02-15 21:20:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:20:05 - End Time 2025-02-15 21:20:05 [2025-02-15 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483783', 'tblTempUsageDetail_20' ) start [2025-02-15 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483783', 'tblTempUsageDetail_20' ) end [2025-02-15 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483783', 'tblTempVendorCDR_20' ) start [2025-02-15 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483783', 'tblTempVendorCDR_20' ) end [2025-02-15 21:20:20] Production.INFO: ProcessCDR(1,14483783,1,1,2) [2025-02-15 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483783', 'tblTempUsageDetail_20' ) start [2025-02-15 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483783', 'tblTempUsageDetail_20' ) end [2025-02-15 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:20:24] Production.INFO: ==22353== Releasing lock... [2025-02-15 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:20:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-15 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:21:05 [end_date_ymd] => 2025-02-15 21:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:21:05' and `end` < '2025-02-15 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-15 21:21:18] Production.INFO: count ==1508 [2025-02-15 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:21:05 - End Time 2025-02-15 21:21:05 [2025-02-15 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483788', 'tblTempUsageDetail_20' ) start [2025-02-15 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483788', 'tblTempUsageDetail_20' ) end [2025-02-15 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483788', 'tblTempVendorCDR_20' ) start [2025-02-15 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483788', 'tblTempVendorCDR_20' ) end [2025-02-15 21:21:19] Production.INFO: ProcessCDR(1,14483788,1,1,2) [2025-02-15 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483788', 'tblTempUsageDetail_20' ) start [2025-02-15 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483788', 'tblTempUsageDetail_20' ) end [2025-02-15 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:21:23] Production.INFO: ==22440== Releasing lock... [2025-02-15 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:21:23] Production.INFO: 39 MB #Memory Used# [2025-02-15 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:22:05 [end_date_ymd] => 2025-02-15 21:22:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:22:05' and `end` < '2025-02-15 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-15 21:22:18] Production.INFO: count ==1506 [2025-02-15 21:22:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:22:05 - End Time 2025-02-15 21:22:05 [2025-02-15 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483791', 'tblTempUsageDetail_20' ) start [2025-02-15 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483791', 'tblTempUsageDetail_20' ) end [2025-02-15 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483791', 'tblTempVendorCDR_20' ) start [2025-02-15 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483791', 'tblTempVendorCDR_20' ) end [2025-02-15 21:22:18] Production.INFO: ProcessCDR(1,14483791,1,1,2) [2025-02-15 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483791', 'tblTempUsageDetail_20' ) start [2025-02-15 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483791', 'tblTempUsageDetail_20' ) end [2025-02-15 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:22:23] Production.INFO: ==22530== Releasing lock... [2025-02-15 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:22:23] Production.INFO: 39 MB #Memory Used# [2025-02-15 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:23:06 [end_date_ymd] => 2025-02-15 21:23:06 [RateCDR] => 1 ) [2025-02-15 21:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:23:06' and `end` < '2025-02-15 21:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:23:20] Production.INFO: count ==1505 [2025-02-15 21:23:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:23:06 - End Time 2025-02-15 21:23:06 [2025-02-15 21:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483798', 'tblTempUsageDetail_20' ) start [2025-02-15 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483798', 'tblTempUsageDetail_20' ) end [2025-02-15 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483798', 'tblTempVendorCDR_20' ) start [2025-02-15 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483798', 'tblTempVendorCDR_20' ) end [2025-02-15 21:23:20] Production.INFO: ProcessCDR(1,14483798,1,1,2) [2025-02-15 21:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483798', 'tblTempUsageDetail_20' ) start [2025-02-15 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483798', 'tblTempUsageDetail_20' ) end [2025-02-15 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:23:23] Production.INFO: ==22616== Releasing lock... [2025-02-15 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:23:23] Production.INFO: 39 MB #Memory Used# [2025-02-15 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:24:05 [end_date_ymd] => 2025-02-15 21:24:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:24:05' and `end` < '2025-02-15 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-15 21:24:18] Production.INFO: count ==1501 [2025-02-15 21:24:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:24:05 - End Time 2025-02-15 21:24:05 [2025-02-15 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483803', 'tblTempUsageDetail_20' ) start [2025-02-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483803', 'tblTempUsageDetail_20' ) end [2025-02-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483803', 'tblTempVendorCDR_20' ) start [2025-02-15 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483803', 'tblTempVendorCDR_20' ) end [2025-02-15 21:24:18] Production.INFO: ProcessCDR(1,14483803,1,1,2) [2025-02-15 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483803', 'tblTempUsageDetail_20' ) start [2025-02-15 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483803', 'tblTempUsageDetail_20' ) end [2025-02-15 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:24:23] Production.INFO: ==22745== Releasing lock... [2025-02-15 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:24:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:25:05 [end_date_ymd] => 2025-02-15 21:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:25:05' and `end` < '2025-02-15 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-15 21:25:18] Production.INFO: count ==1499 [2025-02-15 21:25:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:25:05 - End Time 2025-02-15 21:25:05 [2025-02-15 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483808', 'tblTempUsageDetail_20' ) start [2025-02-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483808', 'tblTempUsageDetail_20' ) end [2025-02-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483808', 'tblTempVendorCDR_20' ) start [2025-02-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483808', 'tblTempVendorCDR_20' ) end [2025-02-15 21:25:18] Production.INFO: ProcessCDR(1,14483808,1,1,2) [2025-02-15 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483808', 'tblTempUsageDetail_20' ) start [2025-02-15 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483808', 'tblTempUsageDetail_20' ) end [2025-02-15 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:25:22] Production.INFO: ==22832== Releasing lock... [2025-02-15 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:25:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:26:05 [end_date_ymd] => 2025-02-15 21:26:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:26:05' and `end` < '2025-02-15 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-15 21:26:19] Production.INFO: count ==1501 [2025-02-15 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:26:05 - End Time 2025-02-15 21:26:05 [2025-02-15 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483813', 'tblTempUsageDetail_20' ) start [2025-02-15 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483813', 'tblTempUsageDetail_20' ) end [2025-02-15 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483813', 'tblTempVendorCDR_20' ) start [2025-02-15 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483813', 'tblTempVendorCDR_20' ) end [2025-02-15 21:26:19] Production.INFO: ProcessCDR(1,14483813,1,1,2) [2025-02-15 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483813', 'tblTempUsageDetail_20' ) start [2025-02-15 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483813', 'tblTempUsageDetail_20' ) end [2025-02-15 21:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:26:24] Production.INFO: ==22918== Releasing lock... [2025-02-15 21:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:26:24] Production.INFO: 39 MB #Memory Used# [2025-02-15 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:27:05 [end_date_ymd] => 2025-02-15 21:27:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:27:05' and `end` < '2025-02-15 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-15 21:27:18] Production.INFO: count ==1498 [2025-02-15 21:27:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:27:05 - End Time 2025-02-15 21:27:05 [2025-02-15 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483818', 'tblTempUsageDetail_20' ) start [2025-02-15 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483818', 'tblTempUsageDetail_20' ) end [2025-02-15 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483818', 'tblTempVendorCDR_20' ) start [2025-02-15 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483818', 'tblTempVendorCDR_20' ) end [2025-02-15 21:27:18] Production.INFO: ProcessCDR(1,14483818,1,1,2) [2025-02-15 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483818', 'tblTempUsageDetail_20' ) start [2025-02-15 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483818', 'tblTempUsageDetail_20' ) end [2025-02-15 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:27:22] Production.INFO: ==22998== Releasing lock... [2025-02-15 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:27:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:28:05 [end_date_ymd] => 2025-02-15 21:28:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:28:05' and `end` < '2025-02-15 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-15 21:28:19] Production.INFO: count ==1496 [2025-02-15 21:28:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:28:05 - End Time 2025-02-15 21:28:05 [2025-02-15 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483823', 'tblTempUsageDetail_20' ) start [2025-02-15 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483823', 'tblTempUsageDetail_20' ) end [2025-02-15 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483823', 'tblTempVendorCDR_20' ) start [2025-02-15 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483823', 'tblTempVendorCDR_20' ) end [2025-02-15 21:28:19] Production.INFO: ProcessCDR(1,14483823,1,1,2) [2025-02-15 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483823', 'tblTempUsageDetail_20' ) start [2025-02-15 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483823', 'tblTempUsageDetail_20' ) end [2025-02-15 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:28:24] Production.INFO: ==23081== Releasing lock... [2025-02-15 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:28:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:29:06 [end_date_ymd] => 2025-02-15 21:29:06 [RateCDR] => 1 ) [2025-02-15 21:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:29:06' and `end` < '2025-02-15 21:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:29:20] Production.INFO: count ==1491 [2025-02-15 21:29:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:29:06 - End Time 2025-02-15 21:29:06 [2025-02-15 21:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483828', 'tblTempUsageDetail_20' ) start [2025-02-15 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483828', 'tblTempUsageDetail_20' ) end [2025-02-15 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483828', 'tblTempVendorCDR_20' ) start [2025-02-15 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483828', 'tblTempVendorCDR_20' ) end [2025-02-15 21:29:20] Production.INFO: ProcessCDR(1,14483828,1,1,2) [2025-02-15 21:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483828', 'tblTempUsageDetail_20' ) start [2025-02-15 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483828', 'tblTempUsageDetail_20' ) end [2025-02-15 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:29:23] Production.INFO: ==23167== Releasing lock... [2025-02-15 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:29:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:30:06 [end_date_ymd] => 2025-02-15 21:30:06 [RateCDR] => 1 ) [2025-02-15 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:30:06' and `end` < '2025-02-15 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:30:19] Production.INFO: count ==1493 [2025-02-15 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:30:06 - End Time 2025-02-15 21:30:06 [2025-02-15 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483830', 'tblTempUsageDetail_20' ) start [2025-02-15 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483830', 'tblTempUsageDetail_20' ) end [2025-02-15 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483830', 'tblTempVendorCDR_20' ) start [2025-02-15 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483830', 'tblTempVendorCDR_20' ) end [2025-02-15 21:30:19] Production.INFO: ProcessCDR(1,14483830,1,1,2) [2025-02-15 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483830', 'tblTempUsageDetail_20' ) start [2025-02-15 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483830', 'tblTempUsageDetail_20' ) end [2025-02-15 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:30:23] Production.INFO: ==23259== Releasing lock... [2025-02-15 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:30:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:31:05 [end_date_ymd] => 2025-02-15 21:31:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:31:05' and `end` < '2025-02-15 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-15 21:31:18] Production.INFO: count ==1476 [2025-02-15 21:31:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:31:05 - End Time 2025-02-15 21:31:05 [2025-02-15 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483839', 'tblTempUsageDetail_20' ) start [2025-02-15 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483839', 'tblTempUsageDetail_20' ) end [2025-02-15 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483839', 'tblTempVendorCDR_20' ) start [2025-02-15 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483839', 'tblTempVendorCDR_20' ) end [2025-02-15 21:31:18] Production.INFO: ProcessCDR(1,14483839,1,1,2) [2025-02-15 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483839', 'tblTempUsageDetail_20' ) start [2025-02-15 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483839', 'tblTempUsageDetail_20' ) end [2025-02-15 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:31:23] Production.INFO: ==23349== Releasing lock... [2025-02-15 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:31:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:32:05 [end_date_ymd] => 2025-02-15 21:32:05 [RateCDR] => 1 ) [2025-02-15 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:32:05' and `end` < '2025-02-15 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:32:19] Production.INFO: count ==1475 [2025-02-15 21:32:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:32:05 - End Time 2025-02-15 21:32:05 [2025-02-15 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483844', 'tblTempUsageDetail_20' ) start [2025-02-15 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483844', 'tblTempUsageDetail_20' ) end [2025-02-15 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483844', 'tblTempVendorCDR_20' ) start [2025-02-15 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483844', 'tblTempVendorCDR_20' ) end [2025-02-15 21:32:19] Production.INFO: ProcessCDR(1,14483844,1,1,2) [2025-02-15 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483844', 'tblTempUsageDetail_20' ) start [2025-02-15 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483844', 'tblTempUsageDetail_20' ) end [2025-02-15 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:32:22] Production.INFO: ==23426== Releasing lock... [2025-02-15 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:32:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:33:05 [end_date_ymd] => 2025-02-15 21:33:05 [RateCDR] => 1 ) [2025-02-15 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:33:05' and `end` < '2025-02-15 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:33:20] Production.INFO: count ==1473 [2025-02-15 21:33:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:33:05 - End Time 2025-02-15 21:33:05 [2025-02-15 21:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483849', 'tblTempUsageDetail_20' ) start [2025-02-15 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483849', 'tblTempUsageDetail_20' ) end [2025-02-15 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483849', 'tblTempVendorCDR_20' ) start [2025-02-15 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483849', 'tblTempVendorCDR_20' ) end [2025-02-15 21:33:20] Production.INFO: ProcessCDR(1,14483849,1,1,2) [2025-02-15 21:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483849', 'tblTempUsageDetail_20' ) start [2025-02-15 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483849', 'tblTempUsageDetail_20' ) end [2025-02-15 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:33:23] Production.INFO: ==23496== Releasing lock... [2025-02-15 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:33:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:34:05 [end_date_ymd] => 2025-02-15 21:34:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:34:05' and `end` < '2025-02-15 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-15 21:34:19] Production.INFO: count ==1469 [2025-02-15 21:34:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:34:05 - End Time 2025-02-15 21:34:05 [2025-02-15 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483854', 'tblTempUsageDetail_20' ) start [2025-02-15 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483854', 'tblTempUsageDetail_20' ) end [2025-02-15 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483854', 'tblTempVendorCDR_20' ) start [2025-02-15 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483854', 'tblTempVendorCDR_20' ) end [2025-02-15 21:34:19] Production.INFO: ProcessCDR(1,14483854,1,1,2) [2025-02-15 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483854', 'tblTempUsageDetail_20' ) start [2025-02-15 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483854', 'tblTempUsageDetail_20' ) end [2025-02-15 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:34:23] Production.INFO: ==23571== Releasing lock... [2025-02-15 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:34:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-15 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:35:05 [end_date_ymd] => 2025-02-15 21:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:35:05' and `end` < '2025-02-15 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-15 21:35:18] Production.INFO: count ==1469 [2025-02-15 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:35:05 - End Time 2025-02-15 21:35:05 [2025-02-15 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483859', 'tblTempUsageDetail_20' ) start [2025-02-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483859', 'tblTempUsageDetail_20' ) end [2025-02-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483859', 'tblTempVendorCDR_20' ) start [2025-02-15 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483859', 'tblTempVendorCDR_20' ) end [2025-02-15 21:35:18] Production.INFO: ProcessCDR(1,14483859,1,1,2) [2025-02-15 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483859', 'tblTempUsageDetail_20' ) start [2025-02-15 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483859', 'tblTempUsageDetail_20' ) end [2025-02-15 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:35:23] Production.INFO: ==23644== Releasing lock... [2025-02-15 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:35:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-15 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:36:05 [end_date_ymd] => 2025-02-15 21:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:36:05' and `end` < '2025-02-15 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-15 21:36:18] Production.INFO: count ==1469 [2025-02-15 21:36:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:36:05 - End Time 2025-02-15 21:36:05 [2025-02-15 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483864', 'tblTempUsageDetail_20' ) start [2025-02-15 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483864', 'tblTempUsageDetail_20' ) end [2025-02-15 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483864', 'tblTempVendorCDR_20' ) start [2025-02-15 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483864', 'tblTempVendorCDR_20' ) end [2025-02-15 21:36:18] Production.INFO: ProcessCDR(1,14483864,1,1,2) [2025-02-15 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483864', 'tblTempUsageDetail_20' ) start [2025-02-15 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483864', 'tblTempUsageDetail_20' ) end [2025-02-15 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:36:21] Production.INFO: ==23727== Releasing lock... [2025-02-15 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:36:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-15 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:37:05 [end_date_ymd] => 2025-02-15 21:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:37:05' and `end` < '2025-02-15 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-15 21:37:18] Production.INFO: count ==1466 [2025-02-15 21:37:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:37:05 - End Time 2025-02-15 21:37:05 [2025-02-15 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483869', 'tblTempUsageDetail_20' ) start [2025-02-15 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483869', 'tblTempUsageDetail_20' ) end [2025-02-15 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483869', 'tblTempVendorCDR_20' ) start [2025-02-15 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483869', 'tblTempVendorCDR_20' ) end [2025-02-15 21:37:18] Production.INFO: ProcessCDR(1,14483869,1,1,2) [2025-02-15 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483869', 'tblTempUsageDetail_20' ) start [2025-02-15 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483869', 'tblTempUsageDetail_20' ) end [2025-02-15 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:37:23] Production.INFO: ==23804== Releasing lock... [2025-02-15 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:37:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:38:05 [end_date_ymd] => 2025-02-15 21:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:38:05' and `end` < '2025-02-15 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-15 21:38:19] Production.INFO: count ==1466 [2025-02-15 21:38:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:38:05 - End Time 2025-02-15 21:38:05 [2025-02-15 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483874', 'tblTempUsageDetail_20' ) start [2025-02-15 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483874', 'tblTempUsageDetail_20' ) end [2025-02-15 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483874', 'tblTempVendorCDR_20' ) start [2025-02-15 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483874', 'tblTempVendorCDR_20' ) end [2025-02-15 21:38:19] Production.INFO: ProcessCDR(1,14483874,1,1,2) [2025-02-15 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483874', 'tblTempUsageDetail_20' ) start [2025-02-15 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483874', 'tblTempUsageDetail_20' ) end [2025-02-15 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:38:23] Production.INFO: ==23883== Releasing lock... [2025-02-15 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:38:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-15 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:39:05 [end_date_ymd] => 2025-02-15 21:39:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:39:05' and `end` < '2025-02-15 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-15 21:39:19] Production.INFO: count ==1462 [2025-02-15 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:39:05 - End Time 2025-02-15 21:39:05 [2025-02-15 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483879', 'tblTempUsageDetail_20' ) start [2025-02-15 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483879', 'tblTempUsageDetail_20' ) end [2025-02-15 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483879', 'tblTempVendorCDR_20' ) start [2025-02-15 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483879', 'tblTempVendorCDR_20' ) end [2025-02-15 21:39:19] Production.INFO: ProcessCDR(1,14483879,1,1,2) [2025-02-15 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483879', 'tblTempUsageDetail_20' ) start [2025-02-15 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483879', 'tblTempUsageDetail_20' ) end [2025-02-15 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:39:23] Production.INFO: ==24003== Releasing lock... [2025-02-15 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:39:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-15 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:40:06 [end_date_ymd] => 2025-02-15 21:40:06 [RateCDR] => 1 ) [2025-02-15 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-15 18:40:06' and `end` < '2025-02-15 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-15 21:40:20] Production.INFO: count ==1457 [2025-02-15 21:40:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:40:06 - End Time 2025-02-15 21:40:06 [2025-02-15 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483884', 'tblTempUsageDetail_20' ) start [2025-02-15 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483884', 'tblTempUsageDetail_20' ) end [2025-02-15 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483884', 'tblTempVendorCDR_20' ) start [2025-02-15 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483884', 'tblTempVendorCDR_20' ) end [2025-02-15 21:40:20] Production.INFO: ProcessCDR(1,14483884,1,1,2) [2025-02-15 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483884', 'tblTempUsageDetail_20' ) start [2025-02-15 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483884', 'tblTempUsageDetail_20' ) end [2025-02-15 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:40:23] Production.INFO: ==24081== Releasing lock... [2025-02-15 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:40:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-15 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:41:05 [end_date_ymd] => 2025-02-15 21:41:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:41:05' and `end` < '2025-02-15 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-15 21:41:18] Production.INFO: count ==1429 [2025-02-15 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:41:05 - End Time 2025-02-15 21:41:05 [2025-02-15 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483890', 'tblTempUsageDetail_20' ) start [2025-02-15 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483890', 'tblTempUsageDetail_20' ) end [2025-02-15 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483890', 'tblTempVendorCDR_20' ) start [2025-02-15 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483890', 'tblTempVendorCDR_20' ) end [2025-02-15 21:41:19] Production.INFO: ProcessCDR(1,14483890,1,1,2) [2025-02-15 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483890', 'tblTempUsageDetail_20' ) start [2025-02-15 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483890', 'tblTempUsageDetail_20' ) end [2025-02-15 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:41:22] Production.INFO: ==24161== Releasing lock... [2025-02-15 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:41:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:42:05 [end_date_ymd] => 2025-02-15 21:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:42:05' and `end` < '2025-02-15 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-15 21:42:19] Production.INFO: count ==1426 [2025-02-15 21:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:42:05 - End Time 2025-02-15 21:42:05 [2025-02-15 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483895', 'tblTempUsageDetail_20' ) start [2025-02-15 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483895', 'tblTempUsageDetail_20' ) end [2025-02-15 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483895', 'tblTempVendorCDR_20' ) start [2025-02-15 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483895', 'tblTempVendorCDR_20' ) end [2025-02-15 21:42:19] Production.INFO: ProcessCDR(1,14483895,1,1,2) [2025-02-15 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483895', 'tblTempUsageDetail_20' ) start [2025-02-15 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483895', 'tblTempUsageDetail_20' ) end [2025-02-15 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:42:22] Production.INFO: ==24239== Releasing lock... [2025-02-15 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:42:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:43:06 [end_date_ymd] => 2025-02-15 21:43:06 [RateCDR] => 1 ) [2025-02-15 21:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:43:06' and `end` < '2025-02-15 21:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:43:20] Production.INFO: count ==1419 [2025-02-15 21:43:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:43:06 - End Time 2025-02-15 21:43:06 [2025-02-15 21:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483900', 'tblTempUsageDetail_20' ) start [2025-02-15 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483900', 'tblTempUsageDetail_20' ) end [2025-02-15 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483900', 'tblTempVendorCDR_20' ) start [2025-02-15 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483900', 'tblTempVendorCDR_20' ) end [2025-02-15 21:43:20] Production.INFO: ProcessCDR(1,14483900,1,1,2) [2025-02-15 21:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483900', 'tblTempUsageDetail_20' ) start [2025-02-15 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483900', 'tblTempUsageDetail_20' ) end [2025-02-15 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:43:23] Production.INFO: ==24314== Releasing lock... [2025-02-15 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:43:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:44:05 [end_date_ymd] => 2025-02-15 21:44:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:44:05' and `end` < '2025-02-15 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-15 21:44:18] Production.INFO: count ==1417 [2025-02-15 21:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:44:05 - End Time 2025-02-15 21:44:05 [2025-02-15 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483905', 'tblTempUsageDetail_20' ) start [2025-02-15 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483905', 'tblTempUsageDetail_20' ) end [2025-02-15 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483905', 'tblTempVendorCDR_20' ) start [2025-02-15 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483905', 'tblTempVendorCDR_20' ) end [2025-02-15 21:44:19] Production.INFO: ProcessCDR(1,14483905,1,1,2) [2025-02-15 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483905', 'tblTempUsageDetail_20' ) start [2025-02-15 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483905', 'tblTempUsageDetail_20' ) end [2025-02-15 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:44:22] Production.INFO: ==24391== Releasing lock... [2025-02-15 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:44:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:45:05 [end_date_ymd] => 2025-02-15 21:45:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:45:05' and `end` < '2025-02-15 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-15 21:45:19] Production.INFO: count ==1416 [2025-02-15 21:45:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:45:05 - End Time 2025-02-15 21:45:05 [2025-02-15 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483910', 'tblTempUsageDetail_20' ) start [2025-02-15 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483910', 'tblTempUsageDetail_20' ) end [2025-02-15 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483910', 'tblTempVendorCDR_20' ) start [2025-02-15 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483910', 'tblTempVendorCDR_20' ) end [2025-02-15 21:45:19] Production.INFO: ProcessCDR(1,14483910,1,1,2) [2025-02-15 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483910', 'tblTempUsageDetail_20' ) start [2025-02-15 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483910', 'tblTempUsageDetail_20' ) end [2025-02-15 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:45:22] Production.INFO: ==24473== Releasing lock... [2025-02-15 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:45:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:46:05 [end_date_ymd] => 2025-02-15 21:46:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:46:05' and `end` < '2025-02-15 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-15 21:46:18] Production.INFO: count ==1416 [2025-02-15 21:46:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:46:05 - End Time 2025-02-15 21:46:05 [2025-02-15 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483915', 'tblTempUsageDetail_20' ) start [2025-02-15 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483915', 'tblTempUsageDetail_20' ) end [2025-02-15 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483915', 'tblTempVendorCDR_20' ) start [2025-02-15 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483915', 'tblTempVendorCDR_20' ) end [2025-02-15 21:46:18] Production.INFO: ProcessCDR(1,14483915,1,1,2) [2025-02-15 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483915', 'tblTempUsageDetail_20' ) start [2025-02-15 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483915', 'tblTempUsageDetail_20' ) end [2025-02-15 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:46:23] Production.INFO: ==24552== Releasing lock... [2025-02-15 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:46:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:47:05 [end_date_ymd] => 2025-02-15 21:47:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:47:05' and `end` < '2025-02-15 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-15 21:47:18] Production.INFO: count ==1417 [2025-02-15 21:47:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:47:05 - End Time 2025-02-15 21:47:05 [2025-02-15 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483920', 'tblTempUsageDetail_20' ) start [2025-02-15 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483920', 'tblTempUsageDetail_20' ) end [2025-02-15 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483920', 'tblTempVendorCDR_20' ) start [2025-02-15 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483920', 'tblTempVendorCDR_20' ) end [2025-02-15 21:47:19] Production.INFO: ProcessCDR(1,14483920,1,1,2) [2025-02-15 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483920', 'tblTempUsageDetail_20' ) start [2025-02-15 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483920', 'tblTempUsageDetail_20' ) end [2025-02-15 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:47:22] Production.INFO: ==24630== Releasing lock... [2025-02-15 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:47:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:48:05 [end_date_ymd] => 2025-02-15 21:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:48:05' and `end` < '2025-02-15 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-15 21:48:19] Production.INFO: count ==1427 [2025-02-15 21:48:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:48:05 - End Time 2025-02-15 21:48:05 [2025-02-15 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483925', 'tblTempUsageDetail_20' ) start [2025-02-15 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483925', 'tblTempUsageDetail_20' ) end [2025-02-15 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483925', 'tblTempVendorCDR_20' ) start [2025-02-15 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483925', 'tblTempVendorCDR_20' ) end [2025-02-15 21:48:19] Production.INFO: ProcessCDR(1,14483925,1,1,2) [2025-02-15 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483925', 'tblTempUsageDetail_20' ) start [2025-02-15 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483925', 'tblTempUsageDetail_20' ) end [2025-02-15 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:48:22] Production.INFO: ==24706== Releasing lock... [2025-02-15 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:48:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:49:05 [end_date_ymd] => 2025-02-15 21:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:49:05' and `end` < '2025-02-15 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-15 21:49:18] Production.INFO: count ==1436 [2025-02-15 21:49:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:49:05 - End Time 2025-02-15 21:49:05 [2025-02-15 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483930', 'tblTempUsageDetail_20' ) start [2025-02-15 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483930', 'tblTempUsageDetail_20' ) end [2025-02-15 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483930', 'tblTempVendorCDR_20' ) start [2025-02-15 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483930', 'tblTempVendorCDR_20' ) end [2025-02-15 21:49:19] Production.INFO: ProcessCDR(1,14483930,1,1,2) [2025-02-15 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483930', 'tblTempUsageDetail_20' ) start [2025-02-15 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483930', 'tblTempUsageDetail_20' ) end [2025-02-15 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:49:23] Production.INFO: ==24785== Releasing lock... [2025-02-15 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:49:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:50:06 [end_date_ymd] => 2025-02-15 21:50:06 [RateCDR] => 1 ) [2025-02-15 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-15 18:50:06' and `end` < '2025-02-15 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-15 21:50:19] Production.INFO: count ==1435 [2025-02-15 21:50:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:50:06 - End Time 2025-02-15 21:50:06 [2025-02-15 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483936', 'tblTempUsageDetail_20' ) start [2025-02-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483936', 'tblTempUsageDetail_20' ) end [2025-02-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483936', 'tblTempVendorCDR_20' ) start [2025-02-15 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483936', 'tblTempVendorCDR_20' ) end [2025-02-15 21:50:19] Production.INFO: ProcessCDR(1,14483936,1,1,2) [2025-02-15 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483936', 'tblTempUsageDetail_20' ) start [2025-02-15 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483936', 'tblTempUsageDetail_20' ) end [2025-02-15 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:50:22] Production.INFO: ==24866== Releasing lock... [2025-02-15 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:50:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:51:06 [end_date_ymd] => 2025-02-15 21:51:06 [RateCDR] => 1 ) [2025-02-15 21: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-15 18:51:06' and `end` < '2025-02-15 21: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-15 21:51:19] Production.INFO: count ==1413 [2025-02-15 21:51:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:51:06 - End Time 2025-02-15 21:51:06 [2025-02-15 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483941', 'tblTempUsageDetail_20' ) start [2025-02-15 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483941', 'tblTempUsageDetail_20' ) end [2025-02-15 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483941', 'tblTempVendorCDR_20' ) start [2025-02-15 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483941', 'tblTempVendorCDR_20' ) end [2025-02-15 21:51:19] Production.INFO: ProcessCDR(1,14483941,1,1,2) [2025-02-15 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483941', 'tblTempUsageDetail_20' ) start [2025-02-15 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483941', 'tblTempUsageDetail_20' ) end [2025-02-15 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:51:23] Production.INFO: ==24948== Releasing lock... [2025-02-15 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:51:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:52:05 [end_date_ymd] => 2025-02-15 21:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:52:05' and `end` < '2025-02-15 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-15 21:52:18] Production.INFO: count ==1410 [2025-02-15 21:52:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:52:05 - End Time 2025-02-15 21:52:05 [2025-02-15 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483946', 'tblTempUsageDetail_20' ) start [2025-02-15 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483946', 'tblTempUsageDetail_20' ) end [2025-02-15 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483946', 'tblTempVendorCDR_20' ) start [2025-02-15 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483946', 'tblTempVendorCDR_20' ) end [2025-02-15 21:52:18] Production.INFO: ProcessCDR(1,14483946,1,1,2) [2025-02-15 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483946', 'tblTempUsageDetail_20' ) start [2025-02-15 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483946', 'tblTempUsageDetail_20' ) end [2025-02-15 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:52:22] Production.INFO: ==25028== Releasing lock... [2025-02-15 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:52:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:53:05 [end_date_ymd] => 2025-02-15 21:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:53:05' and `end` < '2025-02-15 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-15 21:53:19] Production.INFO: count ==1409 [2025-02-15 21:53:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:53:05 - End Time 2025-02-15 21:53:05 [2025-02-15 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483951', 'tblTempUsageDetail_20' ) start [2025-02-15 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483951', 'tblTempUsageDetail_20' ) end [2025-02-15 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483951', 'tblTempVendorCDR_20' ) start [2025-02-15 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483951', 'tblTempVendorCDR_20' ) end [2025-02-15 21:53:19] Production.INFO: ProcessCDR(1,14483951,1,1,2) [2025-02-15 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483951', 'tblTempUsageDetail_20' ) start [2025-02-15 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483951', 'tblTempUsageDetail_20' ) end [2025-02-15 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:53:22] Production.INFO: ==25110== Releasing lock... [2025-02-15 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-15 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:54:05 [end_date_ymd] => 2025-02-15 21:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:54:05' and `end` < '2025-02-15 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-15 21:54:19] Production.INFO: count ==1406 [2025-02-15 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:54:05 - End Time 2025-02-15 21:54:05 [2025-02-15 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483956', 'tblTempUsageDetail_20' ) start [2025-02-15 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483956', 'tblTempUsageDetail_20' ) end [2025-02-15 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483956', 'tblTempVendorCDR_20' ) start [2025-02-15 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483956', 'tblTempVendorCDR_20' ) end [2025-02-15 21:54:19] Production.INFO: ProcessCDR(1,14483956,1,1,2) [2025-02-15 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483956', 'tblTempUsageDetail_20' ) start [2025-02-15 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483956', 'tblTempUsageDetail_20' ) end [2025-02-15 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:54:22] Production.INFO: ==25226== Releasing lock... [2025-02-15 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:54:22] Production.INFO: 38 MB #Memory Used# [2025-02-15 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:55:05 [end_date_ymd] => 2025-02-15 21:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:55:05' and `end` < '2025-02-15 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-15 21:55:18] Production.INFO: count ==1406 [2025-02-15 21:55:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:55:05 - End Time 2025-02-15 21:55:05 [2025-02-15 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483961', 'tblTempUsageDetail_20' ) start [2025-02-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483961', 'tblTempUsageDetail_20' ) end [2025-02-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483961', 'tblTempVendorCDR_20' ) start [2025-02-15 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483961', 'tblTempVendorCDR_20' ) end [2025-02-15 21:55:18] Production.INFO: ProcessCDR(1,14483961,1,1,2) [2025-02-15 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483961', 'tblTempUsageDetail_20' ) start [2025-02-15 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483961', 'tblTempUsageDetail_20' ) end [2025-02-15 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:55:22] Production.INFO: ==25308== Releasing lock... [2025-02-15 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:55:22] Production.INFO: 38 MB #Memory Used# [2025-02-15 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:56:05 [end_date_ymd] => 2025-02-15 21:56:05 [RateCDR] => 1 ) [2025-02-15 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:56:05' and `end` < '2025-02-15 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-15 21:56:19] Production.INFO: count ==1401 [2025-02-15 21:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:56:05 - End Time 2025-02-15 21:56:05 [2025-02-15 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483966', 'tblTempUsageDetail_20' ) start [2025-02-15 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483966', 'tblTempUsageDetail_20' ) end [2025-02-15 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483966', 'tblTempVendorCDR_20' ) start [2025-02-15 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483966', 'tblTempVendorCDR_20' ) end [2025-02-15 21:56:19] Production.INFO: ProcessCDR(1,14483966,1,1,2) [2025-02-15 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483966', 'tblTempUsageDetail_20' ) start [2025-02-15 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483966', 'tblTempUsageDetail_20' ) end [2025-02-15 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:56:22] Production.INFO: ==25389== Releasing lock... [2025-02-15 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:56:22] Production.INFO: 38 MB #Memory Used# [2025-02-15 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:57:05 [end_date_ymd] => 2025-02-15 21:57:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:57:05' and `end` < '2025-02-15 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-15 21:57:19] Production.INFO: count ==1389 [2025-02-15 21:57:20] Production.ERROR: pbx CDR StartTime 2025-02-15 18:57:05 - End Time 2025-02-15 21:57:05 [2025-02-15 21:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483971', 'tblTempUsageDetail_20' ) start [2025-02-15 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483971', 'tblTempUsageDetail_20' ) end [2025-02-15 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483971', 'tblTempVendorCDR_20' ) start [2025-02-15 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483971', 'tblTempVendorCDR_20' ) end [2025-02-15 21:57:20] Production.INFO: ProcessCDR(1,14483971,1,1,2) [2025-02-15 21:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483971', 'tblTempUsageDetail_20' ) start [2025-02-15 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483971', 'tblTempUsageDetail_20' ) end [2025-02-15 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:57:23] Production.INFO: ==25469== Releasing lock... [2025-02-15 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:57:23] Production.INFO: 38 MB #Memory Used# [2025-02-15 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:58:05 [end_date_ymd] => 2025-02-15 21:58:05 [RateCDR] => 1 ) [2025-02-15 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 18:58:05' and `end` < '2025-02-15 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 21:58:19] Production.INFO: count ==1382 [2025-02-15 21:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 18:58:05 - End Time 2025-02-15 21:58:05 [2025-02-15 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483976', 'tblTempUsageDetail_20' ) start [2025-02-15 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483976', 'tblTempUsageDetail_20' ) end [2025-02-15 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483976', 'tblTempVendorCDR_20' ) start [2025-02-15 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483976', 'tblTempVendorCDR_20' ) end [2025-02-15 21:58:19] Production.INFO: ProcessCDR(1,14483976,1,1,2) [2025-02-15 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483976', 'tblTempUsageDetail_20' ) start [2025-02-15 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483976', 'tblTempUsageDetail_20' ) end [2025-02-15 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:58:22] Production.INFO: ==25550== Releasing lock... [2025-02-15 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:58:22] Production.INFO: 38 MB #Memory Used# [2025-02-15 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 18:59:05 [end_date_ymd] => 2025-02-15 21:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 18:59:05' and `end` < '2025-02-15 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-15 21:59:18] Production.INFO: count ==1378 [2025-02-15 21:59:18] Production.ERROR: pbx CDR StartTime 2025-02-15 18:59:05 - End Time 2025-02-15 21:59:05 [2025-02-15 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483981', 'tblTempUsageDetail_20' ) start [2025-02-15 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483981', 'tblTempUsageDetail_20' ) end [2025-02-15 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483981', 'tblTempVendorCDR_20' ) start [2025-02-15 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483981', 'tblTempVendorCDR_20' ) end [2025-02-15 21:59:18] Production.INFO: ProcessCDR(1,14483981,1,1,2) [2025-02-15 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483981', 'tblTempUsageDetail_20' ) start [2025-02-15 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483981', 'tblTempUsageDetail_20' ) end [2025-02-15 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 21:59:22] Production.INFO: ==25624== Releasing lock... [2025-02-15 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 21:59:22] Production.INFO: 38 MB #Memory Used# [2025-02-15 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:00:07 [end_date_ymd] => 2025-02-15 22:00:07 [RateCDR] => 1 ) [2025-02-15 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-15 19:00:07' and `end` < '2025-02-15 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-15 22:00:20] Production.INFO: count ==1381 [2025-02-15 22:00:21] Production.ERROR: pbx CDR StartTime 2025-02-15 19:00:07 - End Time 2025-02-15 22:00:07 [2025-02-15 22:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483987', 'tblTempUsageDetail_20' ) start [2025-02-15 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483987', 'tblTempUsageDetail_20' ) end [2025-02-15 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483987', 'tblTempVendorCDR_20' ) start [2025-02-15 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483987', 'tblTempVendorCDR_20' ) end [2025-02-15 22:00:21] Production.INFO: ProcessCDR(1,14483987,1,1,2) [2025-02-15 22:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483987', 'tblTempUsageDetail_20' ) start [2025-02-15 22:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483987', 'tblTempUsageDetail_20' ) end [2025-02-15 22:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:00:25] Production.INFO: ==25708== Releasing lock... [2025-02-15 22:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:00:25] Production.INFO: 38 MB #Memory Used# [2025-02-15 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:01:05 [end_date_ymd] => 2025-02-15 22:01:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:01:05' and `end` < '2025-02-15 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-15 22:01:19] Production.INFO: count ==1344 [2025-02-15 22:01:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:01:05 - End Time 2025-02-15 22:01:05 [2025-02-15 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483992', 'tblTempUsageDetail_20' ) start [2025-02-15 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483992', 'tblTempUsageDetail_20' ) end [2025-02-15 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483992', 'tblTempVendorCDR_20' ) start [2025-02-15 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483992', 'tblTempVendorCDR_20' ) end [2025-02-15 22:01:19] Production.INFO: ProcessCDR(1,14483992,1,1,2) [2025-02-15 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483992', 'tblTempUsageDetail_20' ) start [2025-02-15 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483992', 'tblTempUsageDetail_20' ) end [2025-02-15 22:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:01:24] Production.INFO: ==25802== Releasing lock... [2025-02-15 22:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:01:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-15 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:02:05 [end_date_ymd] => 2025-02-15 22:02:05 [RateCDR] => 1 ) [2025-02-15 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:02:05' and `end` < '2025-02-15 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:02:18] Production.INFO: count ==1330 [2025-02-15 22:02:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:02:05 - End Time 2025-02-15 22:02:05 [2025-02-15 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483997', 'tblTempUsageDetail_20' ) start [2025-02-15 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14483997', 'tblTempUsageDetail_20' ) end [2025-02-15 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483997', 'tblTempVendorCDR_20' ) start [2025-02-15 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14483997', 'tblTempVendorCDR_20' ) end [2025-02-15 22:02:19] Production.INFO: ProcessCDR(1,14483997,1,1,2) [2025-02-15 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14483997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14483997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14483997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14483997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483997', 'tblTempUsageDetail_20' ) start [2025-02-15 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14483997', 'tblTempUsageDetail_20' ) end [2025-02-15 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:02:23] Production.INFO: ==25877== Releasing lock... [2025-02-15 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:02:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:03:04 [end_date_ymd] => 2025-02-15 22:03:04 [RateCDR] => 1 ) [2025-02-15 22: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-15 19:03:04' and `end` < '2025-02-15 22: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-15 22:03:18] Production.INFO: count ==1324 [2025-02-15 22:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:03:04 - End Time 2025-02-15 22:03:04 [2025-02-15 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484002', 'tblTempUsageDetail_20' ) start [2025-02-15 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484002', 'tblTempUsageDetail_20' ) end [2025-02-15 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484002', 'tblTempVendorCDR_20' ) start [2025-02-15 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484002', 'tblTempVendorCDR_20' ) end [2025-02-15 22:03:19] Production.INFO: ProcessCDR(1,14484002,1,1,2) [2025-02-15 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484002', 'tblTempUsageDetail_20' ) start [2025-02-15 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484002', 'tblTempUsageDetail_20' ) end [2025-02-15 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:03:22] Production.INFO: ==25951== Releasing lock... [2025-02-15 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:03:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:04:05 [end_date_ymd] => 2025-02-15 22:04:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:04:05' and `end` < '2025-02-15 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-15 22:04:18] Production.INFO: count ==1316 [2025-02-15 22:04:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:04:05 - End Time 2025-02-15 22:04:05 [2025-02-15 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484007', 'tblTempUsageDetail_20' ) start [2025-02-15 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484007', 'tblTempUsageDetail_20' ) end [2025-02-15 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484007', 'tblTempVendorCDR_20' ) start [2025-02-15 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484007', 'tblTempVendorCDR_20' ) end [2025-02-15 22:04:19] Production.INFO: ProcessCDR(1,14484007,1,1,2) [2025-02-15 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484007', 'tblTempUsageDetail_20' ) start [2025-02-15 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484007', 'tblTempUsageDetail_20' ) end [2025-02-15 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:04:22] Production.INFO: ==26032== Releasing lock... [2025-02-15 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:04:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:05:04 [end_date_ymd] => 2025-02-15 22:05:04 [RateCDR] => 1 ) [2025-02-15 22: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-15 19:05:04' and `end` < '2025-02-15 22: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-15 22:05:18] Production.INFO: count ==1314 [2025-02-15 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:05:04 - End Time 2025-02-15 22:05:04 [2025-02-15 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484012', 'tblTempUsageDetail_20' ) start [2025-02-15 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484012', 'tblTempUsageDetail_20' ) end [2025-02-15 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484012', 'tblTempVendorCDR_20' ) start [2025-02-15 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484012', 'tblTempVendorCDR_20' ) end [2025-02-15 22:05:18] Production.INFO: ProcessCDR(1,14484012,1,1,2) [2025-02-15 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484012', 'tblTempUsageDetail_20' ) start [2025-02-15 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484012', 'tblTempUsageDetail_20' ) end [2025-02-15 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:05:21] Production.INFO: ==26116== Releasing lock... [2025-02-15 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:05:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:06:05 [end_date_ymd] => 2025-02-15 22:06:05 [RateCDR] => 1 ) [2025-02-15 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:06:05' and `end` < '2025-02-15 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:06:18] Production.INFO: count ==1309 [2025-02-15 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:06:05 - End Time 2025-02-15 22:06:05 [2025-02-15 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484017', 'tblTempUsageDetail_20' ) start [2025-02-15 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484017', 'tblTempUsageDetail_20' ) end [2025-02-15 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484017', 'tblTempVendorCDR_20' ) start [2025-02-15 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484017', 'tblTempVendorCDR_20' ) end [2025-02-15 22:06:18] Production.INFO: ProcessCDR(1,14484017,1,1,2) [2025-02-15 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484017', 'tblTempUsageDetail_20' ) start [2025-02-15 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484017', 'tblTempUsageDetail_20' ) end [2025-02-15 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:06:22] Production.INFO: ==26195== Releasing lock... [2025-02-15 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:06:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:07:06 [end_date_ymd] => 2025-02-15 22:07:06 [RateCDR] => 1 ) [2025-02-15 22:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:07:06' and `end` < '2025-02-15 22:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:07:20] Production.INFO: count ==1310 [2025-02-15 22:07:21] Production.ERROR: pbx CDR StartTime 2025-02-15 19:07:06 - End Time 2025-02-15 22:07:06 [2025-02-15 22:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484022', 'tblTempUsageDetail_20' ) start [2025-02-15 22:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484022', 'tblTempUsageDetail_20' ) end [2025-02-15 22:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484022', 'tblTempVendorCDR_20' ) start [2025-02-15 22:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484022', 'tblTempVendorCDR_20' ) end [2025-02-15 22:07:21] Production.INFO: ProcessCDR(1,14484022,1,1,2) [2025-02-15 22:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484022', 'tblTempUsageDetail_20' ) start [2025-02-15 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484022', 'tblTempUsageDetail_20' ) end [2025-02-15 22:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:07:24] Production.INFO: ==26274== Releasing lock... [2025-02-15 22:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:07:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:08:06 [end_date_ymd] => 2025-02-15 22:08:06 [RateCDR] => 1 ) [2025-02-15 22:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:08:06' and `end` < '2025-02-15 22:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:08:19] Production.INFO: count ==1310 [2025-02-15 22:08:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:08:06 - End Time 2025-02-15 22:08:06 [2025-02-15 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484027', 'tblTempUsageDetail_20' ) start [2025-02-15 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484027', 'tblTempUsageDetail_20' ) end [2025-02-15 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484027', 'tblTempVendorCDR_20' ) start [2025-02-15 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484027', 'tblTempVendorCDR_20' ) end [2025-02-15 22:08:19] Production.INFO: ProcessCDR(1,14484027,1,1,2) [2025-02-15 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484027', 'tblTempUsageDetail_20' ) start [2025-02-15 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484027', 'tblTempUsageDetail_20' ) end [2025-02-15 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:08:23] Production.INFO: ==26351== Releasing lock... [2025-02-15 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:08:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:09:04 [end_date_ymd] => 2025-02-15 22:09:04 [RateCDR] => 1 ) [2025-02-15 22: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-15 19:09:04' and `end` < '2025-02-15 22: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-15 22:09:17] Production.INFO: count ==1304 [2025-02-15 22:09:17] Production.ERROR: pbx CDR StartTime 2025-02-15 19:09:04 - End Time 2025-02-15 22:09:04 [2025-02-15 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484032', 'tblTempUsageDetail_20' ) start [2025-02-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484032', 'tblTempUsageDetail_20' ) end [2025-02-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484032', 'tblTempVendorCDR_20' ) start [2025-02-15 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484032', 'tblTempVendorCDR_20' ) end [2025-02-15 22:09:17] Production.INFO: ProcessCDR(1,14484032,1,1,2) [2025-02-15 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484032', 'tblTempUsageDetail_20' ) start [2025-02-15 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484032', 'tblTempUsageDetail_20' ) end [2025-02-15 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:09:21] Production.INFO: ==26427== Releasing lock... [2025-02-15 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:09:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-15 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:10:06 [end_date_ymd] => 2025-02-15 22:10:06 [RateCDR] => 1 ) [2025-02-15 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:10:06' and `end` < '2025-02-15 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:10:19] Production.INFO: count ==1307 [2025-02-15 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:10:06 - End Time 2025-02-15 22:10:06 [2025-02-15 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484038', 'tblTempUsageDetail_20' ) start [2025-02-15 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484038', 'tblTempUsageDetail_20' ) end [2025-02-15 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484038', 'tblTempVendorCDR_20' ) start [2025-02-15 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484038', 'tblTempVendorCDR_20' ) end [2025-02-15 22:10:19] Production.INFO: ProcessCDR(1,14484038,1,1,2) [2025-02-15 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484038', 'tblTempUsageDetail_20' ) start [2025-02-15 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484038', 'tblTempUsageDetail_20' ) end [2025-02-15 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:10:22] Production.INFO: ==26544== Releasing lock... [2025-02-15 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:10:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:11:05 [end_date_ymd] => 2025-02-15 22:11:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:11:05' and `end` < '2025-02-15 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-15 22:11:19] Production.INFO: count ==1277 [2025-02-15 22:11:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:11:05 - End Time 2025-02-15 22:11:05 [2025-02-15 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484043', 'tblTempUsageDetail_20' ) start [2025-02-15 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484043', 'tblTempUsageDetail_20' ) end [2025-02-15 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484043', 'tblTempVendorCDR_20' ) start [2025-02-15 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484043', 'tblTempVendorCDR_20' ) end [2025-02-15 22:11:19] Production.INFO: ProcessCDR(1,14484043,1,1,2) [2025-02-15 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484043', 'tblTempUsageDetail_20' ) start [2025-02-15 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484043', 'tblTempUsageDetail_20' ) end [2025-02-15 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:11:23] Production.INFO: ==26631== Releasing lock... [2025-02-15 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:11:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-15 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:12:05 [end_date_ymd] => 2025-02-15 22:12:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:12:05' and `end` < '2025-02-15 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-15 22:12:18] Production.INFO: count ==1277 [2025-02-15 22:12:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:12:05 - End Time 2025-02-15 22:12:05 [2025-02-15 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484048', 'tblTempUsageDetail_20' ) start [2025-02-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484048', 'tblTempUsageDetail_20' ) end [2025-02-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484048', 'tblTempVendorCDR_20' ) start [2025-02-15 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484048', 'tblTempVendorCDR_20' ) end [2025-02-15 22:12:18] Production.INFO: ProcessCDR(1,14484048,1,1,2) [2025-02-15 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484048', 'tblTempUsageDetail_20' ) start [2025-02-15 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484048', 'tblTempUsageDetail_20' ) end [2025-02-15 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:12:21] Production.INFO: ==26713== Releasing lock... [2025-02-15 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:12:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-15 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:13:05 [end_date_ymd] => 2025-02-15 22:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:13:05' and `end` < '2025-02-15 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-15 22:13:19] Production.INFO: count ==1285 [2025-02-15 22:13:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:13:05 - End Time 2025-02-15 22:13:05 [2025-02-15 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484053', 'tblTempUsageDetail_20' ) start [2025-02-15 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484053', 'tblTempUsageDetail_20' ) end [2025-02-15 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484053', 'tblTempVendorCDR_20' ) start [2025-02-15 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484053', 'tblTempVendorCDR_20' ) end [2025-02-15 22:13:19] Production.INFO: ProcessCDR(1,14484053,1,1,2) [2025-02-15 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484053', 'tblTempUsageDetail_20' ) start [2025-02-15 22:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484053', 'tblTempUsageDetail_20' ) end [2025-02-15 22:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:13:24] Production.INFO: ==26800== Releasing lock... [2025-02-15 22:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:13:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-15 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:14:05 [end_date_ymd] => 2025-02-15 22:14:05 [RateCDR] => 1 ) [2025-02-15 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:14:05' and `end` < '2025-02-15 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:14:18] Production.INFO: count ==1293 [2025-02-15 22:14:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:14:05 - End Time 2025-02-15 22:14:05 [2025-02-15 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484058', 'tblTempUsageDetail_20' ) start [2025-02-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484058', 'tblTempUsageDetail_20' ) end [2025-02-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484058', 'tblTempVendorCDR_20' ) start [2025-02-15 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484058', 'tblTempVendorCDR_20' ) end [2025-02-15 22:14:18] Production.INFO: ProcessCDR(1,14484058,1,1,2) [2025-02-15 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484058', 'tblTempUsageDetail_20' ) start [2025-02-15 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484058', 'tblTempUsageDetail_20' ) end [2025-02-15 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:14:22] Production.INFO: ==26887== Releasing lock... [2025-02-15 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-15 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:15:05 [end_date_ymd] => 2025-02-15 22:15:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:15:05' and `end` < '2025-02-15 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-15 22:15:19] Production.INFO: count ==1286 [2025-02-15 22:15:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:15:05 - End Time 2025-02-15 22:15:05 [2025-02-15 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484063', 'tblTempUsageDetail_20' ) start [2025-02-15 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484063', 'tblTempUsageDetail_20' ) end [2025-02-15 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484063', 'tblTempVendorCDR_20' ) start [2025-02-15 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484063', 'tblTempVendorCDR_20' ) end [2025-02-15 22:15:19] Production.INFO: ProcessCDR(1,14484063,1,1,2) [2025-02-15 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484063', 'tblTempUsageDetail_20' ) start [2025-02-15 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484063', 'tblTempUsageDetail_20' ) end [2025-02-15 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:15:22] Production.INFO: ==26973== Releasing lock... [2025-02-15 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:15:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-15 22:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:16:04 [end_date_ymd] => 2025-02-15 22:16:04 [RateCDR] => 1 ) [2025-02-15 22:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:16:04' and `end` < '2025-02-15 22:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:16:18] Production.INFO: count ==1284 [2025-02-15 22:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:16:04 - End Time 2025-02-15 22:16:04 [2025-02-15 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484068', 'tblTempUsageDetail_20' ) start [2025-02-15 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484068', 'tblTempUsageDetail_20' ) end [2025-02-15 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484068', 'tblTempVendorCDR_20' ) start [2025-02-15 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484068', 'tblTempVendorCDR_20' ) end [2025-02-15 22:16:19] Production.INFO: ProcessCDR(1,14484068,1,1,2) [2025-02-15 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484068', 'tblTempUsageDetail_20' ) start [2025-02-15 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484068', 'tblTempUsageDetail_20' ) end [2025-02-15 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:16:22] Production.INFO: ==27053== Releasing lock... [2025-02-15 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:16:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:17:05 [end_date_ymd] => 2025-02-15 22:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:17:05' and `end` < '2025-02-15 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-15 22:17:19] Production.INFO: count ==1281 [2025-02-15 22:17:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:17:05 - End Time 2025-02-15 22:17:05 [2025-02-15 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484073', 'tblTempUsageDetail_20' ) start [2025-02-15 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484073', 'tblTempUsageDetail_20' ) end [2025-02-15 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484073', 'tblTempVendorCDR_20' ) start [2025-02-15 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484073', 'tblTempVendorCDR_20' ) end [2025-02-15 22:17:19] Production.INFO: ProcessCDR(1,14484073,1,1,2) [2025-02-15 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484073', 'tblTempUsageDetail_20' ) start [2025-02-15 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484073', 'tblTempUsageDetail_20' ) end [2025-02-15 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:17:22] Production.INFO: ==27157== Releasing lock... [2025-02-15 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:17:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:18:04 [end_date_ymd] => 2025-02-15 22:18:04 [RateCDR] => 1 ) [2025-02-15 22: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-15 19:18:04' and `end` < '2025-02-15 22: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-15 22:18:18] Production.INFO: count ==1282 [2025-02-15 22:18:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:18:04 - End Time 2025-02-15 22:18:04 [2025-02-15 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484078', 'tblTempUsageDetail_20' ) start [2025-02-15 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484078', 'tblTempUsageDetail_20' ) end [2025-02-15 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484078', 'tblTempVendorCDR_20' ) start [2025-02-15 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484078', 'tblTempVendorCDR_20' ) end [2025-02-15 22:18:18] Production.INFO: ProcessCDR(1,14484078,1,1,2) [2025-02-15 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484078', 'tblTempUsageDetail_20' ) start [2025-02-15 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484078', 'tblTempUsageDetail_20' ) end [2025-02-15 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:18:22] Production.INFO: ==27242== Releasing lock... [2025-02-15 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:18:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-15 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:19:05 [end_date_ymd] => 2025-02-15 22:19:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:19:05' and `end` < '2025-02-15 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-15 22:19:18] Production.INFO: count ==1281 [2025-02-15 22:19:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:19:05 - End Time 2025-02-15 22:19:05 [2025-02-15 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484083', 'tblTempUsageDetail_20' ) start [2025-02-15 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484083', 'tblTempUsageDetail_20' ) end [2025-02-15 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484083', 'tblTempVendorCDR_20' ) start [2025-02-15 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484083', 'tblTempVendorCDR_20' ) end [2025-02-15 22:19:18] Production.INFO: ProcessCDR(1,14484083,1,1,2) [2025-02-15 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484083', 'tblTempUsageDetail_20' ) start [2025-02-15 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484083', 'tblTempUsageDetail_20' ) end [2025-02-15 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:19:23] Production.INFO: ==27335== Releasing lock... [2025-02-15 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:19:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:20:07 [end_date_ymd] => 2025-02-15 22:20:07 [RateCDR] => 1 ) [2025-02-15 22: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-15 19:20:07' and `end` < '2025-02-15 22: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-15 22:20:20] Production.INFO: count ==1282 [2025-02-15 22:20:20] Production.ERROR: pbx CDR StartTime 2025-02-15 19:20:07 - End Time 2025-02-15 22:20:07 [2025-02-15 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484089', 'tblTempUsageDetail_20' ) start [2025-02-15 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484089', 'tblTempUsageDetail_20' ) end [2025-02-15 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484089', 'tblTempVendorCDR_20' ) start [2025-02-15 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484089', 'tblTempVendorCDR_20' ) end [2025-02-15 22:20:20] Production.INFO: ProcessCDR(1,14484089,1,1,2) [2025-02-15 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484089', 'tblTempUsageDetail_20' ) start [2025-02-15 22:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484089', 'tblTempUsageDetail_20' ) end [2025-02-15 22:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:20:25] Production.INFO: ==27432== Releasing lock... [2025-02-15 22:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:20:25] Production.INFO: 37.5 MB #Memory Used# [2025-02-15 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:21:05 [end_date_ymd] => 2025-02-15 22:21:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:21:05' and `end` < '2025-02-15 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-15 22:21:18] Production.INFO: count ==1271 [2025-02-15 22:21:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:21:05 - End Time 2025-02-15 22:21:05 [2025-02-15 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484094', 'tblTempUsageDetail_20' ) start [2025-02-15 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484094', 'tblTempUsageDetail_20' ) end [2025-02-15 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484094', 'tblTempVendorCDR_20' ) start [2025-02-15 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484094', 'tblTempVendorCDR_20' ) end [2025-02-15 22:21:18] Production.INFO: ProcessCDR(1,14484094,1,1,2) [2025-02-15 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484094', 'tblTempUsageDetail_20' ) start [2025-02-15 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484094', 'tblTempUsageDetail_20' ) end [2025-02-15 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:21:22] Production.INFO: ==27527== Releasing lock... [2025-02-15 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:21:22] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:22:06 [end_date_ymd] => 2025-02-15 22:22:06 [RateCDR] => 1 ) [2025-02-15 22: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-15 19:22:06' and `end` < '2025-02-15 22: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-15 22:22:19] Production.INFO: count ==1270 [2025-02-15 22:22:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:22:06 - End Time 2025-02-15 22:22:06 [2025-02-15 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484099', 'tblTempUsageDetail_20' ) start [2025-02-15 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484099', 'tblTempUsageDetail_20' ) end [2025-02-15 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484099', 'tblTempVendorCDR_20' ) start [2025-02-15 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484099', 'tblTempVendorCDR_20' ) end [2025-02-15 22:22:19] Production.INFO: ProcessCDR(1,14484099,1,1,2) [2025-02-15 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484099', 'tblTempUsageDetail_20' ) start [2025-02-15 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484099', 'tblTempUsageDetail_20' ) end [2025-02-15 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:22:22] Production.INFO: ==27622== Releasing lock... [2025-02-15 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:22:22] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:23:05 [end_date_ymd] => 2025-02-15 22:23:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:23:05' and `end` < '2025-02-15 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-15 22:23:19] Production.INFO: count ==1269 [2025-02-15 22:23:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:23:05 - End Time 2025-02-15 22:23:05 [2025-02-15 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484104', 'tblTempUsageDetail_20' ) start [2025-02-15 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484104', 'tblTempUsageDetail_20' ) end [2025-02-15 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484104', 'tblTempVendorCDR_20' ) start [2025-02-15 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484104', 'tblTempVendorCDR_20' ) end [2025-02-15 22:23:19] Production.INFO: ProcessCDR(1,14484104,1,1,2) [2025-02-15 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484104', 'tblTempUsageDetail_20' ) start [2025-02-15 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484104', 'tblTempUsageDetail_20' ) end [2025-02-15 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:23:23] Production.INFO: ==27717== Releasing lock... [2025-02-15 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:23:23] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:24:05 [end_date_ymd] => 2025-02-15 22:24:05 [RateCDR] => 1 ) [2025-02-15 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:24:05' and `end` < '2025-02-15 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:24:19] Production.INFO: count ==1266 [2025-02-15 22:24:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:24:05 - End Time 2025-02-15 22:24:05 [2025-02-15 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484109', 'tblTempUsageDetail_20' ) start [2025-02-15 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484109', 'tblTempUsageDetail_20' ) end [2025-02-15 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484109', 'tblTempVendorCDR_20' ) start [2025-02-15 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484109', 'tblTempVendorCDR_20' ) end [2025-02-15 22:24:19] Production.INFO: ProcessCDR(1,14484109,1,1,2) [2025-02-15 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484109', 'tblTempUsageDetail_20' ) start [2025-02-15 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484109', 'tblTempUsageDetail_20' ) end [2025-02-15 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:24:23] Production.INFO: ==27807== Releasing lock... [2025-02-15 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:24:23] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:25:05 [end_date_ymd] => 2025-02-15 22:25:05 [RateCDR] => 1 ) [2025-02-15 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:25:05' and `end` < '2025-02-15 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:25:18] Production.INFO: count ==1260 [2025-02-15 22:25:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:25:05 - End Time 2025-02-15 22:25:05 [2025-02-15 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484114', 'tblTempUsageDetail_20' ) start [2025-02-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484114', 'tblTempUsageDetail_20' ) end [2025-02-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484114', 'tblTempVendorCDR_20' ) start [2025-02-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484114', 'tblTempVendorCDR_20' ) end [2025-02-15 22:25:18] Production.INFO: ProcessCDR(1,14484114,1,1,2) [2025-02-15 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484114', 'tblTempUsageDetail_20' ) start [2025-02-15 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484114', 'tblTempUsageDetail_20' ) end [2025-02-15 22:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:25:23] Production.INFO: ==27943== Releasing lock... [2025-02-15 22:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:25:23] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:26:05 [end_date_ymd] => 2025-02-15 22:26:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:26:05' and `end` < '2025-02-15 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-15 22:26:19] Production.INFO: count ==1251 [2025-02-15 22:26:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:26:05 - End Time 2025-02-15 22:26:05 [2025-02-15 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484119', 'tblTempUsageDetail_20' ) start [2025-02-15 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484119', 'tblTempUsageDetail_20' ) end [2025-02-15 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484119', 'tblTempVendorCDR_20' ) start [2025-02-15 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484119', 'tblTempVendorCDR_20' ) end [2025-02-15 22:26:19] Production.INFO: ProcessCDR(1,14484119,1,1,2) [2025-02-15 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484119', 'tblTempUsageDetail_20' ) start [2025-02-15 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484119', 'tblTempUsageDetail_20' ) end [2025-02-15 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:26:22] Production.INFO: ==28028== Releasing lock... [2025-02-15 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:26:22] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:27:05 [end_date_ymd] => 2025-02-15 22:27:05 [RateCDR] => 1 ) [2025-02-15 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:27:05' and `end` < '2025-02-15 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:27:18] Production.INFO: count ==1251 [2025-02-15 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:27:05 - End Time 2025-02-15 22:27:05 [2025-02-15 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484124', 'tblTempUsageDetail_20' ) start [2025-02-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484124', 'tblTempUsageDetail_20' ) end [2025-02-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484124', 'tblTempVendorCDR_20' ) start [2025-02-15 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484124', 'tblTempVendorCDR_20' ) end [2025-02-15 22:27:18] Production.INFO: ProcessCDR(1,14484124,1,1,2) [2025-02-15 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484124', 'tblTempUsageDetail_20' ) start [2025-02-15 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484124', 'tblTempUsageDetail_20' ) end [2025-02-15 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:27:22] Production.INFO: ==28120== Releasing lock... [2025-02-15 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:27:22] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:28:05 [end_date_ymd] => 2025-02-15 22:28:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:28:05' and `end` < '2025-02-15 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-15 22:28:18] Production.INFO: count ==1250 [2025-02-15 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:28:05 - End Time 2025-02-15 22:28:05 [2025-02-15 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484129', 'tblTempUsageDetail_20' ) start [2025-02-15 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484129', 'tblTempUsageDetail_20' ) end [2025-02-15 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484129', 'tblTempVendorCDR_20' ) start [2025-02-15 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484129', 'tblTempVendorCDR_20' ) end [2025-02-15 22:28:18] Production.INFO: ProcessCDR(1,14484129,1,1,2) [2025-02-15 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484129', 'tblTempUsageDetail_20' ) start [2025-02-15 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484129', 'tblTempUsageDetail_20' ) end [2025-02-15 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:28:21] Production.INFO: ==28207== Releasing lock... [2025-02-15 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:28:21] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:29:06 [end_date_ymd] => 2025-02-15 22:29:06 [RateCDR] => 1 ) [2025-02-15 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-15 19:29:06' and `end` < '2025-02-15 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-15 22:29:19] Production.INFO: count ==1251 [2025-02-15 22:29:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:29:06 - End Time 2025-02-15 22:29:06 [2025-02-15 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484134', 'tblTempUsageDetail_20' ) start [2025-02-15 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484134', 'tblTempUsageDetail_20' ) end [2025-02-15 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484134', 'tblTempVendorCDR_20' ) start [2025-02-15 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484134', 'tblTempVendorCDR_20' ) end [2025-02-15 22:29:19] Production.INFO: ProcessCDR(1,14484134,1,1,2) [2025-02-15 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484134', 'tblTempUsageDetail_20' ) start [2025-02-15 22:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484134', 'tblTempUsageDetail_20' ) end [2025-02-15 22:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:29:24] Production.INFO: ==28302== Releasing lock... [2025-02-15 22:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:29:24] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:30:06 [end_date_ymd] => 2025-02-15 22:30:06 [RateCDR] => 1 ) [2025-02-15 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-15 19:30:06' and `end` < '2025-02-15 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-15 22:30:19] Production.INFO: count ==1252 [2025-02-15 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:30:06 - End Time 2025-02-15 22:30:06 [2025-02-15 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484139', 'tblTempUsageDetail_20' ) start [2025-02-15 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484139', 'tblTempUsageDetail_20' ) end [2025-02-15 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484139', 'tblTempVendorCDR_20' ) start [2025-02-15 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484139', 'tblTempVendorCDR_20' ) end [2025-02-15 22:30:19] Production.INFO: ProcessCDR(1,14484139,1,1,2) [2025-02-15 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484139', 'tblTempUsageDetail_20' ) start [2025-02-15 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484139', 'tblTempUsageDetail_20' ) end [2025-02-15 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:30:22] Production.INFO: ==28394== Releasing lock... [2025-02-15 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:30:22] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:31:05 [end_date_ymd] => 2025-02-15 22:31:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:31:05' and `end` < '2025-02-15 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-15 22:31:18] Production.INFO: count ==1227 [2025-02-15 22:31:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:31:05 - End Time 2025-02-15 22:31:05 [2025-02-15 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484145', 'tblTempUsageDetail_20' ) start [2025-02-15 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484145', 'tblTempUsageDetail_20' ) end [2025-02-15 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484145', 'tblTempVendorCDR_20' ) start [2025-02-15 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484145', 'tblTempVendorCDR_20' ) end [2025-02-15 22:31:19] Production.INFO: ProcessCDR(1,14484145,1,1,2) [2025-02-15 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484145', 'tblTempUsageDetail_20' ) start [2025-02-15 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484145', 'tblTempUsageDetail_20' ) end [2025-02-15 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:31:22] Production.INFO: ==28499== Releasing lock... [2025-02-15 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:31:22] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:32:05 [end_date_ymd] => 2025-02-15 22:32:05 [RateCDR] => 1 ) [2025-02-15 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:32:05' and `end` < '2025-02-15 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:32:18] Production.INFO: count ==1224 [2025-02-15 22:32:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:32:05 - End Time 2025-02-15 22:32:05 [2025-02-15 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484150', 'tblTempUsageDetail_20' ) start [2025-02-15 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484150', 'tblTempUsageDetail_20' ) end [2025-02-15 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484150', 'tblTempVendorCDR_20' ) start [2025-02-15 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484150', 'tblTempVendorCDR_20' ) end [2025-02-15 22:32:18] Production.INFO: ProcessCDR(1,14484150,1,1,2) [2025-02-15 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484150', 'tblTempUsageDetail_20' ) start [2025-02-15 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484150', 'tblTempUsageDetail_20' ) end [2025-02-15 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:32:22] Production.INFO: ==28600== Releasing lock... [2025-02-15 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:32:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:33:05 [end_date_ymd] => 2025-02-15 22:33:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:33:05' and `end` < '2025-02-15 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-15 22:33:18] Production.INFO: count ==1221 [2025-02-15 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:33:05 - End Time 2025-02-15 22:33:05 [2025-02-15 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484155', 'tblTempUsageDetail_20' ) start [2025-02-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484155', 'tblTempUsageDetail_20' ) end [2025-02-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484155', 'tblTempVendorCDR_20' ) start [2025-02-15 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484155', 'tblTempVendorCDR_20' ) end [2025-02-15 22:33:18] Production.INFO: ProcessCDR(1,14484155,1,1,2) [2025-02-15 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484155', 'tblTempUsageDetail_20' ) start [2025-02-15 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484155', 'tblTempUsageDetail_20' ) end [2025-02-15 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:33:22] Production.INFO: ==28692== Releasing lock... [2025-02-15 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:33:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:34:05 [end_date_ymd] => 2025-02-15 22:34:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:34:05' and `end` < '2025-02-15 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-15 22:34:18] Production.INFO: count ==1225 [2025-02-15 22:34:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:34:05 - End Time 2025-02-15 22:34:05 [2025-02-15 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484160', 'tblTempUsageDetail_20' ) start [2025-02-15 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484160', 'tblTempUsageDetail_20' ) end [2025-02-15 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484160', 'tblTempVendorCDR_20' ) start [2025-02-15 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484160', 'tblTempVendorCDR_20' ) end [2025-02-15 22:34:18] Production.INFO: ProcessCDR(1,14484160,1,1,2) [2025-02-15 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484160', 'tblTempUsageDetail_20' ) start [2025-02-15 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484160', 'tblTempUsageDetail_20' ) end [2025-02-15 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:34:21] Production.INFO: ==28794== Releasing lock... [2025-02-15 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:34:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:35:05 [end_date_ymd] => 2025-02-15 22:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:35:05' and `end` < '2025-02-15 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-15 22:35:19] Production.INFO: count ==1223 [2025-02-15 22:35:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:35:05 - End Time 2025-02-15 22:35:05 [2025-02-15 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484165', 'tblTempUsageDetail_20' ) start [2025-02-15 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484165', 'tblTempUsageDetail_20' ) end [2025-02-15 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484165', 'tblTempVendorCDR_20' ) start [2025-02-15 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484165', 'tblTempVendorCDR_20' ) end [2025-02-15 22:35:19] Production.INFO: ProcessCDR(1,14484165,1,1,2) [2025-02-15 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484165', 'tblTempUsageDetail_20' ) start [2025-02-15 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484165', 'tblTempUsageDetail_20' ) end [2025-02-15 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:35:22] Production.INFO: ==28893== Releasing lock... [2025-02-15 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:35:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:36:05 [end_date_ymd] => 2025-02-15 22:36:05 [RateCDR] => 1 ) [2025-02-15 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:36:05' and `end` < '2025-02-15 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:36:19] Production.INFO: count ==1224 [2025-02-15 22:36:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:36:05 - End Time 2025-02-15 22:36:05 [2025-02-15 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484170', 'tblTempUsageDetail_20' ) start [2025-02-15 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484170', 'tblTempUsageDetail_20' ) end [2025-02-15 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484170', 'tblTempVendorCDR_20' ) start [2025-02-15 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484170', 'tblTempVendorCDR_20' ) end [2025-02-15 22:36:19] Production.INFO: ProcessCDR(1,14484170,1,1,2) [2025-02-15 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484170', 'tblTempUsageDetail_20' ) start [2025-02-15 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484170', 'tblTempUsageDetail_20' ) end [2025-02-15 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:36:23] Production.INFO: ==28985== Releasing lock... [2025-02-15 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:36:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:37:06 [end_date_ymd] => 2025-02-15 22:37:06 [RateCDR] => 1 ) [2025-02-15 22:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:37:06' and `end` < '2025-02-15 22:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:37:19] Production.INFO: count ==1221 [2025-02-15 22:37:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:37:06 - End Time 2025-02-15 22:37:06 [2025-02-15 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484175', 'tblTempUsageDetail_20' ) start [2025-02-15 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484175', 'tblTempUsageDetail_20' ) end [2025-02-15 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484175', 'tblTempVendorCDR_20' ) start [2025-02-15 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484175', 'tblTempVendorCDR_20' ) end [2025-02-15 22:37:19] Production.INFO: ProcessCDR(1,14484175,1,1,2) [2025-02-15 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484175', 'tblTempUsageDetail_20' ) start [2025-02-15 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484175', 'tblTempUsageDetail_20' ) end [2025-02-15 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:37:22] Production.INFO: ==29075== Releasing lock... [2025-02-15 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:37:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:38:05 [end_date_ymd] => 2025-02-15 22:38:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:38:05' and `end` < '2025-02-15 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-15 22:38:18] Production.INFO: count ==1221 [2025-02-15 22:38:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:38:05 - End Time 2025-02-15 22:38:05 [2025-02-15 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484180', 'tblTempUsageDetail_20' ) start [2025-02-15 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484180', 'tblTempUsageDetail_20' ) end [2025-02-15 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484180', 'tblTempVendorCDR_20' ) start [2025-02-15 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484180', 'tblTempVendorCDR_20' ) end [2025-02-15 22:38:18] Production.INFO: ProcessCDR(1,14484180,1,1,2) [2025-02-15 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484180', 'tblTempUsageDetail_20' ) start [2025-02-15 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484180', 'tblTempUsageDetail_20' ) end [2025-02-15 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:38:21] Production.INFO: ==29173== Releasing lock... [2025-02-15 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:38:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:39:05 [end_date_ymd] => 2025-02-15 22:39:05 [RateCDR] => 1 ) [2025-02-15 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:39:05' and `end` < '2025-02-15 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:39:19] Production.INFO: count ==1216 [2025-02-15 22:39:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:39:05 - End Time 2025-02-15 22:39:05 [2025-02-15 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484185', 'tblTempUsageDetail_20' ) start [2025-02-15 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484185', 'tblTempUsageDetail_20' ) end [2025-02-15 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484185', 'tblTempVendorCDR_20' ) start [2025-02-15 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484185', 'tblTempVendorCDR_20' ) end [2025-02-15 22:39:19] Production.INFO: ProcessCDR(1,14484185,1,1,2) [2025-02-15 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484185', 'tblTempUsageDetail_20' ) start [2025-02-15 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484185', 'tblTempUsageDetail_20' ) end [2025-02-15 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:39:22] Production.INFO: ==29272== Releasing lock... [2025-02-15 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:39:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-15 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:40:06 [end_date_ymd] => 2025-02-15 22:40:06 [RateCDR] => 1 ) [2025-02-15 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-15 19:40:06' and `end` < '2025-02-15 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-15 22:40:19] Production.INFO: count ==1217 [2025-02-15 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:40:06 - End Time 2025-02-15 22:40:06 [2025-02-15 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484191', 'tblTempUsageDetail_20' ) start [2025-02-15 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484191', 'tblTempUsageDetail_20' ) end [2025-02-15 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484191', 'tblTempVendorCDR_20' ) start [2025-02-15 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484191', 'tblTempVendorCDR_20' ) end [2025-02-15 22:40:19] Production.INFO: ProcessCDR(1,14484191,1,1,2) [2025-02-15 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484191', 'tblTempUsageDetail_20' ) start [2025-02-15 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484191', 'tblTempUsageDetail_20' ) end [2025-02-15 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:40:24] Production.INFO: ==29366== Releasing lock... [2025-02-15 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:40:24] Production.INFO: 37 MB #Memory Used# [2025-02-15 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:41:05 [end_date_ymd] => 2025-02-15 22:41:05 [RateCDR] => 1 ) [2025-02-15 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:41:05' and `end` < '2025-02-15 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:41:18] Production.INFO: count ==1174 [2025-02-15 22:41:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:41:05 - End Time 2025-02-15 22:41:05 [2025-02-15 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484196', 'tblTempUsageDetail_20' ) start [2025-02-15 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484196', 'tblTempUsageDetail_20' ) end [2025-02-15 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484196', 'tblTempVendorCDR_20' ) start [2025-02-15 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484196', 'tblTempVendorCDR_20' ) end [2025-02-15 22:41:19] Production.INFO: ProcessCDR(1,14484196,1,1,2) [2025-02-15 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484196', 'tblTempUsageDetail_20' ) start [2025-02-15 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484196', 'tblTempUsageDetail_20' ) end [2025-02-15 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:41:22] Production.INFO: ==29502== Releasing lock... [2025-02-15 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:41:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:42:05 [end_date_ymd] => 2025-02-15 22:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:42:05' and `end` < '2025-02-15 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-15 22:42:19] Production.INFO: count ==1174 [2025-02-15 22:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:42:05 - End Time 2025-02-15 22:42:05 [2025-02-15 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484201', 'tblTempUsageDetail_20' ) start [2025-02-15 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484201', 'tblTempUsageDetail_20' ) end [2025-02-15 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484201', 'tblTempVendorCDR_20' ) start [2025-02-15 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484201', 'tblTempVendorCDR_20' ) end [2025-02-15 22:42:19] Production.INFO: ProcessCDR(1,14484201,1,1,2) [2025-02-15 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484201', 'tblTempUsageDetail_20' ) start [2025-02-15 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484201', 'tblTempUsageDetail_20' ) end [2025-02-15 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:42:23] Production.INFO: ==29598== Releasing lock... [2025-02-15 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:42:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:43:05 [end_date_ymd] => 2025-02-15 22:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:43:05' and `end` < '2025-02-15 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-15 22:43:18] Production.INFO: count ==1174 [2025-02-15 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:43:05 - End Time 2025-02-15 22:43:05 [2025-02-15 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484206', 'tblTempUsageDetail_20' ) start [2025-02-15 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484206', 'tblTempUsageDetail_20' ) end [2025-02-15 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484206', 'tblTempVendorCDR_20' ) start [2025-02-15 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484206', 'tblTempVendorCDR_20' ) end [2025-02-15 22:43:18] Production.INFO: ProcessCDR(1,14484206,1,1,2) [2025-02-15 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484206', 'tblTempUsageDetail_20' ) start [2025-02-15 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484206', 'tblTempUsageDetail_20' ) end [2025-02-15 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:43:22] Production.INFO: ==29698== Releasing lock... [2025-02-15 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:43:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:44:05 [end_date_ymd] => 2025-02-15 22:44:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:44:05' and `end` < '2025-02-15 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-15 22:44:18] Production.INFO: count ==1174 [2025-02-15 22:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:44:05 - End Time 2025-02-15 22:44:05 [2025-02-15 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484211', 'tblTempUsageDetail_20' ) start [2025-02-15 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484211', 'tblTempUsageDetail_20' ) end [2025-02-15 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484211', 'tblTempVendorCDR_20' ) start [2025-02-15 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484211', 'tblTempVendorCDR_20' ) end [2025-02-15 22:44:19] Production.INFO: ProcessCDR(1,14484211,1,1,2) [2025-02-15 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484211', 'tblTempUsageDetail_20' ) start [2025-02-15 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484211', 'tblTempUsageDetail_20' ) end [2025-02-15 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:44:22] Production.INFO: ==29796== Releasing lock... [2025-02-15 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:44:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:45:05 [end_date_ymd] => 2025-02-15 22:45:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:45:05' and `end` < '2025-02-15 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-15 22:45:18] Production.INFO: count ==1169 [2025-02-15 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:45:05 - End Time 2025-02-15 22:45:05 [2025-02-15 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484216', 'tblTempUsageDetail_20' ) start [2025-02-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484216', 'tblTempUsageDetail_20' ) end [2025-02-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484216', 'tblTempVendorCDR_20' ) start [2025-02-15 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484216', 'tblTempVendorCDR_20' ) end [2025-02-15 22:45:18] Production.INFO: ProcessCDR(1,14484216,1,1,2) [2025-02-15 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484216', 'tblTempUsageDetail_20' ) start [2025-02-15 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484216', 'tblTempUsageDetail_20' ) end [2025-02-15 22:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:45:23] Production.INFO: ==29888== Releasing lock... [2025-02-15 22:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:45:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:46:05 [end_date_ymd] => 2025-02-15 22:46:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:46:05' and `end` < '2025-02-15 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-15 22:46:19] Production.INFO: count ==1168 [2025-02-15 22:46:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:46:05 - End Time 2025-02-15 22:46:05 [2025-02-15 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484221', 'tblTempUsageDetail_20' ) start [2025-02-15 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484221', 'tblTempUsageDetail_20' ) end [2025-02-15 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484221', 'tblTempVendorCDR_20' ) start [2025-02-15 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484221', 'tblTempVendorCDR_20' ) end [2025-02-15 22:46:19] Production.INFO: ProcessCDR(1,14484221,1,1,2) [2025-02-15 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484221', 'tblTempUsageDetail_20' ) start [2025-02-15 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484221', 'tblTempUsageDetail_20' ) end [2025-02-15 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:46:22] Production.INFO: ==29985== Releasing lock... [2025-02-15 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:46:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:47:05 [end_date_ymd] => 2025-02-15 22:47:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:47:05' and `end` < '2025-02-15 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-15 22:47:18] Production.INFO: count ==1166 [2025-02-15 22:47:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:47:05 - End Time 2025-02-15 22:47:05 [2025-02-15 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484226', 'tblTempUsageDetail_20' ) start [2025-02-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484226', 'tblTempUsageDetail_20' ) end [2025-02-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484226', 'tblTempVendorCDR_20' ) start [2025-02-15 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484226', 'tblTempVendorCDR_20' ) end [2025-02-15 22:47:18] Production.INFO: ProcessCDR(1,14484226,1,1,2) [2025-02-15 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484226', 'tblTempUsageDetail_20' ) start [2025-02-15 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484226', 'tblTempUsageDetail_20' ) end [2025-02-15 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:47:21] Production.INFO: ==30077== Releasing lock... [2025-02-15 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:47:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:48:05 [end_date_ymd] => 2025-02-15 22:48:05 [RateCDR] => 1 ) [2025-02-15 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:48:05' and `end` < '2025-02-15 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:48:18] Production.INFO: count ==1168 [2025-02-15 22:48:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:48:05 - End Time 2025-02-15 22:48:05 [2025-02-15 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484231', 'tblTempUsageDetail_20' ) start [2025-02-15 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484231', 'tblTempUsageDetail_20' ) end [2025-02-15 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484231', 'tblTempVendorCDR_20' ) start [2025-02-15 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484231', 'tblTempVendorCDR_20' ) end [2025-02-15 22:48:19] Production.INFO: ProcessCDR(1,14484231,1,1,2) [2025-02-15 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484231', 'tblTempUsageDetail_20' ) start [2025-02-15 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484231', 'tblTempUsageDetail_20' ) end [2025-02-15 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:48:22] Production.INFO: ==30173== Releasing lock... [2025-02-15 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:48:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:49:05 [end_date_ymd] => 2025-02-15 22:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:49:05' and `end` < '2025-02-15 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-15 22:49:18] Production.INFO: count ==1168 [2025-02-15 22:49:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:49:05 - End Time 2025-02-15 22:49:05 [2025-02-15 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484236', 'tblTempUsageDetail_20' ) start [2025-02-15 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484236', 'tblTempUsageDetail_20' ) end [2025-02-15 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484236', 'tblTempVendorCDR_20' ) start [2025-02-15 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484236', 'tblTempVendorCDR_20' ) end [2025-02-15 22:49:18] Production.INFO: ProcessCDR(1,14484236,1,1,2) [2025-02-15 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484236', 'tblTempUsageDetail_20' ) start [2025-02-15 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484236', 'tblTempUsageDetail_20' ) end [2025-02-15 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:49:22] Production.INFO: ==30261== Releasing lock... [2025-02-15 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:49:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:50:06 [end_date_ymd] => 2025-02-15 22:50:06 [RateCDR] => 1 ) [2025-02-15 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-15 19:50:06' and `end` < '2025-02-15 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-15 22:50:20] Production.INFO: count ==1171 [2025-02-15 22:50:20] Production.ERROR: pbx CDR StartTime 2025-02-15 19:50:06 - End Time 2025-02-15 22:50:06 [2025-02-15 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484242', 'tblTempUsageDetail_20' ) start [2025-02-15 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484242', 'tblTempUsageDetail_20' ) end [2025-02-15 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484242', 'tblTempVendorCDR_20' ) start [2025-02-15 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484242', 'tblTempVendorCDR_20' ) end [2025-02-15 22:50:20] Production.INFO: ProcessCDR(1,14484242,1,1,2) [2025-02-15 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484242', 'tblTempUsageDetail_20' ) start [2025-02-15 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484242', 'tblTempUsageDetail_20' ) end [2025-02-15 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:50:23] Production.INFO: ==30359== Releasing lock... [2025-02-15 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:50:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:51:05 [end_date_ymd] => 2025-02-15 22:51:05 [RateCDR] => 1 ) [2025-02-15 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:51:05' and `end` < '2025-02-15 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:51:18] Production.INFO: count ==1142 [2025-02-15 22:51:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:51:05 - End Time 2025-02-15 22:51:05 [2025-02-15 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484247', 'tblTempUsageDetail_20' ) start [2025-02-15 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484247', 'tblTempUsageDetail_20' ) end [2025-02-15 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484247', 'tblTempVendorCDR_20' ) start [2025-02-15 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484247', 'tblTempVendorCDR_20' ) end [2025-02-15 22:51:19] Production.INFO: ProcessCDR(1,14484247,1,1,2) [2025-02-15 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484247', 'tblTempUsageDetail_20' ) start [2025-02-15 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484247', 'tblTempUsageDetail_20' ) end [2025-02-15 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:51:23] Production.INFO: ==30450== Releasing lock... [2025-02-15 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:51:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:52:05 [end_date_ymd] => 2025-02-15 22:52:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:52:05' and `end` < '2025-02-15 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-15 22:52:18] Production.INFO: count ==1140 [2025-02-15 22:52:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:52:05 - End Time 2025-02-15 22:52:05 [2025-02-15 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484252', 'tblTempUsageDetail_20' ) start [2025-02-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484252', 'tblTempUsageDetail_20' ) end [2025-02-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484252', 'tblTempVendorCDR_20' ) start [2025-02-15 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484252', 'tblTempVendorCDR_20' ) end [2025-02-15 22:52:18] Production.INFO: ProcessCDR(1,14484252,1,1,2) [2025-02-15 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484252', 'tblTempUsageDetail_20' ) start [2025-02-15 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484252', 'tblTempUsageDetail_20' ) end [2025-02-15 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:52:22] Production.INFO: ==30535== Releasing lock... [2025-02-15 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:52:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:53:05 [end_date_ymd] => 2025-02-15 22:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:53:05' and `end` < '2025-02-15 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-15 22:53:18] Production.INFO: count ==1140 [2025-02-15 22:53:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:53:05 - End Time 2025-02-15 22:53:05 [2025-02-15 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484257', 'tblTempUsageDetail_20' ) start [2025-02-15 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484257', 'tblTempUsageDetail_20' ) end [2025-02-15 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484257', 'tblTempVendorCDR_20' ) start [2025-02-15 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484257', 'tblTempVendorCDR_20' ) end [2025-02-15 22:53:18] Production.INFO: ProcessCDR(1,14484257,1,1,2) [2025-02-15 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484257', 'tblTempUsageDetail_20' ) start [2025-02-15 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484257', 'tblTempUsageDetail_20' ) end [2025-02-15 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:53:23] Production.INFO: ==30625== Releasing lock... [2025-02-15 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:53:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:54:05 [end_date_ymd] => 2025-02-15 22:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:54:05' and `end` < '2025-02-15 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-15 22:54:19] Production.INFO: count ==1143 [2025-02-15 22:54:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:54:05 - End Time 2025-02-15 22:54:05 [2025-02-15 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484262', 'tblTempUsageDetail_20' ) start [2025-02-15 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484262', 'tblTempUsageDetail_20' ) end [2025-02-15 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484262', 'tblTempVendorCDR_20' ) start [2025-02-15 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484262', 'tblTempVendorCDR_20' ) end [2025-02-15 22:54:19] Production.INFO: ProcessCDR(1,14484262,1,1,2) [2025-02-15 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484262', 'tblTempUsageDetail_20' ) start [2025-02-15 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484262', 'tblTempUsageDetail_20' ) end [2025-02-15 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:54:23] Production.INFO: ==30713== Releasing lock... [2025-02-15 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:54:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:55:05 [end_date_ymd] => 2025-02-15 22:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:55:05' and `end` < '2025-02-15 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-15 22:55:18] Production.INFO: count ==1145 [2025-02-15 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:55:05 - End Time 2025-02-15 22:55:05 [2025-02-15 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484267', 'tblTempUsageDetail_20' ) start [2025-02-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484267', 'tblTempUsageDetail_20' ) end [2025-02-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484267', 'tblTempVendorCDR_20' ) start [2025-02-15 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484267', 'tblTempVendorCDR_20' ) end [2025-02-15 22:55:18] Production.INFO: ProcessCDR(1,14484267,1,1,2) [2025-02-15 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484267', 'tblTempUsageDetail_20' ) start [2025-02-15 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484267', 'tblTempUsageDetail_20' ) end [2025-02-15 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:55:22] Production.INFO: ==30800== Releasing lock... [2025-02-15 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:55:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:56:06 [end_date_ymd] => 2025-02-15 22:56:06 [RateCDR] => 1 ) [2025-02-15 22:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 19:56:06' and `end` < '2025-02-15 22:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 22:56:19] Production.INFO: count ==1149 [2025-02-15 22:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:56:06 - End Time 2025-02-15 22:56:06 [2025-02-15 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484272', 'tblTempUsageDetail_20' ) start [2025-02-15 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484272', 'tblTempUsageDetail_20' ) end [2025-02-15 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484272', 'tblTempVendorCDR_20' ) start [2025-02-15 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484272', 'tblTempVendorCDR_20' ) end [2025-02-15 22:56:19] Production.INFO: ProcessCDR(1,14484272,1,1,2) [2025-02-15 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484272', 'tblTempUsageDetail_20' ) start [2025-02-15 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484272', 'tblTempUsageDetail_20' ) end [2025-02-15 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:56:22] Production.INFO: ==30930== Releasing lock... [2025-02-15 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:56:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-15 22:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:57:04 [end_date_ymd] => 2025-02-15 22:57:04 [RateCDR] => 1 ) [2025-02-15 22: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-15 19:57:04' and `end` < '2025-02-15 22: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-15 22:57:18] Production.INFO: count ==1149 [2025-02-15 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-15 19:57:04 - End Time 2025-02-15 22:57:04 [2025-02-15 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484277', 'tblTempUsageDetail_20' ) start [2025-02-15 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484277', 'tblTempUsageDetail_20' ) end [2025-02-15 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484277', 'tblTempVendorCDR_20' ) start [2025-02-15 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484277', 'tblTempVendorCDR_20' ) end [2025-02-15 22:57:18] Production.INFO: ProcessCDR(1,14484277,1,1,2) [2025-02-15 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484277', 'tblTempUsageDetail_20' ) start [2025-02-15 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484277', 'tblTempUsageDetail_20' ) end [2025-02-15 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:57:23] Production.INFO: ==31011== Releasing lock... [2025-02-15 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:57:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:58:05 [end_date_ymd] => 2025-02-15 22:58:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:58:05' and `end` < '2025-02-15 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-15 22:58:19] Production.INFO: count ==1149 [2025-02-15 22:58:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:58:05 - End Time 2025-02-15 22:58:05 [2025-02-15 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484282', 'tblTempUsageDetail_20' ) start [2025-02-15 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484282', 'tblTempUsageDetail_20' ) end [2025-02-15 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484282', 'tblTempVendorCDR_20' ) start [2025-02-15 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484282', 'tblTempVendorCDR_20' ) end [2025-02-15 22:58:19] Production.INFO: ProcessCDR(1,14484282,1,1,2) [2025-02-15 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484282', 'tblTempUsageDetail_20' ) start [2025-02-15 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484282', 'tblTempUsageDetail_20' ) end [2025-02-15 22:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:58:23] Production.INFO: ==31108== Releasing lock... [2025-02-15 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:58:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 19:59:05 [end_date_ymd] => 2025-02-15 22:59:05 [RateCDR] => 1 ) [2025-02-15 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-15 19:59:05' and `end` < '2025-02-15 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-15 22:59:18] Production.INFO: count ==1154 [2025-02-15 22:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 19:59:05 - End Time 2025-02-15 22:59:05 [2025-02-15 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484287', 'tblTempUsageDetail_20' ) start [2025-02-15 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484287', 'tblTempUsageDetail_20' ) end [2025-02-15 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484287', 'tblTempVendorCDR_20' ) start [2025-02-15 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484287', 'tblTempVendorCDR_20' ) end [2025-02-15 22:59:19] Production.INFO: ProcessCDR(1,14484287,1,1,2) [2025-02-15 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484287', 'tblTempUsageDetail_20' ) start [2025-02-15 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484287', 'tblTempUsageDetail_20' ) end [2025-02-15 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 22:59:22] Production.INFO: ==31190== Releasing lock... [2025-02-15 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 22:59:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:00:05 [end_date_ymd] => 2025-02-15 23:00:05 [RateCDR] => 1 ) [2025-02-15 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:00:05' and `end` < '2025-02-15 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:00:18] Production.INFO: count ==1153 [2025-02-15 23:00:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:00:05 - End Time 2025-02-15 23:00:05 [2025-02-15 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484292', 'tblTempUsageDetail_20' ) start [2025-02-15 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484292', 'tblTempUsageDetail_20' ) end [2025-02-15 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484292', 'tblTempVendorCDR_20' ) start [2025-02-15 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484292', 'tblTempVendorCDR_20' ) end [2025-02-15 23:00:18] Production.INFO: ProcessCDR(1,14484292,1,1,2) [2025-02-15 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484292', 'tblTempUsageDetail_20' ) start [2025-02-15 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484292', 'tblTempUsageDetail_20' ) end [2025-02-15 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:00:22] Production.INFO: ==31277== Releasing lock... [2025-02-15 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:00:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:01:06 [end_date_ymd] => 2025-02-15 23:01:06 [RateCDR] => 1 ) [2025-02-15 23:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:01:06' and `end` < '2025-02-15 23:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:01:19] Production.INFO: count ==1153 [2025-02-15 23:01:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:01:06 - End Time 2025-02-15 23:01:06 [2025-02-15 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484298', 'tblTempUsageDetail_20' ) start [2025-02-15 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484298', 'tblTempUsageDetail_20' ) end [2025-02-15 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484298', 'tblTempVendorCDR_20' ) start [2025-02-15 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484298', 'tblTempVendorCDR_20' ) end [2025-02-15 23:01:19] Production.INFO: ProcessCDR(1,14484298,1,1,2) [2025-02-15 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484298', 'tblTempUsageDetail_20' ) start [2025-02-15 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484298', 'tblTempUsageDetail_20' ) end [2025-02-15 23:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:01:24] Production.INFO: ==31373== Releasing lock... [2025-02-15 23:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:01:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:02:05 [end_date_ymd] => 2025-02-15 23:02:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:02:05' and `end` < '2025-02-15 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-15 23:02:18] Production.INFO: count ==1149 [2025-02-15 23:02:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:02:05 - End Time 2025-02-15 23:02:05 [2025-02-15 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484303', 'tblTempUsageDetail_20' ) start [2025-02-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484303', 'tblTempUsageDetail_20' ) end [2025-02-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484303', 'tblTempVendorCDR_20' ) start [2025-02-15 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484303', 'tblTempVendorCDR_20' ) end [2025-02-15 23:02:18] Production.INFO: ProcessCDR(1,14484303,1,1,2) [2025-02-15 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484303', 'tblTempUsageDetail_20' ) start [2025-02-15 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484303', 'tblTempUsageDetail_20' ) end [2025-02-15 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:02:21] Production.INFO: ==31534== Releasing lock... [2025-02-15 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:02:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:03:05 [end_date_ymd] => 2025-02-15 23:03:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:03:05' and `end` < '2025-02-15 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-15 23:03:19] Production.INFO: count ==1146 [2025-02-15 23:03:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:03:05 - End Time 2025-02-15 23:03:05 [2025-02-15 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484308', 'tblTempUsageDetail_20' ) start [2025-02-15 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484308', 'tblTempUsageDetail_20' ) end [2025-02-15 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484308', 'tblTempVendorCDR_20' ) start [2025-02-15 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484308', 'tblTempVendorCDR_20' ) end [2025-02-15 23:03:19] Production.INFO: ProcessCDR(1,14484308,1,1,2) [2025-02-15 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484308', 'tblTempUsageDetail_20' ) start [2025-02-15 23:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484308', 'tblTempUsageDetail_20' ) end [2025-02-15 23:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:03:24] Production.INFO: ==31618== Releasing lock... [2025-02-15 23:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:03:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:04:05 [end_date_ymd] => 2025-02-15 23:04:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:04:05' and `end` < '2025-02-15 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-15 23:04:19] Production.INFO: count ==1150 [2025-02-15 23:04:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:04:05 - End Time 2025-02-15 23:04:05 [2025-02-15 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484313', 'tblTempUsageDetail_20' ) start [2025-02-15 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484313', 'tblTempUsageDetail_20' ) end [2025-02-15 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484313', 'tblTempVendorCDR_20' ) start [2025-02-15 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484313', 'tblTempVendorCDR_20' ) end [2025-02-15 23:04:19] Production.INFO: ProcessCDR(1,14484313,1,1,2) [2025-02-15 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484313', 'tblTempUsageDetail_20' ) start [2025-02-15 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484313', 'tblTempUsageDetail_20' ) end [2025-02-15 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:04:22] Production.INFO: ==31696== Releasing lock... [2025-02-15 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:04:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:05:05 [end_date_ymd] => 2025-02-15 23:05:05 [RateCDR] => 1 ) [2025-02-15 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:05:05' and `end` < '2025-02-15 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:05:18] Production.INFO: count ==1155 [2025-02-15 23:05:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:05:05 - End Time 2025-02-15 23:05:05 [2025-02-15 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484318', 'tblTempUsageDetail_20' ) start [2025-02-15 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484318', 'tblTempUsageDetail_20' ) end [2025-02-15 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484318', 'tblTempVendorCDR_20' ) start [2025-02-15 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484318', 'tblTempVendorCDR_20' ) end [2025-02-15 23:05:19] Production.INFO: ProcessCDR(1,14484318,1,1,2) [2025-02-15 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484318', 'tblTempUsageDetail_20' ) start [2025-02-15 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484318', 'tblTempUsageDetail_20' ) end [2025-02-15 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:05:23] Production.INFO: ==31860== Releasing lock... [2025-02-15 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:05:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:06:05 [end_date_ymd] => 2025-02-15 23:06:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:06:05' and `end` < '2025-02-15 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-15 23:06:18] Production.INFO: count ==1157 [2025-02-15 23:06:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:06:05 - End Time 2025-02-15 23:06:05 [2025-02-15 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484323', 'tblTempUsageDetail_20' ) start [2025-02-15 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484323', 'tblTempUsageDetail_20' ) end [2025-02-15 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484323', 'tblTempVendorCDR_20' ) start [2025-02-15 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484323', 'tblTempVendorCDR_20' ) end [2025-02-15 23:06:18] Production.INFO: ProcessCDR(1,14484323,1,1,2) [2025-02-15 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484323', 'tblTempUsageDetail_20' ) start [2025-02-15 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484323', 'tblTempUsageDetail_20' ) end [2025-02-15 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:06:22] Production.INFO: ==31939== Releasing lock... [2025-02-15 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:07:05 [end_date_ymd] => 2025-02-15 23:07:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:07:05' and `end` < '2025-02-15 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-15 23:07:19] Production.INFO: count ==1159 [2025-02-15 23:07:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:07:05 - End Time 2025-02-15 23:07:05 [2025-02-15 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484328', 'tblTempUsageDetail_20' ) start [2025-02-15 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484328', 'tblTempUsageDetail_20' ) end [2025-02-15 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484328', 'tblTempVendorCDR_20' ) start [2025-02-15 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484328', 'tblTempVendorCDR_20' ) end [2025-02-15 23:07:19] Production.INFO: ProcessCDR(1,14484328,1,1,2) [2025-02-15 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484328', 'tblTempUsageDetail_20' ) start [2025-02-15 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484328', 'tblTempUsageDetail_20' ) end [2025-02-15 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:07:22] Production.INFO: ==32016== Releasing lock... [2025-02-15 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:07:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:08:05 [end_date_ymd] => 2025-02-15 23:08:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:08:05' and `end` < '2025-02-15 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-15 23:08:18] Production.INFO: count ==1147 [2025-02-15 23:08:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:08:05 - End Time 2025-02-15 23:08:05 [2025-02-15 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484333', 'tblTempUsageDetail_20' ) start [2025-02-15 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484333', 'tblTempUsageDetail_20' ) end [2025-02-15 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484333', 'tblTempVendorCDR_20' ) start [2025-02-15 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484333', 'tblTempVendorCDR_20' ) end [2025-02-15 23:08:18] Production.INFO: ProcessCDR(1,14484333,1,1,2) [2025-02-15 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484333', 'tblTempUsageDetail_20' ) start [2025-02-15 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484333', 'tblTempUsageDetail_20' ) end [2025-02-15 23:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:08:23] Production.INFO: ==32174== Releasing lock... [2025-02-15 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:08:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:09:05 [end_date_ymd] => 2025-02-15 23:09:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:09:05' and `end` < '2025-02-15 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-15 23:09:19] Production.INFO: count ==1146 [2025-02-15 23:09:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:09:05 - End Time 2025-02-15 23:09:05 [2025-02-15 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484338', 'tblTempUsageDetail_20' ) start [2025-02-15 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484338', 'tblTempUsageDetail_20' ) end [2025-02-15 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484338', 'tblTempVendorCDR_20' ) start [2025-02-15 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484338', 'tblTempVendorCDR_20' ) end [2025-02-15 23:09:19] Production.INFO: ProcessCDR(1,14484338,1,1,2) [2025-02-15 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484338', 'tblTempUsageDetail_20' ) start [2025-02-15 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484338', 'tblTempUsageDetail_20' ) end [2025-02-15 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:09:22] Production.INFO: ==32248== Releasing lock... [2025-02-15 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:09:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:10:05 [end_date_ymd] => 2025-02-15 23:10:05 [RateCDR] => 1 ) [2025-02-15 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:10:05' and `end` < '2025-02-15 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:10:19] Production.INFO: count ==1144 [2025-02-15 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:10:05 - End Time 2025-02-15 23:10:05 [2025-02-15 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484344', 'tblTempUsageDetail_20' ) start [2025-02-15 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484344', 'tblTempUsageDetail_20' ) end [2025-02-15 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484344', 'tblTempVendorCDR_20' ) start [2025-02-15 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484344', 'tblTempVendorCDR_20' ) end [2025-02-15 23:10:19] Production.INFO: ProcessCDR(1,14484344,1,1,2) [2025-02-15 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484344', 'tblTempUsageDetail_20' ) start [2025-02-15 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484344', 'tblTempUsageDetail_20' ) end [2025-02-15 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:10:23] Production.INFO: ==32332== Releasing lock... [2025-02-15 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:10:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-15 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:11:05 [end_date_ymd] => 2025-02-15 23:11:05 [RateCDR] => 1 ) [2025-02-15 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:11:05' and `end` < '2025-02-15 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:11:19] Production.INFO: count ==1074 [2025-02-15 23:11:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:11:05 - End Time 2025-02-15 23:11:05 [2025-02-15 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484349', 'tblTempUsageDetail_20' ) start [2025-02-15 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484349', 'tblTempUsageDetail_20' ) end [2025-02-15 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484349', 'tblTempVendorCDR_20' ) start [2025-02-15 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484349', 'tblTempVendorCDR_20' ) end [2025-02-15 23:11:19] Production.INFO: ProcessCDR(1,14484349,1,1,2) [2025-02-15 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484349', 'tblTempUsageDetail_20' ) start [2025-02-15 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484349', 'tblTempUsageDetail_20' ) end [2025-02-15 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:11:22] Production.INFO: ==32411== Releasing lock... [2025-02-15 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:11:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:12:05 [end_date_ymd] => 2025-02-15 23:12:05 [RateCDR] => 1 ) [2025-02-15 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:12:05' and `end` < '2025-02-15 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:12:18] Production.INFO: count ==1077 [2025-02-15 23:12:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:12:05 - End Time 2025-02-15 23:12:05 [2025-02-15 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484354', 'tblTempUsageDetail_20' ) start [2025-02-15 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484354', 'tblTempUsageDetail_20' ) end [2025-02-15 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484354', 'tblTempVendorCDR_20' ) start [2025-02-15 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484354', 'tblTempVendorCDR_20' ) end [2025-02-15 23:12:18] Production.INFO: ProcessCDR(1,14484354,1,1,2) [2025-02-15 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484354', 'tblTempUsageDetail_20' ) start [2025-02-15 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484354', 'tblTempUsageDetail_20' ) end [2025-02-15 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:12:22] Production.INFO: ==32607== Releasing lock... [2025-02-15 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:12:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:13:05 [end_date_ymd] => 2025-02-15 23:13:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:13:05' and `end` < '2025-02-15 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-15 23:13:18] Production.INFO: count ==1077 [2025-02-15 23:13:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:13:05 - End Time 2025-02-15 23:13:05 [2025-02-15 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484359', 'tblTempUsageDetail_20' ) start [2025-02-15 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484359', 'tblTempUsageDetail_20' ) end [2025-02-15 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484359', 'tblTempVendorCDR_20' ) start [2025-02-15 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484359', 'tblTempVendorCDR_20' ) end [2025-02-15 23:13:19] Production.INFO: ProcessCDR(1,14484359,1,1,2) [2025-02-15 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484359', 'tblTempUsageDetail_20' ) start [2025-02-15 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484359', 'tblTempUsageDetail_20' ) end [2025-02-15 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:13:22] Production.INFO: ==32691== Releasing lock... [2025-02-15 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:13:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:14:06 [end_date_ymd] => 2025-02-15 23:14:06 [RateCDR] => 1 ) [2025-02-15 23: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-15 20:14:06' and `end` < '2025-02-15 23: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-15 23:14:19] Production.INFO: count ==1076 [2025-02-15 23:14:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:14:06 - End Time 2025-02-15 23:14:06 [2025-02-15 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484364', 'tblTempUsageDetail_20' ) start [2025-02-15 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484364', 'tblTempUsageDetail_20' ) end [2025-02-15 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484364', 'tblTempVendorCDR_20' ) start [2025-02-15 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484364', 'tblTempVendorCDR_20' ) end [2025-02-15 23:14:19] Production.INFO: ProcessCDR(1,14484364,1,1,2) [2025-02-15 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484364', 'tblTempUsageDetail_20' ) start [2025-02-15 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484364', 'tblTempUsageDetail_20' ) end [2025-02-15 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:14:22] Production.INFO: ==32763== Releasing lock... [2025-02-15 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:14:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:15:05 [end_date_ymd] => 2025-02-15 23:15:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:15:05' and `end` < '2025-02-15 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-15 23:15:18] Production.INFO: count ==1075 [2025-02-15 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:15:05 - End Time 2025-02-15 23:15:05 [2025-02-15 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484369', 'tblTempUsageDetail_20' ) start [2025-02-15 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484369', 'tblTempUsageDetail_20' ) end [2025-02-15 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484369', 'tblTempVendorCDR_20' ) start [2025-02-15 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484369', 'tblTempVendorCDR_20' ) end [2025-02-15 23:15:18] Production.INFO: ProcessCDR(1,14484369,1,1,2) [2025-02-15 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484369', 'tblTempUsageDetail_20' ) start [2025-02-15 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484369', 'tblTempUsageDetail_20' ) end [2025-02-15 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:15:21] Production.INFO: ==469== Releasing lock... [2025-02-15 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:15:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:16:05 [end_date_ymd] => 2025-02-15 23:16:05 [RateCDR] => 1 ) [2025-02-15 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:16:05' and `end` < '2025-02-15 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:16:19] Production.INFO: count ==1074 [2025-02-15 23:16:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:16:05 - End Time 2025-02-15 23:16:05 [2025-02-15 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484374', 'tblTempUsageDetail_20' ) start [2025-02-15 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484374', 'tblTempUsageDetail_20' ) end [2025-02-15 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484374', 'tblTempVendorCDR_20' ) start [2025-02-15 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484374', 'tblTempVendorCDR_20' ) end [2025-02-15 23:16:19] Production.INFO: ProcessCDR(1,14484374,1,1,2) [2025-02-15 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484374', 'tblTempUsageDetail_20' ) start [2025-02-15 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484374', 'tblTempUsageDetail_20' ) end [2025-02-15 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:16:23] Production.INFO: ==545== Releasing lock... [2025-02-15 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:16:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:17:05 [end_date_ymd] => 2025-02-15 23:17:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:17:05' and `end` < '2025-02-15 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-15 23:17:19] Production.INFO: count ==1074 [2025-02-15 23:17:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:17:05 - End Time 2025-02-15 23:17:05 [2025-02-15 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484379', 'tblTempUsageDetail_20' ) start [2025-02-15 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484379', 'tblTempUsageDetail_20' ) end [2025-02-15 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484379', 'tblTempVendorCDR_20' ) start [2025-02-15 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484379', 'tblTempVendorCDR_20' ) end [2025-02-15 23:17:19] Production.INFO: ProcessCDR(1,14484379,1,1,2) [2025-02-15 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484379', 'tblTempUsageDetail_20' ) start [2025-02-15 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484379', 'tblTempUsageDetail_20' ) end [2025-02-15 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:17:23] Production.INFO: ==623== Releasing lock... [2025-02-15 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:17:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:18:05 [end_date_ymd] => 2025-02-15 23:18:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:18:05' and `end` < '2025-02-15 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-15 23:18:19] Production.INFO: count ==1077 [2025-02-15 23:18:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:18:05 - End Time 2025-02-15 23:18:05 [2025-02-15 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484384', 'tblTempUsageDetail_20' ) start [2025-02-15 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484384', 'tblTempUsageDetail_20' ) end [2025-02-15 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484384', 'tblTempVendorCDR_20' ) start [2025-02-15 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484384', 'tblTempVendorCDR_20' ) end [2025-02-15 23:18:19] Production.INFO: ProcessCDR(1,14484384,1,1,2) [2025-02-15 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484384', 'tblTempUsageDetail_20' ) start [2025-02-15 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484384', 'tblTempUsageDetail_20' ) end [2025-02-15 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:18:22] Production.INFO: ==720== Releasing lock... [2025-02-15 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:18:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:19:05 [end_date_ymd] => 2025-02-15 23:19:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:19:05' and `end` < '2025-02-15 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-15 23:19:18] Production.INFO: count ==1077 [2025-02-15 23:19:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:19:05 - End Time 2025-02-15 23:19:05 [2025-02-15 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484389', 'tblTempUsageDetail_20' ) start [2025-02-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484389', 'tblTempUsageDetail_20' ) end [2025-02-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484389', 'tblTempVendorCDR_20' ) start [2025-02-15 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484389', 'tblTempVendorCDR_20' ) end [2025-02-15 23:19:18] Production.INFO: ProcessCDR(1,14484389,1,1,2) [2025-02-15 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484389', 'tblTempUsageDetail_20' ) start [2025-02-15 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484389', 'tblTempUsageDetail_20' ) end [2025-02-15 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:19:22] Production.INFO: ==796== Releasing lock... [2025-02-15 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:19:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:20:05 [end_date_ymd] => 2025-02-15 23:20:05 [RateCDR] => 1 ) [2025-02-15 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:20:05' and `end` < '2025-02-15 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:20:19] Production.INFO: count ==1074 [2025-02-15 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:20:05 - End Time 2025-02-15 23:20:05 [2025-02-15 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484395', 'tblTempUsageDetail_20' ) start [2025-02-15 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484395', 'tblTempUsageDetail_20' ) end [2025-02-15 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484395', 'tblTempVendorCDR_20' ) start [2025-02-15 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484395', 'tblTempVendorCDR_20' ) end [2025-02-15 23:20:19] Production.INFO: ProcessCDR(1,14484395,1,1,2) [2025-02-15 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484395', 'tblTempUsageDetail_20' ) start [2025-02-15 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484395', 'tblTempUsageDetail_20' ) end [2025-02-15 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:20:22] Production.INFO: ==869== Releasing lock... [2025-02-15 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:20:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:21:05 [end_date_ymd] => 2025-02-15 23:21:05 [RateCDR] => 1 ) [2025-02-15 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:21:05' and `end` < '2025-02-15 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:21:18] Production.INFO: count ==1071 [2025-02-15 23:21:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:21:05 - End Time 2025-02-15 23:21:05 [2025-02-15 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484400', 'tblTempUsageDetail_20' ) start [2025-02-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484400', 'tblTempUsageDetail_20' ) end [2025-02-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484400', 'tblTempVendorCDR_20' ) start [2025-02-15 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484400', 'tblTempVendorCDR_20' ) end [2025-02-15 23:21:18] Production.INFO: ProcessCDR(1,14484400,1,1,2) [2025-02-15 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484400', 'tblTempUsageDetail_20' ) start [2025-02-15 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484400', 'tblTempUsageDetail_20' ) end [2025-02-15 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:21:21] Production.INFO: ==941== Releasing lock... [2025-02-15 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:21:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:22:05 [end_date_ymd] => 2025-02-15 23:22:05 [RateCDR] => 1 ) [2025-02-15 23: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-15 20:22:05' and `end` < '2025-02-15 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-15 23:22:20] Production.INFO: count ==1071 [2025-02-15 23:22:20] Production.ERROR: pbx CDR StartTime 2025-02-15 20:22:05 - End Time 2025-02-15 23:22:05 [2025-02-15 23:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484405', 'tblTempUsageDetail_20' ) start [2025-02-15 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484405', 'tblTempUsageDetail_20' ) end [2025-02-15 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484405', 'tblTempVendorCDR_20' ) start [2025-02-15 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484405', 'tblTempVendorCDR_20' ) end [2025-02-15 23:22:20] Production.INFO: ProcessCDR(1,14484405,1,1,2) [2025-02-15 23:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484405', 'tblTempUsageDetail_20' ) start [2025-02-15 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484405', 'tblTempUsageDetail_20' ) end [2025-02-15 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:22:23] Production.INFO: ==1016== Releasing lock... [2025-02-15 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:22:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:23:05 [end_date_ymd] => 2025-02-15 23:23:05 [RateCDR] => 1 ) [2025-02-15 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:23:05' and `end` < '2025-02-15 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:23:18] Production.INFO: count ==1071 [2025-02-15 23:23:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:23:05 - End Time 2025-02-15 23:23:05 [2025-02-15 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484410', 'tblTempUsageDetail_20' ) start [2025-02-15 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484410', 'tblTempUsageDetail_20' ) end [2025-02-15 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484410', 'tblTempVendorCDR_20' ) start [2025-02-15 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484410', 'tblTempVendorCDR_20' ) end [2025-02-15 23:23:18] Production.INFO: ProcessCDR(1,14484410,1,1,2) [2025-02-15 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484410', 'tblTempUsageDetail_20' ) start [2025-02-15 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484410', 'tblTempUsageDetail_20' ) end [2025-02-15 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:23:21] Production.INFO: ==1091== Releasing lock... [2025-02-15 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:23:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:24:05 [end_date_ymd] => 2025-02-15 23:24:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:24:05' and `end` < '2025-02-15 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-15 23:24:19] Production.INFO: count ==1072 [2025-02-15 23:24:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:24:05 - End Time 2025-02-15 23:24:05 [2025-02-15 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484415', 'tblTempUsageDetail_20' ) start [2025-02-15 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484415', 'tblTempUsageDetail_20' ) end [2025-02-15 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484415', 'tblTempVendorCDR_20' ) start [2025-02-15 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484415', 'tblTempVendorCDR_20' ) end [2025-02-15 23:24:19] Production.INFO: ProcessCDR(1,14484415,1,1,2) [2025-02-15 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484415', 'tblTempUsageDetail_20' ) start [2025-02-15 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484415', 'tblTempUsageDetail_20' ) end [2025-02-15 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:24:23] Production.INFO: ==1175== Releasing lock... [2025-02-15 23:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:24:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:25:05 [end_date_ymd] => 2025-02-15 23:25:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:25:05' and `end` < '2025-02-15 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-15 23:25:18] Production.INFO: count ==1076 [2025-02-15 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:25:05 - End Time 2025-02-15 23:25:05 [2025-02-15 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484420', 'tblTempUsageDetail_20' ) start [2025-02-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484420', 'tblTempUsageDetail_20' ) end [2025-02-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484420', 'tblTempVendorCDR_20' ) start [2025-02-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484420', 'tblTempVendorCDR_20' ) end [2025-02-15 23:25:18] Production.INFO: ProcessCDR(1,14484420,1,1,2) [2025-02-15 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484420', 'tblTempUsageDetail_20' ) start [2025-02-15 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484420', 'tblTempUsageDetail_20' ) end [2025-02-15 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:25:21] Production.INFO: ==1260== Releasing lock... [2025-02-15 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:25:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:26:06 [end_date_ymd] => 2025-02-15 23:26:06 [RateCDR] => 1 ) [2025-02-15 23:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:26:06' and `end` < '2025-02-15 23:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:26:19] Production.INFO: count ==1089 [2025-02-15 23:26:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:26:06 - End Time 2025-02-15 23:26:06 [2025-02-15 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484425', 'tblTempUsageDetail_20' ) start [2025-02-15 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484425', 'tblTempUsageDetail_20' ) end [2025-02-15 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484425', 'tblTempVendorCDR_20' ) start [2025-02-15 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484425', 'tblTempVendorCDR_20' ) end [2025-02-15 23:26:19] Production.INFO: ProcessCDR(1,14484425,1,1,2) [2025-02-15 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484425', 'tblTempUsageDetail_20' ) start [2025-02-15 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484425', 'tblTempUsageDetail_20' ) end [2025-02-15 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:26:23] Production.INFO: ==1334== Releasing lock... [2025-02-15 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:26:23] Production.INFO: 36 MB #Memory Used# [2025-02-15 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:27:04 [end_date_ymd] => 2025-02-15 23:27:04 [RateCDR] => 1 ) [2025-02-15 23:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:27:04' and `end` < '2025-02-15 23:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:27:18] Production.INFO: count ==1089 [2025-02-15 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:27:04 - End Time 2025-02-15 23:27:04 [2025-02-15 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484430', 'tblTempUsageDetail_20' ) start [2025-02-15 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484430', 'tblTempUsageDetail_20' ) end [2025-02-15 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484430', 'tblTempVendorCDR_20' ) start [2025-02-15 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484430', 'tblTempVendorCDR_20' ) end [2025-02-15 23:27:18] Production.INFO: ProcessCDR(1,14484430,1,1,2) [2025-02-15 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484430', 'tblTempUsageDetail_20' ) start [2025-02-15 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484430', 'tblTempUsageDetail_20' ) end [2025-02-15 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:27:21] Production.INFO: ==1445== Releasing lock... [2025-02-15 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:27:21] Production.INFO: 36 MB #Memory Used# [2025-02-15 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:28:05 [end_date_ymd] => 2025-02-15 23:28:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:28:05' and `end` < '2025-02-15 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-15 23:28:18] Production.INFO: count ==1090 [2025-02-15 23:28:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:28:05 - End Time 2025-02-15 23:28:05 [2025-02-15 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484435', 'tblTempUsageDetail_20' ) start [2025-02-15 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484435', 'tblTempUsageDetail_20' ) end [2025-02-15 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484435', 'tblTempVendorCDR_20' ) start [2025-02-15 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484435', 'tblTempVendorCDR_20' ) end [2025-02-15 23:28:18] Production.INFO: ProcessCDR(1,14484435,1,1,2) [2025-02-15 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484435', 'tblTempUsageDetail_20' ) start [2025-02-15 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484435', 'tblTempUsageDetail_20' ) end [2025-02-15 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:28:23] Production.INFO: ==1547== Releasing lock... [2025-02-15 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:28:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:29:05 [end_date_ymd] => 2025-02-15 23:29:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:29:05' and `end` < '2025-02-15 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-15 23:29:18] Production.INFO: count ==1086 [2025-02-15 23:29:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:29:05 - End Time 2025-02-15 23:29:05 [2025-02-15 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484440', 'tblTempUsageDetail_20' ) start [2025-02-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484440', 'tblTempUsageDetail_20' ) end [2025-02-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484440', 'tblTempVendorCDR_20' ) start [2025-02-15 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484440', 'tblTempVendorCDR_20' ) end [2025-02-15 23:29:18] Production.INFO: ProcessCDR(1,14484440,1,1,2) [2025-02-15 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484440', 'tblTempUsageDetail_20' ) start [2025-02-15 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484440', 'tblTempUsageDetail_20' ) end [2025-02-15 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:29:21] Production.INFO: ==1622== Releasing lock... [2025-02-15 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:29:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:30:06 [end_date_ymd] => 2025-02-15 23:30:06 [RateCDR] => 1 ) [2025-02-15 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:30:06' and `end` < '2025-02-15 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:30:19] Production.INFO: count ==1082 [2025-02-15 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:30:06 - End Time 2025-02-15 23:30:06 [2025-02-15 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484445', 'tblTempUsageDetail_20' ) start [2025-02-15 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484445', 'tblTempUsageDetail_20' ) end [2025-02-15 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484445', 'tblTempVendorCDR_20' ) start [2025-02-15 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484445', 'tblTempVendorCDR_20' ) end [2025-02-15 23:30:19] Production.INFO: ProcessCDR(1,14484445,1,1,2) [2025-02-15 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484445', 'tblTempUsageDetail_20' ) start [2025-02-15 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484445', 'tblTempUsageDetail_20' ) end [2025-02-15 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:30:23] Production.INFO: ==1695== Releasing lock... [2025-02-15 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:30:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:31:05 [end_date_ymd] => 2025-02-15 23:31:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:31:05' and `end` < '2025-02-15 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-15 23:31:18] Production.INFO: count ==1057 [2025-02-15 23:31:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:31:05 - End Time 2025-02-15 23:31:05 [2025-02-15 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484451', 'tblTempUsageDetail_20' ) start [2025-02-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484451', 'tblTempUsageDetail_20' ) end [2025-02-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484451', 'tblTempVendorCDR_20' ) start [2025-02-15 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484451', 'tblTempVendorCDR_20' ) end [2025-02-15 23:31:18] Production.INFO: ProcessCDR(1,14484451,1,1,2) [2025-02-15 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484451', 'tblTempUsageDetail_20' ) start [2025-02-15 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484451', 'tblTempUsageDetail_20' ) end [2025-02-15 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:31:21] Production.INFO: ==1769== Releasing lock... [2025-02-15 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:31:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:32:05 [end_date_ymd] => 2025-02-15 23:32:05 [RateCDR] => 1 ) [2025-02-15 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:32:05' and `end` < '2025-02-15 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:32:18] Production.INFO: count ==1059 [2025-02-15 23:32:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:32:05 - End Time 2025-02-15 23:32:05 [2025-02-15 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484456', 'tblTempUsageDetail_20' ) start [2025-02-15 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484456', 'tblTempUsageDetail_20' ) end [2025-02-15 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484456', 'tblTempVendorCDR_20' ) start [2025-02-15 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484456', 'tblTempVendorCDR_20' ) end [2025-02-15 23:32:19] Production.INFO: ProcessCDR(1,14484456,1,1,2) [2025-02-15 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484456', 'tblTempUsageDetail_20' ) start [2025-02-15 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484456', 'tblTempUsageDetail_20' ) end [2025-02-15 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:32:23] Production.INFO: ==1849== Releasing lock... [2025-02-15 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:32:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:33:04 [end_date_ymd] => 2025-02-15 23:33:04 [RateCDR] => 1 ) [2025-02-15 23: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-15 20:33:04' and `end` < '2025-02-15 23: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-15 23:33:18] Production.INFO: count ==1059 [2025-02-15 23:33:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:33:04 - End Time 2025-02-15 23:33:04 [2025-02-15 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484461', 'tblTempUsageDetail_20' ) start [2025-02-15 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484461', 'tblTempUsageDetail_20' ) end [2025-02-15 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484461', 'tblTempVendorCDR_20' ) start [2025-02-15 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484461', 'tblTempVendorCDR_20' ) end [2025-02-15 23:33:19] Production.INFO: ProcessCDR(1,14484461,1,1,2) [2025-02-15 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484461', 'tblTempUsageDetail_20' ) start [2025-02-15 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484461', 'tblTempUsageDetail_20' ) end [2025-02-15 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:33:22] Production.INFO: ==1920== Releasing lock... [2025-02-15 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:33:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:34:05 [end_date_ymd] => 2025-02-15 23:34:05 [RateCDR] => 1 ) [2025-02-15 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:34:05' and `end` < '2025-02-15 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:34:18] Production.INFO: count ==1060 [2025-02-15 23:34:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:34:05 - End Time 2025-02-15 23:34:05 [2025-02-15 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484466', 'tblTempUsageDetail_20' ) start [2025-02-15 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484466', 'tblTempUsageDetail_20' ) end [2025-02-15 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484466', 'tblTempVendorCDR_20' ) start [2025-02-15 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484466', 'tblTempVendorCDR_20' ) end [2025-02-15 23:34:18] Production.INFO: ProcessCDR(1,14484466,1,1,2) [2025-02-15 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484466', 'tblTempUsageDetail_20' ) start [2025-02-15 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484466', 'tblTempUsageDetail_20' ) end [2025-02-15 23:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:34:23] Production.INFO: ==2001== Releasing lock... [2025-02-15 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:34:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:35:05 [end_date_ymd] => 2025-02-15 23:35:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:35:05' and `end` < '2025-02-15 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-15 23:35:18] Production.INFO: count ==1060 [2025-02-15 23:35:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:35:05 - End Time 2025-02-15 23:35:05 [2025-02-15 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484471', 'tblTempUsageDetail_20' ) start [2025-02-15 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484471', 'tblTempUsageDetail_20' ) end [2025-02-15 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484471', 'tblTempVendorCDR_20' ) start [2025-02-15 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484471', 'tblTempVendorCDR_20' ) end [2025-02-15 23:35:19] Production.INFO: ProcessCDR(1,14484471,1,1,2) [2025-02-15 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484471', 'tblTempUsageDetail_20' ) start [2025-02-15 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484471', 'tblTempUsageDetail_20' ) end [2025-02-15 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:35:22] Production.INFO: ==2073== Releasing lock... [2025-02-15 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:35:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:36:05 [end_date_ymd] => 2025-02-15 23:36:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:36:05' and `end` < '2025-02-15 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-15 23:36:19] Production.INFO: count ==1060 [2025-02-15 23:36:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:36:05 - End Time 2025-02-15 23:36:05 [2025-02-15 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484476', 'tblTempUsageDetail_20' ) start [2025-02-15 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484476', 'tblTempUsageDetail_20' ) end [2025-02-15 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484476', 'tblTempVendorCDR_20' ) start [2025-02-15 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484476', 'tblTempVendorCDR_20' ) end [2025-02-15 23:36:19] Production.INFO: ProcessCDR(1,14484476,1,1,2) [2025-02-15 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484476', 'tblTempUsageDetail_20' ) start [2025-02-15 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484476', 'tblTempUsageDetail_20' ) end [2025-02-15 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:36:22] Production.INFO: ==2143== Releasing lock... [2025-02-15 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:36:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:37:05 [end_date_ymd] => 2025-02-15 23:37:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:37:05' and `end` < '2025-02-15 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-15 23:37:18] Production.INFO: count ==1059 [2025-02-15 23:37:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:37:05 - End Time 2025-02-15 23:37:05 [2025-02-15 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484481', 'tblTempUsageDetail_20' ) start [2025-02-15 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484481', 'tblTempUsageDetail_20' ) end [2025-02-15 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484481', 'tblTempVendorCDR_20' ) start [2025-02-15 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484481', 'tblTempVendorCDR_20' ) end [2025-02-15 23:37:18] Production.INFO: ProcessCDR(1,14484481,1,1,2) [2025-02-15 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484481', 'tblTempUsageDetail_20' ) start [2025-02-15 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484481', 'tblTempUsageDetail_20' ) end [2025-02-15 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:37:21] Production.INFO: ==2220== Releasing lock... [2025-02-15 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:37:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:38:05 [end_date_ymd] => 2025-02-15 23:38:05 [RateCDR] => 1 ) [2025-02-15 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:38:05' and `end` < '2025-02-15 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:38:18] Production.INFO: count ==1059 [2025-02-15 23:38:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:38:05 - End Time 2025-02-15 23:38:05 [2025-02-15 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484486', 'tblTempUsageDetail_20' ) start [2025-02-15 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484486', 'tblTempUsageDetail_20' ) end [2025-02-15 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484486', 'tblTempVendorCDR_20' ) start [2025-02-15 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484486', 'tblTempVendorCDR_20' ) end [2025-02-15 23:38:18] Production.INFO: ProcessCDR(1,14484486,1,1,2) [2025-02-15 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484486', 'tblTempUsageDetail_20' ) start [2025-02-15 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484486', 'tblTempUsageDetail_20' ) end [2025-02-15 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:38:22] Production.INFO: ==2292== Releasing lock... [2025-02-15 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:38:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-15 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:39:06 [end_date_ymd] => 2025-02-15 23:39:06 [RateCDR] => 1 ) [2025-02-15 23:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:39:06' and `end` < '2025-02-15 23:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:39:19] Production.INFO: count ==1057 [2025-02-15 23:39:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:39:06 - End Time 2025-02-15 23:39:06 [2025-02-15 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484491', 'tblTempUsageDetail_20' ) start [2025-02-15 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484491', 'tblTempUsageDetail_20' ) end [2025-02-15 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484491', 'tblTempVendorCDR_20' ) start [2025-02-15 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484491', 'tblTempVendorCDR_20' ) end [2025-02-15 23:39:19] Production.INFO: ProcessCDR(1,14484491,1,1,2) [2025-02-15 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484491', 'tblTempUsageDetail_20' ) start [2025-02-15 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484491', 'tblTempUsageDetail_20' ) end [2025-02-15 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:39:22] Production.INFO: ==2366== Releasing lock... [2025-02-15 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:39:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:40:05 [end_date_ymd] => 2025-02-15 23:40:05 [RateCDR] => 1 ) [2025-02-15 23: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-15 20:40:05' and `end` < '2025-02-15 23: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-15 23:40:18] Production.INFO: count ==1053 [2025-02-15 23:40:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:40:05 - End Time 2025-02-15 23:40:05 [2025-02-15 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484495', 'tblTempUsageDetail_20' ) start [2025-02-15 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484495', 'tblTempUsageDetail_20' ) end [2025-02-15 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484495', 'tblTempVendorCDR_20' ) start [2025-02-15 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484495', 'tblTempVendorCDR_20' ) end [2025-02-15 23:40:19] Production.INFO: ProcessCDR(1,14484495,1,1,2) [2025-02-15 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484495', 'tblTempUsageDetail_20' ) start [2025-02-15 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484495', 'tblTempUsageDetail_20' ) end [2025-02-15 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:40:22] Production.INFO: ==2438== Releasing lock... [2025-02-15 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:40:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:41:05 [end_date_ymd] => 2025-02-15 23:41:05 [RateCDR] => 1 ) [2025-02-15 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:41:05' and `end` < '2025-02-15 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:41:18] Production.INFO: count ==1032 [2025-02-15 23:41:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:41:05 - End Time 2025-02-15 23:41:05 [2025-02-15 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484502', 'tblTempUsageDetail_20' ) start [2025-02-15 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484502', 'tblTempUsageDetail_20' ) end [2025-02-15 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484502', 'tblTempVendorCDR_20' ) start [2025-02-15 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484502', 'tblTempVendorCDR_20' ) end [2025-02-15 23:41:19] Production.INFO: ProcessCDR(1,14484502,1,1,2) [2025-02-15 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484502', 'tblTempUsageDetail_20' ) start [2025-02-15 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484502', 'tblTempUsageDetail_20' ) end [2025-02-15 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:41:22] Production.INFO: ==2510== Releasing lock... [2025-02-15 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:41:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-15 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:42:05 [end_date_ymd] => 2025-02-15 23:42:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:42:05' and `end` < '2025-02-15 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-15 23:42:19] Production.INFO: count ==1028 [2025-02-15 23:42:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:42:05 - End Time 2025-02-15 23:42:05 [2025-02-15 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484507', 'tblTempUsageDetail_20' ) start [2025-02-15 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484507', 'tblTempUsageDetail_20' ) end [2025-02-15 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484507', 'tblTempVendorCDR_20' ) start [2025-02-15 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484507', 'tblTempVendorCDR_20' ) end [2025-02-15 23:42:19] Production.INFO: ProcessCDR(1,14484507,1,1,2) [2025-02-15 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484507', 'tblTempUsageDetail_20' ) start [2025-02-15 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484507', 'tblTempUsageDetail_20' ) end [2025-02-15 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:42:22] Production.INFO: ==2581== Releasing lock... [2025-02-15 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:42:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-15 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:43:05 [end_date_ymd] => 2025-02-15 23:43:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:43:05' and `end` < '2025-02-15 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-15 23:43:18] Production.INFO: count ==1031 [2025-02-15 23:43:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:43:05 - End Time 2025-02-15 23:43:05 [2025-02-15 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484512', 'tblTempUsageDetail_20' ) start [2025-02-15 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484512', 'tblTempUsageDetail_20' ) end [2025-02-15 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484512', 'tblTempVendorCDR_20' ) start [2025-02-15 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484512', 'tblTempVendorCDR_20' ) end [2025-02-15 23:43:18] Production.INFO: ProcessCDR(1,14484512,1,1,2) [2025-02-15 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484512', 'tblTempUsageDetail_20' ) start [2025-02-15 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484512', 'tblTempUsageDetail_20' ) end [2025-02-15 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:43:21] Production.INFO: ==2691== Releasing lock... [2025-02-15 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:43:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-15 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:44:05 [end_date_ymd] => 2025-02-15 23:44:05 [RateCDR] => 1 ) [2025-02-15 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:44:05' and `end` < '2025-02-15 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:44:19] Production.INFO: count ==1031 [2025-02-15 23:44:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:44:05 - End Time 2025-02-15 23:44:05 [2025-02-15 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484517', 'tblTempUsageDetail_20' ) start [2025-02-15 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484517', 'tblTempUsageDetail_20' ) end [2025-02-15 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484517', 'tblTempVendorCDR_20' ) start [2025-02-15 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484517', 'tblTempVendorCDR_20' ) end [2025-02-15 23:44:19] Production.INFO: ProcessCDR(1,14484517,1,1,2) [2025-02-15 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484517', 'tblTempUsageDetail_20' ) start [2025-02-15 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484517', 'tblTempUsageDetail_20' ) end [2025-02-15 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:44:22] Production.INFO: ==2763== Releasing lock... [2025-02-15 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:44:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:45:05 [end_date_ymd] => 2025-02-15 23:45:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:45:05' and `end` < '2025-02-15 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-15 23:45:18] Production.INFO: count ==1034 [2025-02-15 23:45:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:45:05 - End Time 2025-02-15 23:45:05 [2025-02-15 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484522', 'tblTempUsageDetail_20' ) start [2025-02-15 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484522', 'tblTempUsageDetail_20' ) end [2025-02-15 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484522', 'tblTempVendorCDR_20' ) start [2025-02-15 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484522', 'tblTempVendorCDR_20' ) end [2025-02-15 23:45:18] Production.INFO: ProcessCDR(1,14484522,1,1,2) [2025-02-15 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484522', 'tblTempUsageDetail_20' ) start [2025-02-15 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484522', 'tblTempUsageDetail_20' ) end [2025-02-15 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:45:22] Production.INFO: ==2836== Releasing lock... [2025-02-15 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:45:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-15 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:46:06 [end_date_ymd] => 2025-02-15 23:46:06 [RateCDR] => 1 ) [2025-02-15 23:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:46:06' and `end` < '2025-02-15 23:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:46:19] Production.INFO: count ==1032 [2025-02-15 23:46:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:46:06 - End Time 2025-02-15 23:46:06 [2025-02-15 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484527', 'tblTempUsageDetail_20' ) start [2025-02-15 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484527', 'tblTempUsageDetail_20' ) end [2025-02-15 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484527', 'tblTempVendorCDR_20' ) start [2025-02-15 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484527', 'tblTempVendorCDR_20' ) end [2025-02-15 23:46:19] Production.INFO: ProcessCDR(1,14484527,1,1,2) [2025-02-15 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484527', 'tblTempUsageDetail_20' ) start [2025-02-15 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484527', 'tblTempUsageDetail_20' ) end [2025-02-15 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:46:22] Production.INFO: ==2911== Releasing lock... [2025-02-15 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:46:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:47:05 [end_date_ymd] => 2025-02-15 23:47:05 [RateCDR] => 1 ) [2025-02-15 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:47:05' and `end` < '2025-02-15 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:47:18] Production.INFO: count ==1035 [2025-02-15 23:47:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:47:05 - End Time 2025-02-15 23:47:05 [2025-02-15 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484532', 'tblTempUsageDetail_20' ) start [2025-02-15 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484532', 'tblTempUsageDetail_20' ) end [2025-02-15 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484532', 'tblTempVendorCDR_20' ) start [2025-02-15 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484532', 'tblTempVendorCDR_20' ) end [2025-02-15 23:47:18] Production.INFO: ProcessCDR(1,14484532,1,1,2) [2025-02-15 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484532', 'tblTempUsageDetail_20' ) start [2025-02-15 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484532', 'tblTempUsageDetail_20' ) end [2025-02-15 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:47:22] Production.INFO: ==2983== Releasing lock... [2025-02-15 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:47:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-15 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:48:05 [end_date_ymd] => 2025-02-15 23:48:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:48:05' and `end` < '2025-02-15 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-15 23:48:19] Production.INFO: count ==1037 [2025-02-15 23:48:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:48:05 - End Time 2025-02-15 23:48:05 [2025-02-15 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484537', 'tblTempUsageDetail_20' ) start [2025-02-15 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484537', 'tblTempUsageDetail_20' ) end [2025-02-15 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484537', 'tblTempVendorCDR_20' ) start [2025-02-15 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484537', 'tblTempVendorCDR_20' ) end [2025-02-15 23:48:19] Production.INFO: ProcessCDR(1,14484537,1,1,2) [2025-02-15 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484537', 'tblTempUsageDetail_20' ) start [2025-02-15 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484537', 'tblTempUsageDetail_20' ) end [2025-02-15 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:48:22] Production.INFO: ==3058== Releasing lock... [2025-02-15 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:48:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-15 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:49:05 [end_date_ymd] => 2025-02-15 23:49:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:49:05' and `end` < '2025-02-15 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-15 23:49:18] Production.INFO: count ==1036 [2025-02-15 23:49:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:49:05 - End Time 2025-02-15 23:49:05 [2025-02-15 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484542', 'tblTempUsageDetail_20' ) start [2025-02-15 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484542', 'tblTempUsageDetail_20' ) end [2025-02-15 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484542', 'tblTempVendorCDR_20' ) start [2025-02-15 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484542', 'tblTempVendorCDR_20' ) end [2025-02-15 23:49:18] Production.INFO: ProcessCDR(1,14484542,1,1,2) [2025-02-15 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484542', 'tblTempUsageDetail_20' ) start [2025-02-15 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484542', 'tblTempUsageDetail_20' ) end [2025-02-15 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:49:21] Production.INFO: ==3134== Releasing lock... [2025-02-15 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:49:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-15 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:50:05 [end_date_ymd] => 2025-02-15 23:50:05 [RateCDR] => 1 ) [2025-02-15 23: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-15 20:50:05' and `end` < '2025-02-15 23: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-15 23:50:18] Production.INFO: count ==1044 [2025-02-15 23:50:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:50:05 - End Time 2025-02-15 23:50:05 [2025-02-15 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484547', 'tblTempUsageDetail_20' ) start [2025-02-15 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484547', 'tblTempUsageDetail_20' ) end [2025-02-15 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484547', 'tblTempVendorCDR_20' ) start [2025-02-15 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484547', 'tblTempVendorCDR_20' ) end [2025-02-15 23:50:19] Production.INFO: ProcessCDR(1,14484547,1,1,2) [2025-02-15 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484547', 'tblTempUsageDetail_20' ) start [2025-02-15 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484547', 'tblTempUsageDetail_20' ) end [2025-02-15 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:50:22] Production.INFO: ==3213== Releasing lock... [2025-02-15 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:50:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:51:05 [end_date_ymd] => 2025-02-15 23:51:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:51:05' and `end` < '2025-02-15 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-15 23:51:18] Production.INFO: count ==1047 [2025-02-15 23:51:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:51:05 - End Time 2025-02-15 23:51:05 [2025-02-15 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484553', 'tblTempUsageDetail_20' ) start [2025-02-15 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484553', 'tblTempUsageDetail_20' ) end [2025-02-15 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484553', 'tblTempVendorCDR_20' ) start [2025-02-15 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484553', 'tblTempVendorCDR_20' ) end [2025-02-15 23:51:18] Production.INFO: ProcessCDR(1,14484553,1,1,2) [2025-02-15 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484553', 'tblTempUsageDetail_20' ) start [2025-02-15 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484553', 'tblTempUsageDetail_20' ) end [2025-02-15 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:51:21] Production.INFO: ==3290== Releasing lock... [2025-02-15 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:51:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:52:05 [end_date_ymd] => 2025-02-15 23:52:05 [RateCDR] => 1 ) [2025-02-15 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:52:05' and `end` < '2025-02-15 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:52:18] Production.INFO: count ==1047 [2025-02-15 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:52:05 - End Time 2025-02-15 23:52:05 [2025-02-15 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484558', 'tblTempUsageDetail_20' ) start [2025-02-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484558', 'tblTempUsageDetail_20' ) end [2025-02-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484558', 'tblTempVendorCDR_20' ) start [2025-02-15 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484558', 'tblTempVendorCDR_20' ) end [2025-02-15 23:52:18] Production.INFO: ProcessCDR(1,14484558,1,1,2) [2025-02-15 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484558', 'tblTempUsageDetail_20' ) start [2025-02-15 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484558', 'tblTempUsageDetail_20' ) end [2025-02-15 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:52:21] Production.INFO: ==3360== Releasing lock... [2025-02-15 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:52:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:53:05 [end_date_ymd] => 2025-02-15 23:53:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:53:05' and `end` < '2025-02-15 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-15 23:53:19] Production.INFO: count ==1048 [2025-02-15 23:53:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:53:05 - End Time 2025-02-15 23:53:05 [2025-02-15 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484563', 'tblTempUsageDetail_20' ) start [2025-02-15 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484563', 'tblTempUsageDetail_20' ) end [2025-02-15 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484563', 'tblTempVendorCDR_20' ) start [2025-02-15 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484563', 'tblTempVendorCDR_20' ) end [2025-02-15 23:53:19] Production.INFO: ProcessCDR(1,14484563,1,1,2) [2025-02-15 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484563', 'tblTempUsageDetail_20' ) start [2025-02-15 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484563', 'tblTempUsageDetail_20' ) end [2025-02-15 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:53:22] Production.INFO: ==3434== Releasing lock... [2025-02-15 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:53:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:54:05 [end_date_ymd] => 2025-02-15 23:54:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:54:05' and `end` < '2025-02-15 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-15 23:54:19] Production.INFO: count ==1046 [2025-02-15 23:54:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:54:05 - End Time 2025-02-15 23:54:05 [2025-02-15 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484568', 'tblTempUsageDetail_20' ) start [2025-02-15 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484568', 'tblTempUsageDetail_20' ) end [2025-02-15 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484568', 'tblTempVendorCDR_20' ) start [2025-02-15 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484568', 'tblTempVendorCDR_20' ) end [2025-02-15 23:54:19] Production.INFO: ProcessCDR(1,14484568,1,1,2) [2025-02-15 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484568', 'tblTempUsageDetail_20' ) start [2025-02-15 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484568', 'tblTempUsageDetail_20' ) end [2025-02-15 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:54:22] Production.INFO: ==3506== Releasing lock... [2025-02-15 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:54:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:55:05 [end_date_ymd] => 2025-02-15 23:55:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:55:05' and `end` < '2025-02-15 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-15 23:55:18] Production.INFO: count ==1046 [2025-02-15 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:55:05 - End Time 2025-02-15 23:55:05 [2025-02-15 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484573', 'tblTempUsageDetail_20' ) start [2025-02-15 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484573', 'tblTempUsageDetail_20' ) end [2025-02-15 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484573', 'tblTempVendorCDR_20' ) start [2025-02-15 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484573', 'tblTempVendorCDR_20' ) end [2025-02-15 23:55:18] Production.INFO: ProcessCDR(1,14484573,1,1,2) [2025-02-15 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484573', 'tblTempUsageDetail_20' ) start [2025-02-15 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484573', 'tblTempUsageDetail_20' ) end [2025-02-15 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:55:21] Production.INFO: ==3577== Releasing lock... [2025-02-15 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:55:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:56:05 [end_date_ymd] => 2025-02-15 23:56:05 [RateCDR] => 1 ) [2025-02-15 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-15 20:56:05' and `end` < '2025-02-15 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-15 23:56:19] Production.INFO: count ==1051 [2025-02-15 23:56:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:56:05 - End Time 2025-02-15 23:56:05 [2025-02-15 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484578', 'tblTempUsageDetail_20' ) start [2025-02-15 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484578', 'tblTempUsageDetail_20' ) end [2025-02-15 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484578', 'tblTempVendorCDR_20' ) start [2025-02-15 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484578', 'tblTempVendorCDR_20' ) end [2025-02-15 23:56:19] Production.INFO: ProcessCDR(1,14484578,1,1,2) [2025-02-15 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484578', 'tblTempUsageDetail_20' ) start [2025-02-15 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484578', 'tblTempUsageDetail_20' ) end [2025-02-15 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:56:22] Production.INFO: ==3650== Releasing lock... [2025-02-15 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:56:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:57:04 [end_date_ymd] => 2025-02-15 23:57:04 [RateCDR] => 1 ) [2025-02-15 23: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-15 20:57:04' and `end` < '2025-02-15 23: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-15 23:57:17] Production.INFO: count ==1050 [2025-02-15 23:57:17] Production.ERROR: pbx CDR StartTime 2025-02-15 20:57:04 - End Time 2025-02-15 23:57:04 [2025-02-15 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484583', 'tblTempUsageDetail_20' ) start [2025-02-15 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484583', 'tblTempUsageDetail_20' ) end [2025-02-15 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484583', 'tblTempVendorCDR_20' ) start [2025-02-15 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484583', 'tblTempVendorCDR_20' ) end [2025-02-15 23:57:17] Production.INFO: ProcessCDR(1,14484583,1,1,2) [2025-02-15 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484583', 'tblTempUsageDetail_20' ) start [2025-02-15 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484583', 'tblTempUsageDetail_20' ) end [2025-02-15 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:57:21] Production.INFO: ==3722== Releasing lock... [2025-02-15 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:57:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:58:04 [end_date_ymd] => 2025-02-15 23:58:04 [RateCDR] => 1 ) [2025-02-15 23:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-15 20:58:04' and `end` < '2025-02-15 23:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-15 23:58:17] Production.INFO: count ==1049 [2025-02-15 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-15 20:58:04 - End Time 2025-02-15 23:58:04 [2025-02-15 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484588', 'tblTempUsageDetail_20' ) start [2025-02-15 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484588', 'tblTempUsageDetail_20' ) end [2025-02-15 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484588', 'tblTempVendorCDR_20' ) start [2025-02-15 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484588', 'tblTempVendorCDR_20' ) end [2025-02-15 23:58:18] Production.INFO: ProcessCDR(1,14484588,1,1,2) [2025-02-15 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484588', 'tblTempUsageDetail_20' ) start [2025-02-15 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484588', 'tblTempUsageDetail_20' ) end [2025-02-15 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:58:21] Production.INFO: ==3839== Releasing lock... [2025-02-15 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:58:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-15 23:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-15 20:59:06 [end_date_ymd] => 2025-02-15 23:59:06 [RateCDR] => 1 ) [2025-02-15 23: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-15 20:59:06' and `end` < '2025-02-15 23: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-15 23:59:19] Production.INFO: count ==1048 [2025-02-15 23:59:19] Production.ERROR: pbx CDR StartTime 2025-02-15 20:59:06 - End Time 2025-02-15 23:59:06 [2025-02-15 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-15 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484593', 'tblTempUsageDetail_20' ) start [2025-02-15 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14484593', 'tblTempUsageDetail_20' ) end [2025-02-15 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484593', 'tblTempVendorCDR_20' ) start [2025-02-15 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14484593', 'tblTempVendorCDR_20' ) end [2025-02-15 23:59:19] Production.INFO: ProcessCDR(1,14484593,1,1,2) [2025-02-15 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14484593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14484593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-15 23:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14484593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14484593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-15 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484593', 'tblTempUsageDetail_20' ) start [2025-02-15 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14484593', 'tblTempUsageDetail_20' ) end [2025-02-15 23:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-15 23:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-15 23:59:23] Production.INFO: ==3909== Releasing lock... [2025-02-15 23:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-15 23:59:23] Production.INFO: 35.5 MB #Memory Used#